OSDN Git Service

soc: soundwire: Fix wsa mute issue for stereo playback
authorLaxminath Kasam <lkasam@codeaurora.org>
Fri, 14 Sep 2018 13:18:04 +0000 (18:48 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 20 Sep 2018 07:03:30 +0000 (00:03 -0700)
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>
drivers/soundwire/soundwire.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6354565..0e8cc39
@@ -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))