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

Commit 661ce86b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: update audio usecase support for snd device"

parents e5497d0a 54357653
Loading
Loading
Loading
Loading

hal/audio_extn/auto_hal.c

100755 → 100644
+15 −0
Original line number Diff line number Diff line
@@ -901,6 +901,18 @@ snd_device_t auto_hal_get_output_snd_device(struct audio_device *adev,
            snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
            break;
        case USECASE_AUDIO_PLAYBACK_MEDIA:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD2:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD3:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD4:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD5:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD6:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD7:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD8:
        case USECASE_AUDIO_PLAYBACK_OFFLOAD9:
        case USECASE_AUDIO_PLAYBACK_ULL:
        case USECASE_AUDIO_PLAYBACK_MMAP:
        case USECASE_AUDIO_PLAYBACK_VOIP:
            snd_device = SND_DEVICE_OUT_BUS_MEDIA;
            break;
        case USECASE_AUDIO_PLAYBACK_SYS_NOTIFICATION:
@@ -912,6 +924,9 @@ snd_device_t auto_hal_get_output_snd_device(struct audio_device *adev,
        case USECASE_AUDIO_PLAYBACK_PHONE:
            snd_device = SND_DEVICE_OUT_BUS_PHN;
            break;
        case USECASE_AUDIO_PLAYBACK_REAR_SEAT:
            snd_device = SND_DEVICE_OUT_BUS_RSE;
            break;
        default:
            ALOGE("%s: Usecase (%d) not supported", __func__, uc_id);
            return -EINVAL;