diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-03 14:55:06 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-12 07:43:24 (GMT) |
commit | 2e03e9528d1cc15edf037c8e2ee0ae6499b0e59d (patch) | |
tree | c9f89ef9744ce85d7495cab78a2faf2204292b06 /sound/pci/hda/hda_generic.h | |
parent | ee8e765b0b6c9274e255025318cf8da1a3e30d45 (diff) | |
download | linux-2e03e9528d1cc15edf037c8e2ee0ae6499b0e59d.tar.xz |
ALSA: hda - Add hooks for HP/line/mic auto switching
... as a preliminary work for migrating patch_sigmatel.c.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.h')
-rw-r--r-- | sound/pci/hda/hda_generic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h index 5c1569c..1090a52 100644 --- a/sound/pci/hda/hda_generic.h +++ b/sound/pci/hda/hda_generic.h @@ -180,6 +180,14 @@ struct hda_gen_spec { void (*init_hook)(struct hda_codec *codec); void (*automute_hook)(struct hda_codec *codec); void (*cap_sync_hook)(struct hda_codec *codec); + + /* automute / autoswitch hooks */ + void (*hp_automute_hook)(struct hda_codec *codec, + struct hda_jack_tbl *tbl); + void (*line_automute_hook)(struct hda_codec *codec, + struct hda_jack_tbl *tbl); + void (*mic_autoswitch_hook)(struct hda_codec *codec, + struct hda_jack_tbl *tbl); }; int snd_hda_gen_spec_init(struct hda_gen_spec *spec); |