diff options
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 09a332ada0c6..6d01a8058f0a 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -778,11 +778,14 @@ struct hda_codec { | |||
778 | unsigned short spdif_ctls; /* SPDIF control bits */ | 778 | unsigned short spdif_ctls; /* SPDIF control bits */ |
779 | unsigned int spdif_in_enable; /* SPDIF input enable? */ | 779 | unsigned int spdif_in_enable; /* SPDIF input enable? */ |
780 | hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */ | 780 | hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */ |
781 | struct snd_array init_pins; /* initial (BIOS) pin configurations */ | ||
782 | struct snd_array cur_pins; /* current pin configurations */ | ||
781 | 783 | ||
782 | #ifdef CONFIG_SND_HDA_HWDEP | 784 | #ifdef CONFIG_SND_HDA_HWDEP |
783 | struct snd_hwdep *hwdep; /* assigned hwdep device */ | 785 | struct snd_hwdep *hwdep; /* assigned hwdep device */ |
784 | struct snd_array init_verbs; /* additional init verbs */ | 786 | struct snd_array init_verbs; /* additional init verbs */ |
785 | struct snd_array hints; /* additional hints */ | 787 | struct snd_array hints; /* additional hints */ |
788 | struct snd_array override_pins; /* default pin configs to override */ | ||
786 | #endif | 789 | #endif |
787 | 790 | ||
788 | /* misc flags */ | 791 | /* misc flags */ |
@@ -855,6 +858,18 @@ void snd_hda_codec_resume_cache(struct hda_codec *codec); | |||
855 | #define snd_hda_sequence_write_cache snd_hda_sequence_write | 858 | #define snd_hda_sequence_write_cache snd_hda_sequence_write |
856 | #endif | 859 | #endif |
857 | 860 | ||
861 | /* the struct for codec->pin_configs */ | ||
862 | struct hda_pincfg { | ||
863 | hda_nid_t nid; | ||
864 | unsigned int cfg; | ||
865 | }; | ||
866 | |||
867 | unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid); | ||
868 | int snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid, | ||
869 | unsigned int cfg); | ||
870 | int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, | ||
871 | hda_nid_t nid, unsigned int cfg); /* for hwdep */ | ||
872 | |||
858 | /* | 873 | /* |
859 | * Mixer | 874 | * Mixer |
860 | */ | 875 | */ |