Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 501da409 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Update HAL to handle offload format with AAC profile info."

parents 0b9b8417 cff6e3e6
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -188,9 +188,11 @@ static bool is_supported_format(audio_format_t format)
        format == AUDIO_FORMAT_PCM_16_BIT_OFFLOAD ||
        format == AUDIO_FORMAT_PCM_24_BIT_OFFLOAD ||
#endif
        format == AUDIO_FORMAT_AAC)
        format == AUDIO_FORMAT_AAC_LC ||
        format == AUDIO_FORMAT_AAC_HE_V1 ||
        format == AUDIO_FORMAT_AAC_HE_V2 ){
        return true;

    }
    return false;
}

@@ -198,7 +200,7 @@ static int get_snd_codec_id(audio_format_t format)
{
    int id = 0;

    switch (format) {
    switch (format & AUDIO_FORMAT_MAIN_MASK) {
    case AUDIO_FORMAT_MP3:
        id = SND_AUDIOCODEC_MP3;
        break;
@@ -206,8 +208,7 @@ static int get_snd_codec_id(audio_format_t format)
        id = SND_AUDIOCODEC_AAC;
        break;
#ifdef EXTN_OFFLOAD_ENABLED
    case AUDIO_FORMAT_PCM_16_BIT_OFFLOAD:
    case AUDIO_FORMAT_PCM_24_BIT_OFFLOAD:
    case AUDIO_FORMAT_PCM_OFFLOAD:
        id = SND_AUDIOCODEC_PCM;
        break;
#endif