Skip to content

Commit 4c37c24

Browse files
shumingfanplbossart
authored andcommitted
ASoC: rt711-sdca: fix IO transfer timed out in kmod test
The driver tries to set the SCP_SDCA_IntMask1/2 registers when the module removes. At this moment, we need to avoid accessing the registers when the cache_only enables. Therefore, this patch removes the sdw_write_no_pm when the jack sets to null. However, this is no concern because the driver disables HID 1/2 event which is controlled by the codec inside. Signed-off-by: Shuming Fan <shumingf@realtek.com>
1 parent d5f0fef commit 4c37c24

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

sound/soc/codecs/rt711-sdca.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,6 @@ static void rt711_sdca_jack_init(struct rt711_sdca_priv *rt711)
477477
rt711_sdca_index_update_bits(rt711, RT711_VENDOR_HDA_CTL,
478478
RT711_GE_MODE_RELATED_CTL, 0x0c00, 0x0000);
479479

480-
/* set SCP_SDCA_IntMask1[0]=0 */
481-
sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, 0);
482-
/* set SCP_SDCA_IntMask2[0]=0 */
483-
sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, 0);
484480
dev_dbg(&rt711->slave->dev, "in %s disable\n", __func__);
485481
}
486482

0 commit comments

Comments
 (0)