aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 05:09:23 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:17:26 -0500
commit8d88bc3d361bdd81a214eb9c5d06b291d06c603a (patch)
treedc3bfd15ff731e55bc8c2e29f54d050325a9ee1a /sound/pci/hda/hda_local.h
parenta2a20939b1cc82222eb67a4631009338791f1acd (diff)
[ALSA] hda-codec - Fix assignment of speaker pin
Modules: HDA Codec driver,HDA generic driver Fix the auto-assignment of speaker pin. Handle it independently from line-out pins. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r--sound/pci/hda/hda_local.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index 05a88fb1d652..31d3c7ef5842 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -214,6 +214,7 @@ enum {
214struct auto_pin_cfg { 214struct auto_pin_cfg {
215 int line_outs; 215 int line_outs;
216 hda_nid_t line_out_pins[4]; /* sorted in the order of Front/Surr/CLFE/Side */ 216 hda_nid_t line_out_pins[4]; /* sorted in the order of Front/Surr/CLFE/Side */
217 hda_nid_t speaker_pin;
217 hda_nid_t hp_pin; 218 hda_nid_t hp_pin;
218 hda_nid_t input_pins[AUTO_PIN_LAST]; 219 hda_nid_t input_pins[AUTO_PIN_LAST];
219 hda_nid_t dig_out_pin; 220 hda_nid_t dig_out_pin;
@@ -228,4 +229,18 @@ struct auto_pin_cfg {
228 229
229int snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *cfg); 230int snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *cfg);
230 231
232/* amp values */
233#define AMP_IN_MUTE(idx) (0x7080 | ((idx)<<8))
234#define AMP_IN_UNMUTE(idx) (0x7000 | ((idx)<<8))
235#define AMP_OUT_MUTE 0xb080
236#define AMP_OUT_UNMUTE 0xb000
237#define AMP_OUT_ZERO 0xb000
238/* pinctl values */
239#define PIN_IN 0x20
240#define PIN_VREF80 0x24
241#define PIN_VREF50 0x21
242#define PIN_OUT 0x40
243#define PIN_HP 0xc0
244#define PIN_HP_AMP 0x80
245
231#endif /* __SOUND_HDA_LOCAL_H */ 246#endif /* __SOUND_HDA_LOCAL_H */