aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/sma1303.c
diff options
context:
space:
mode:
authorKiseok Jo <kiseok.jo@irondevice.com>2023-02-17 00:44:03 +0000
committerMark Brown <broonie@kernel.org>2023-02-20 14:32:17 +0000
commit51c58a1ebc047acc4ac2a61a5f215c7a638a685b (patch)
treeff5fbce691d844f47331449d8b26f0c3756ef16b /sound/soc/codecs/sma1303.c
parentASoC: amd: yp: Add OMEN by HP Gaming Laptop 16z-n000 to quirks (diff)
downloadwireguard-linux-51c58a1ebc047acc4ac2a61a5f215c7a638a685b.tar.xz
wireguard-linux-51c58a1ebc047acc4ac2a61a5f215c7a638a685b.zip
ASoC: SMA1303: Change the value for right output
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>
Diffstat (limited to 'sound/soc/codecs/sma1303.c')
-rw-r--r--sound/soc/codecs/sma1303.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/sma1303.c b/sound/soc/codecs/sma1303.c
index 727c01facf52..fa4b0a60f8a9 100644
--- a/sound/soc/codecs/sma1303.c
+++ b/sound/soc/codecs/sma1303.c
@@ -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;