summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxminath Kasam <lkasam@codeaurora.org>2018-09-14 18:48:04 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-09-20 00:03:30 -0700
commit01a16af1b032196ec938c4b648cb195aa3e40f3a (patch)
tree1577a3dd5add939a9ef62e719cf9d4f0a4ccb3c6
parent1d5e37fb739edb7c117d5a689099e098cd7d38e8 (diff)
soc: soundwire: Fix wsa mute issue for stereo playback
When stereo playback start and temperature read initiated at same time, one of speaker PA bits are not set in particular race scenario. Handle the broadcast check in soundwire framework to ensure broadcast is disabled only when respective gr_sid slave calls swr_remove_from_group. CRs-Fixed: 2282230 Change-Id: I6f82a8c3c0f39dc20c1def09c1728ce4c26c2f5d Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
-rw-r--r--[-rwxr-xr-x]drivers/soundwire/soundwire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soundwire/soundwire.c b/drivers/soundwire/soundwire.c
index 63545651fe43..0e8cc399204e 100755..100644
--- a/drivers/soundwire/soundwire.c
+++ b/drivers/soundwire/soundwire.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -241,7 +241,7 @@ int swr_remove_from_group(struct swr_device *dev, u8 dev_num)
if (!dev->group_id)
return 0;
- if (master->gr_sid == dev_num)
+ if (master->gr_sid != dev_num)
return 0;
if (master->remove_from_group && master->remove_from_group(master))