mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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>
This commit is contained in:
parent
065aa861b1
commit
209fb30ee1
@ -175,7 +175,7 @@ static int rt722_sdca_update_status(struct sdw_slave *slave,
|
||||
* This also could sync with the cache value as the rt722_sdca_jack_init set.
|
||||
*/
|
||||
sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1,
|
||||
SDW_SCP_SDCA_INTMASK_SDCA_0 | SDW_SCP_SDCA_INTMASK_SDCA_6);
|
||||
SDW_SCP_SDCA_INTMASK_SDCA_6);
|
||||
sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2,
|
||||
SDW_SCP_SDCA_INTMASK_SDCA_8);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user