mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
asoc: routing: set/clear FE/BE route for lsm
Set/clear correct FE/BE route for LSM in LSM put funtion to avoid mixer control initial value is not set from userspace after audio server restart. Change-Id: Ic415bb51cbaf887c4ddacf9e7062ec28a36674e4 Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
e8e53825d5
commit
6d8ecddd3c
1 changed files with 4 additions and 0 deletions
|
|
@ -1989,6 +1989,10 @@ static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
|
|||
if (!route_check_fe_id_adm_support(val)) {
|
||||
/* ignore adm open if not supported for fe_id */
|
||||
pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
|
||||
if (set)
|
||||
set_bit(val, &msm_bedais[reg].fe_sessions[0]);
|
||||
else
|
||||
clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue