diff options
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index a79d0ed5469c..20c5e6250374 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -245,7 +245,14 @@ int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, | |||
245 | /* | 245 | /* |
246 | * generic codec parser | 246 | * generic codec parser |
247 | */ | 247 | */ |
248 | #ifdef CONFIG_SND_HDA_GENERIC | ||
248 | int snd_hda_parse_generic_codec(struct hda_codec *codec); | 249 | int snd_hda_parse_generic_codec(struct hda_codec *codec); |
250 | #else | ||
251 | static inline int snd_hda_parse_generic_codec(struct hda_codec *codec) | ||
252 | { | ||
253 | return -ENODEV; | ||
254 | } | ||
255 | #endif | ||
249 | 256 | ||
250 | /* | 257 | /* |
251 | * generic proc interface | 258 | * generic proc interface |
@@ -303,16 +310,17 @@ enum { | |||
303 | 310 | ||
304 | extern const char *auto_pin_cfg_labels[AUTO_PIN_LAST]; | 311 | extern const char *auto_pin_cfg_labels[AUTO_PIN_LAST]; |
305 | 312 | ||
313 | #define AUTO_CFG_MAX_OUTS 5 | ||
314 | |||
306 | struct auto_pin_cfg { | 315 | struct auto_pin_cfg { |
307 | int line_outs; | 316 | int line_outs; |
308 | hda_nid_t line_out_pins[5]; /* sorted in the order of | 317 | /* sorted in the order of Front/Surr/CLFE/Side */ |
309 | * Front/Surr/CLFE/Side | 318 | hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS]; |
310 | */ | ||
311 | int speaker_outs; | 319 | int speaker_outs; |
312 | hda_nid_t speaker_pins[5]; | 320 | hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS]; |
313 | int hp_outs; | 321 | int hp_outs; |
314 | int line_out_type; /* AUTO_PIN_XXX_OUT */ | 322 | int line_out_type; /* AUTO_PIN_XXX_OUT */ |
315 | hda_nid_t hp_pins[5]; | 323 | hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS]; |
316 | hda_nid_t input_pins[AUTO_PIN_LAST]; | 324 | hda_nid_t input_pins[AUTO_PIN_LAST]; |
317 | hda_nid_t dig_out_pin; | 325 | hda_nid_t dig_out_pin; |
318 | hda_nid_t dig_in_pin; | 326 | hda_nid_t dig_in_pin; |