[alsa-devel] [PATCH] alsa-lib: topology: fix DSP_B mode string

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Nov 1 13:26:24 CET 2017


Use the correct string for DSP_B mode.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/topology/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/topology/pcm.c b/src/topology/pcm.c
index 0f4deb4f..c5e8d465 100644
--- a/src/topology/pcm.c
+++ b/src/topology/pcm.c
@@ -997,7 +997,7 @@ static int get_audio_hw_format(const char *val)
 	if (!strcmp(val, "DSP_A"))
 		return SND_SOC_DAI_FORMAT_DSP_A;
 
-	if (!strcmp(val, "LEFT_B"))
+	if (!strcmp(val, "DSP_B"))
 		return SND_SOC_DAI_FORMAT_DSP_B;
 
 	if (!strcmp(val, "AC97"))
-- 
2.11.0



More information about the Alsa-devel mailing list