ASoC: SMA1303: Change the value for right output
authorKiseok Jo <kiseok.jo@irondevice.com>
Fri, 17 Feb 2023 00:44:03 +0000 (00:44 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 20 Feb 2023 14:32:17 +0000 (14:32 +0000)
This device can output mono, left or right.
LR data should be swapped to output right data.

Signed-off-by: Kiseok Jo <kiseok.jo@irondevice.com>
Link: https://lore.kernel.org/r/20230217004403.10220-1-kiseok.jo@irondevice.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sma1303.c

index 727c01facf52db7aa7c94640996a29342fe4c1fc..fa4b0a60f8a91dac9cd4b309a277c69c65d2cf75 100644 (file)
@@ -569,7 +569,7 @@ static int sma1303_aif_in_event(struct snd_soc_dapm_widget *w,
                        ret += sma1303_regmap_update_bits(sma1303,
                                        SMA1303_11_SYSTEM_CTRL2,
                                        SMA1303_LR_DATA_SW_MASK,
-                                       SMA1303_LR_DATA_SW_NORMAL,
+                                       SMA1303_LR_DATA_SW_SWAP,
                                        &temp);
                        if (temp == true)
                                change = true;