diff options
author | David Henningsson <david.henningsson@canonical.com> | 2012-10-09 15:04:21 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-10-15 09:58:28 +0200 |
commit | 26a6cb6cca225f652acf4bfac3028019be73dadd (patch) | |
tree | 883cf924a81b442d5dd9b9a375d6aa12968c1fa6 /sound/pci/hda/hda_codec.h | |
parent | 239fb862e8e26287212bdefabb021ef8c5ef1b53 (diff) |
ALSA: hda - Implement a poll loop for jacks as a module parameter
Now that we have a generic unsol mechanism, we can implement a generic
poll loop, which can be used for debugging, or if a codec's unsol
mechanism is broken.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 507fe8a917b6..10a03b049bed 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -884,6 +884,8 @@ struct hda_codec { /* jack detection */ struct snd_array jacktbl; + unsigned long jackpoll_interval; /* In jiffies. Zero means no poll, rely on unsol events */ + struct delayed_work jackpoll_work; #ifdef CONFIG_SND_HDA_INPUT_JACK /* jack detection */ |