diff options
author | David Henningsson <david.henningsson@canonical.com> | 2013-11-07 12:38:24 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-07 13:03:17 (GMT) |
commit | 0f568959de1c90be3f9ec51c271a40d7583f5809 (patch) | |
tree | a610866e7d95e84fdd31d27dace47a64715616f3 /sound/pci/hda/hda_jack.c | |
parent | efe4710860fa6ed10dd041f13902f0e06c86e8cc (diff) | |
download | linux-0f568959de1c90be3f9ec51c271a40d7583f5809.tar.xz |
ALSA: hda - Add a block_report flag to jacks
If the jack should not be reported to userspace (e g, because it is
in some transitional state), one can set this flag.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_jack.c')
-rw-r--r-- | sound/pci/hda/hda_jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c index 05b3e3e..afe5944 100644 --- a/sound/pci/hda/hda_jack.c +++ b/sound/pci/hda/hda_jack.c @@ -286,7 +286,7 @@ void snd_hda_jack_report_sync(struct hda_codec *codec) jack = codec->jacktbl.list; for (i = 0; i < codec->jacktbl.used; i++, jack++) if (jack->nid) { - if (!jack->kctl) + if (!jack->kctl || jack->block_report) continue; state = get_jack_plug_state(jack->pin_sense); snd_kctl_jack_report(codec->bus->card, jack->kctl, state); |