summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt722-sdca.c
diff options
context:
space:
mode:
authorJack Yu <jack.yu@realtek.com>2023-06-21 10:07:50 +0200
committerMark Brown <broonie@kernel.org>2023-07-09 23:50:58 +0200
commit209fb30ee1c7edc6807ac94f98c9ce78b4891aed (patch)
tree27ff69dab0cd075f8c198e99d7c0323ad9741067 /sound/soc/codecs/rt722-sdca.c
parentASoC: soc-core: protect dlc->of_node under mutex (diff)
downloadlinux-209fb30ee1c7edc6807ac94f98c9ce78b4891aed.tar.xz
linux-209fb30ee1c7edc6807ac94f98c9ce78b4891aed.zip
ASoC: rt722-sdca: Remove redundant sdca mask
Remove redundant sdca mask for clear code. Signed-off-by: Jack Yu <jack.yu@realtek.com> Link: https://lore.kernel.org/r/20230621080750.13511-1-jack.yu@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt722-sdca.c')
-rw-r--r--sound/soc/codecs/rt722-sdca.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt722-sdca.c b/sound/soc/codecs/rt722-sdca.c
index 9c0d34366c9e..0e1c65a20392 100644
--- a/sound/soc/codecs/rt722-sdca.c
+++ b/sound/soc/codecs/rt722-sdca.c
@@ -191,8 +191,7 @@ static void rt722_sdca_jack_detect_handler(struct work_struct *work)
return;
/* SDW_SCP_SDCA_INT_SDCA_6 is used for jack detection */
- if (rt722->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_6 ||
- rt722->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_0) {
+ if (rt722->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_6) {
ret = rt722_sdca_headset_detect(rt722);
if (ret < 0)
return;