Skip to content

Commit 8f06bd1

Browse files
mkumardtiwai
authored andcommitted
ALSA: hda/tegra: Enable Jack poll for tegra
Enable HDA Jack polling for the tegra platforms as Jack detection logic doesn't work when the HDACODEC in runtime suspended state as unsol event won't be triggered during D3 state. This will help the userspace audio setting controls to correctly show available audio devices in gui. Signed-off-by: Mohan Kumar <mkumard@nvidia.com> Link: https://lore.kernel.org/r/20220411073210.23445-3-mkumard@nvidia.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b33115b commit 8f06bd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/pci/hda/hda_tegra.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ static int hda_tegra_create(struct snd_card *card,
420420
chip->driver_caps = driver_caps;
421421
chip->driver_type = driver_caps & 0xff;
422422
chip->dev_index = 0;
423+
chip->jackpoll_interval = msecs_to_jiffies(5000);
423424
INIT_LIST_HEAD(&chip->pcm_list);
424425

425426
chip->codec_probe_mask = -1;
@@ -436,6 +437,7 @@ static int hda_tegra_create(struct snd_card *card,
436437
chip->bus.core.sync_write = 0;
437438
chip->bus.core.needs_damn_long_delay = 1;
438439
chip->bus.core.aligned_mmio = 1;
440+
chip->bus.jackpoll_in_suspend = 1;
439441

440442
err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
441443
if (err < 0) {

0 commit comments

Comments
 (0)