OSDN Git Service

ASoC: wsa881x: Request device ungroup for speaker disable
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>
Sat, 30 Apr 2016 19:58:30 +0000 (12:58 -0700)
committerJeevan Shriram <jshriram@codeaurora.org>
Fri, 20 May 2016 20:34:16 +0000 (13:34 -0700)
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>
sound/soc/codecs/wsa881x.c

index e0c7a00..0171810 100644 (file)
@@ -805,6 +805,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) {