soc: swr-wcd-ctrl: Fix wsa mute issue for stereo playback
When temperature on a single wsa881x device is being read, then soundwire master wakes up both wsa881x devices but regcache_sync is happening only for one wsa881x device on which the temperature is being read. This results in audio playback mute after temperature read. Fix the regcache sync during temperature read and playback usecase. Change-Id: I856b96517c629ac685bbc25caabee841037106c8 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
parent
c0684fc6cd
commit
3fda075378
1 changed files with 2 additions and 0 deletions
|
@ -1790,6 +1790,8 @@ int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data)
|
||||||
(swrm->state == SWR_MSTR_UP)) {
|
(swrm->state == SWR_MSTR_UP)) {
|
||||||
dev_dbg(swrm->dev, "%s: SWR master is already UP: %d\n",
|
dev_dbg(swrm->dev, "%s: SWR master is already UP: %d\n",
|
||||||
__func__, swrm->state);
|
__func__, swrm->state);
|
||||||
|
list_for_each_entry(swr_dev, &mstr->devices, dev_list)
|
||||||
|
swr_reset_device(swr_dev);
|
||||||
} else {
|
} else {
|
||||||
pm_runtime_mark_last_busy(&pdev->dev);
|
pm_runtime_mark_last_busy(&pdev->dev);
|
||||||
mutex_unlock(&swrm->reslock);
|
mutex_unlock(&swrm->reslock);
|
||||||
|
|
Loading…
Reference in a new issue