diff options
author | Mohan Kumar <mkumard@nvidia.com> | 2022-04-11 09:32:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-04-12 11:34:30 +0200 |
commit | 8f06bd1f89ca8b58dd8c4447b0eeae6ebe63ca0e (patch) | |
tree | 7e2b5654cac10fd2cd0416510ec1838a84ee1dbc /sound/pci/hda/hda_tegra.c | |
parent | ALSA: hda: Jack detection poll in suspend state (diff) | |
download | linux-8f06bd1f89ca8b58dd8c4447b0eeae6ebe63ca0e.tar.xz linux-8f06bd1f89ca8b58dd8c4447b0eeae6ebe63ca0e.zip |
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>
Diffstat (limited to 'sound/pci/hda/hda_tegra.c')
-rw-r--r-- | sound/pci/hda/hda_tegra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 2347d0304f93..7debb2c76aa6 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -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) { |