Skip to contentSkip to conversation

HDA/ALC260: 3/7 - generalise some structures

PATCH New Jonathan Woithe 1 participant 1 message Feb 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HDA/ALC260: 3/7 - generalise some structures

Takashi

[ Resent to avoid confusion due to typo in subject of original post ]

This patch generalises a structure added for the "fujitsu" model but which is potentially useful for other models as well. It turns the "alc260_fujitsu_adc_nids" array into "alc260_dual_adc_nids"; for other models which decide to utilise the dual ADC functionality there's really no reason why they need to define their own list of ADC nids.

The "fujitsu" model preset is adjusted accordingly.

Regards
jonathan

patch_realtek.c renamed from patch_realtek.c-02-switch_pin_io_mode +6 -3
@@ -2419,7 +2419,10 @@
 	0x05, 0x04
 };
 
-static hda_nid_t alc260_fujitsu_adc_nids[2] = {
+/* NIDs used when simultaneous access to both ADCs makes sense.  Note that
+ * alc260_capture_mixer assumes ADC0 (nid 0x04) is the first ADC.
+ */
+static hda_nid_t alc260_dual_adc_nids[2] = {
 	/* ADC0, ADC1 */
 	0x04, 0x05
 };
@@ -3285,8 +3288,8 @@
 		.init_verbs = { alc260_fujitsu_init_verbs },
 		.num_dacs = ARRAY_SIZE(alc260_dac_nids),
 		.dac_nids = alc260_dac_nids,
-		.num_adc_nids = ARRAY_SIZE(alc260_fujitsu_adc_nids),
-		.adc_nids = alc260_fujitsu_adc_nids,
+		.num_adc_nids = ARRAY_SIZE(alc260_dual_adc_nids),
+		.adc_nids = alc260_dual_adc_nids,
 		.num_channel_mode = ARRAY_SIZE(alc260_modes),
 		.channel_mode = alc260_modes,
 		.input_mux = &alc260_fujitsu_capture_source,

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642