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

Commit 748b6285 authored by carterhsu's avatar carterhsu Committed by android-build-merger
Browse files

Merge "audio: fix the acdb id for FE app_type setting" into pi-dev

am: 08365942

Change-Id: I4d4c6b1a991e28e61b3c577c3f2942a7c6144e2e
parents 4fd65872 08365942
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -333,7 +333,8 @@ static int derive_acdb_dev_id(struct audio_device *adev __unused,
    struct stream_in *in;

    if (usecase->type == PCM_PLAYBACK) {
        return platform_get_snd_device_acdb_id(usecase->out_snd_device);
        return platform_get_snd_device_acdb_id(
                audio_extn_get_spkr_prot_snd_device(usecase->out_snd_device));
    } else if(usecase->type == PCM_CAPTURE) {
        return platform_get_snd_device_acdb_id(usecase->in_snd_device);
    }