All of lore.kernel.org
 help / color / mirror / Atom feed
* [FIX][PATCH] ASoC: topology: Fix logical inversion in set_link_hw_format()
@ 2018-02-22 22:01 Xiuli Pan
  2018-02-26 11:17   ` Mark Brown
  0 siblings, 1 reply; 28+ messages in thread
From: Xiuli Pan @ 2018-02-22 22:01 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Pan Xiuli, xiuli.pan

From: Pan Xiuli <xiuli.pan@linux.intel.com>

The master/slave conventions are wrt. the codec. The topology code
contains a logical inversion, fix to follow ASoC usage.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
---
 sound/soc/soc-topology.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 561f74d..2931248 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -2030,11 +2030,11 @@ static void set_link_hw_format(struct snd_soc_dai_link *link,
 		/* clock masters */
 		bclk_master = hw_config->bclk_master;
 		fsync_master = hw_config->fsync_master;
-		if (!bclk_master && !fsync_master)
+		if (bclk_master && fsync_master)
 			link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
-		else if (bclk_master && !fsync_master)
-			link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFM;
 		else if (!bclk_master && fsync_master)
+			link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFM;
+		else if (bclk_master && !fsync_master)
 			link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFS;
 		else
 			link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2018-04-16 17:15 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 22:01 [FIX][PATCH] ASoC: topology: Fix logical inversion in set_link_hw_format() Xiuli Pan
2018-02-26 11:17 ` Applied "ASoC: topology: Fix logical inversion in set_link_hw_format()" to the asoc tree Mark Brown
2018-02-26 11:17   ` Mark Brown
2018-02-26 18:34   ` Kirill Marinushkin
2018-02-26 19:47     ` Mark Brown
2018-02-27  4:38       ` Kirill Marinushkin
2018-02-27  2:30     ` [alsa-devel] " Pierre-Louis Bossart
2018-02-27  4:50       ` Kirill Marinushkin
2018-02-27 10:38       ` Mark Brown
2018-02-27 15:13         ` Pierre-Louis Bossart
2018-02-27 15:57           ` Mark Brown
2018-02-27 20:33             ` [PATCH 0/1] " Kirill Marinushkin
2018-02-27 20:33               ` [PATCH 1/1] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format() Kirill Marinushkin
2018-02-27 20:35                 ` [PATCH, alsa-lib] " Kirill Marinushkin
2018-02-28 15:24                   ` Mark Brown
2018-02-28 15:29                     ` Takashi Iwai
2018-02-28 15:59                       ` Mark Brown
2018-02-28 20:07                         ` Kirill Marinushkin
2018-02-28 21:27                           ` Takashi Iwai
2018-03-01  6:03                           ` Pan, Xiuli
2018-03-02  5:44                             ` Kirill Marinushkin
2018-04-16 17:15                 ` Applied "ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()" to the asoc tree Mark Brown
2018-04-16 17:15                   ` Mark Brown
2018-02-28  6:31               ` [alsa-devel] [PATCH 0/1] Re: Applied "ASoC: topology: Fix logical " Pierre-Louis Bossart
2018-02-28  6:22             ` [alsa-devel] " Pierre-Louis Bossart
2018-02-28  6:22               ` Pierre-Louis Bossart
2018-03-12 16:14     ` Mark Brown
2018-03-12 23:29       ` [alsa-devel] " Pierre-Louis Bossart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.