Skip to content

Commit e3f8064

Browse files
chenhuacaitiwai
authored andcommitted
ALSA: hda: Poll jack events for LS7A HD-Audio
LS7A HD-Audio disable interrupts and use polling mode due to hardware drawbacks. As a result, unsolicited jack events are also unusable. If we want to support headphone hotplug, we need to also poll jack events. Here we use 1500ms as the poll interval if no module parameter specify it. Cc: stable@vger.kernel.org Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://patch.msgid.link/20241115150653.2819100-1-chenhuacai@loongson.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 40d6b7e commit e3f8064

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,8 @@ static int azx_first_init(struct azx *chip)
18591859
bus->polling_mode = 1;
18601860
bus->not_use_interrupts = 1;
18611861
bus->access_sdnctl_in_dword = 1;
1862+
if (!chip->jackpoll_interval)
1863+
chip->jackpoll_interval = msecs_to_jiffies(1500);
18621864
}
18631865

18641866
err = pcim_iomap_regions(pci, 1 << 0, "ICH HD audio");

0 commit comments

Comments
 (0)