ASoC: wsa881x: Request device ungroup for speaker disable

Request device ungroup of speaker channels for independent
disable. It is possible that stereo speaker channels can be
disabled one after other, so remove them from group otherwise
speaker can be left in enabled state.

CRs-fixed: 1007465
Change-Id: I358ab4edcb85ec65b064ca28368ad744f2d36870
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
Phani Kumar Uppalapati 2016-04-30 12:58:30 -07:00 committed by Gerrit - the friendly Code Review server
parent 5544d5f08c
commit 4a6320a4c5
1 changed files with 3 additions and 0 deletions

View File

@ -862,6 +862,9 @@ static int wsa881x_spkr_pa_event(struct snd_soc_dapm_widget *w,
}
schedule_delayed_work(&wsa881x->ocp_ctl_work,
msecs_to_jiffies(WSA881X_OCP_CTL_TIMER_SEC * 1000));
/* Force remove group */
swr_remove_from_group(wsa881x->swr_slave,
wsa881x->swr_slave->dev_num);
break;
case SND_SOC_DAPM_POST_PMD:
if (wsa881x->visense_enable) {