]> Git Repo - J-linux.git/commitdiff
ALSA: hda/tegra: Enable Jack poll for tegra
authorMohan Kumar <[email protected]>
Mon, 11 Apr 2022 07:32:10 +0000 (13:02 +0530)
committerTakashi Iwai <[email protected]>
Tue, 12 Apr 2022 09:34:30 +0000 (11:34 +0200)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/hda/hda_tegra.c

index 2347d0304f936665c50ed21518ec32b32561e8ba..7debb2c76aa62b778cec1d2c110694d4a57c91dc 100644 (file)
@@ -420,6 +420,7 @@ static int hda_tegra_create(struct snd_card *card,
        chip->driver_caps = driver_caps;
        chip->driver_type = driver_caps & 0xff;
        chip->dev_index = 0;
+       chip->jackpoll_interval = msecs_to_jiffies(5000);
        INIT_LIST_HEAD(&chip->pcm_list);
 
        chip->codec_probe_mask = -1;
@@ -436,6 +437,7 @@ static int hda_tegra_create(struct snd_card *card,
        chip->bus.core.sync_write = 0;
        chip->bus.core.needs_damn_long_delay = 1;
        chip->bus.core.aligned_mmio = 1;
+       chip->bus.jackpoll_in_suspend = 1;
 
        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
        if (err < 0) {
This page took 0.05271 seconds and 4 git commands to generate.