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>
This commit is contained in:

committed by
Takashi Iwai

parent
efe4710860
commit
0f568959de
@@ -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);
|
||||
|
Reference in New Issue
Block a user