aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-05-02 05:29:30 -0400
committerTakashi Iwai <tiwai@suse.de>2011-05-02 06:07:48 -0400
commitdda144103c4a47a504fcaa8cddd08a4440c87060 (patch)
tree3d6435dbb61e37349153b63326123606d6cd5dba /sound/pci/hda
parenta9111321f2fb6a23fbed82b8b4cbd77f5580ba75 (diff)
ALSA: hda - Constify some API function arguments
Also fixed the assignment of multiout.dac_nids to satisfy const. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/hda_codec.c14
-rw-r--r--sound/pci/hda/hda_codec.h2
-rw-r--r--sound/pci/hda/hda_local.h6
-rw-r--r--sound/pci/hda/patch_analog.c2
-rw-r--r--sound/pci/hda/patch_realtek.c18
-rw-r--r--sound/pci/hda/patch_sigmatel.c3
-rw-r--r--sound/pci/hda/patch_via.c74
7 files changed, 60 insertions, 59 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index d1a2351aabfa..c63f376ba9ab 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2621,7 +2621,7 @@ static unsigned int convert_to_spdif_status(unsigned short val)
2621static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, 2621static void set_dig_out(struct hda_codec *codec, hda_nid_t nid,
2622 int verb, int val) 2622 int verb, int val)
2623{ 2623{
2624 hda_nid_t *d; 2624 const hda_nid_t *d;
2625 2625
2626 snd_hda_codec_write_cache(codec, nid, 0, verb, val); 2626 snd_hda_codec_write_cache(codec, nid, 0, verb, val);
2627 d = codec->slave_dig_outs; 2627 d = codec->slave_dig_outs;
@@ -4184,7 +4184,7 @@ static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid,
4184 -1); 4184 -1);
4185 snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format); 4185 snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format);
4186 if (codec->slave_dig_outs) { 4186 if (codec->slave_dig_outs) {
4187 hda_nid_t *d; 4187 const hda_nid_t *d;
4188 for (d = codec->slave_dig_outs; *d; d++) 4188 for (d = codec->slave_dig_outs; *d; d++)
4189 snd_hda_codec_setup_stream(codec, *d, stream_tag, 0, 4189 snd_hda_codec_setup_stream(codec, *d, stream_tag, 0,
4190 format); 4190 format);
@@ -4199,7 +4199,7 @@ static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid)
4199{ 4199{
4200 snd_hda_codec_cleanup_stream(codec, nid); 4200 snd_hda_codec_cleanup_stream(codec, nid);
4201 if (codec->slave_dig_outs) { 4201 if (codec->slave_dig_outs) {
4202 hda_nid_t *d; 4202 const hda_nid_t *d;
4203 for (d = codec->slave_dig_outs; *d; d++) 4203 for (d = codec->slave_dig_outs; *d; d++)
4204 snd_hda_codec_cleanup_stream(codec, *d); 4204 snd_hda_codec_cleanup_stream(codec, *d);
4205 } 4205 }
@@ -4346,7 +4346,7 @@ int snd_hda_multi_out_analog_prepare(struct hda_codec *codec,
4346 unsigned int format, 4346 unsigned int format,
4347 struct snd_pcm_substream *substream) 4347 struct snd_pcm_substream *substream)
4348{ 4348{
4349 hda_nid_t *nids = mout->dac_nids; 4349 const hda_nid_t *nids = mout->dac_nids;
4350 int chs = substream->runtime->channels; 4350 int chs = substream->runtime->channels;
4351 int i; 4351 int i;
4352 4352
@@ -4401,7 +4401,7 @@ EXPORT_SYMBOL_HDA(snd_hda_multi_out_analog_prepare);
4401int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, 4401int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec,
4402 struct hda_multi_out *mout) 4402 struct hda_multi_out *mout)
4403{ 4403{
4404 hda_nid_t *nids = mout->dac_nids; 4404 const hda_nid_t *nids = mout->dac_nids;
4405 int i; 4405 int i;
4406 4406
4407 for (i = 0; i < mout->num_dacs; i++) 4407 for (i = 0; i < mout->num_dacs; i++)
@@ -4426,7 +4426,7 @@ EXPORT_SYMBOL_HDA(snd_hda_multi_out_analog_cleanup);
4426 * Helper for automatic pin configuration 4426 * Helper for automatic pin configuration
4427 */ 4427 */
4428 4428
4429static int is_in_nid_list(hda_nid_t nid, hda_nid_t *list) 4429static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list)
4430{ 4430{
4431 for (; *list; list++) 4431 for (; *list; list++)
4432 if (*list == nid) 4432 if (*list == nid)
@@ -4507,7 +4507,7 @@ static void sort_autocfg_input_pins(struct auto_pin_cfg *cfg)
4507 */ 4507 */
4508int snd_hda_parse_pin_def_config(struct hda_codec *codec, 4508int snd_hda_parse_pin_def_config(struct hda_codec *codec,
4509 struct auto_pin_cfg *cfg, 4509 struct auto_pin_cfg *cfg,
4510 hda_nid_t *ignore_nids) 4510 const hda_nid_t *ignore_nids)
4511{ 4511{
4512 hda_nid_t nid, end_nid; 4512 hda_nid_t nid, end_nid;
4513 short seq, assoc_line_out, assoc_speaker; 4513 short seq, assoc_line_out, assoc_speaker;
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 7d57a66c1b31..59c97306c1de 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -832,7 +832,7 @@ struct hda_codec {
832 unsigned int spdif_status; /* IEC958 status bits */ 832 unsigned int spdif_status; /* IEC958 status bits */
833 unsigned short spdif_ctls; /* SPDIF control bits */ 833 unsigned short spdif_ctls; /* SPDIF control bits */
834 unsigned int spdif_in_enable; /* SPDIF input enable? */ 834 unsigned int spdif_in_enable; /* SPDIF input enable? */
835 hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */ 835 const hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */
836 struct snd_array init_pins; /* initial (BIOS) pin configurations */ 836 struct snd_array init_pins; /* initial (BIOS) pin configurations */
837 struct snd_array driver_pins; /* pin configs set by codec parser */ 837 struct snd_array driver_pins; /* pin configs set by codec parser */
838 struct snd_array cvt_setups; /* audio convert setups */ 838 struct snd_array cvt_setups; /* audio convert setups */
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index f36af375abbf..1ed6ee5a1e70 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -267,11 +267,11 @@ enum { HDA_DIG_NONE, HDA_DIG_EXCLUSIVE, HDA_DIG_ANALOG_DUP }; /* dig_out_used */
267 267
268struct hda_multi_out { 268struct hda_multi_out {
269 int num_dacs; /* # of DACs, must be more than 1 */ 269 int num_dacs; /* # of DACs, must be more than 1 */
270 hda_nid_t *dac_nids; /* DAC list */ 270 const hda_nid_t *dac_nids; /* DAC list */
271 hda_nid_t hp_nid; /* optional DAC for HP, 0 when not exists */ 271 hda_nid_t hp_nid; /* optional DAC for HP, 0 when not exists */
272 hda_nid_t extra_out_nid[3]; /* optional DACs, 0 when not exists */ 272 hda_nid_t extra_out_nid[3]; /* optional DACs, 0 when not exists */
273 hda_nid_t dig_out_nid; /* digital out audio widget */ 273 hda_nid_t dig_out_nid; /* digital out audio widget */
274 hda_nid_t *slave_dig_outs; 274 const hda_nid_t *slave_dig_outs;
275 int max_channels; /* currently supported analog channels */ 275 int max_channels; /* currently supported analog channels */
276 int dig_out_used; /* current usage of digital out (HDA_DIG_XXX) */ 276 int dig_out_used; /* current usage of digital out (HDA_DIG_XXX) */
277 int no_share_stream; /* don't share a stream with multiple pins */ 277 int no_share_stream; /* don't share a stream with multiple pins */
@@ -443,7 +443,7 @@ struct auto_pin_cfg {
443 443
444int snd_hda_parse_pin_def_config(struct hda_codec *codec, 444int snd_hda_parse_pin_def_config(struct hda_codec *codec,
445 struct auto_pin_cfg *cfg, 445 struct auto_pin_cfg *cfg,
446 hda_nid_t *ignore_nids); 446 const hda_nid_t *ignore_nids);
447 447
448/* amp values */ 448/* amp values */
449#define AMP_IN_MUTE(idx) (0x7080 | ((idx)<<8)) 449#define AMP_IN_MUTE(idx) (0x7080 | ((idx)<<8))
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index 12317488cd98..6df9943bbf65 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -2845,7 +2845,7 @@ static int ad1988_auto_fill_dac_nids(struct hda_codec *codec,
2845 /* check the pins hardwired to audio widget */ 2845 /* check the pins hardwired to audio widget */
2846 for (i = 0; i < cfg->line_outs; i++) { 2846 for (i = 0; i < cfg->line_outs; i++) {
2847 idx = ad1988_pin_idx(cfg->line_out_pins[i]); 2847 idx = ad1988_pin_idx(cfg->line_out_pins[i]);
2848 spec->multiout.dac_nids[i] = ad1988_idx_to_dac(codec, idx); 2848 spec->private_dac_nids[i] = ad1988_idx_to_dac(codec, idx);
2849 } 2849 }
2850 spec->multiout.num_dacs = cfg->line_outs; 2850 spec->multiout.num_dacs = cfg->line_outs;
2851 return 0; 2851 return 0;
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 5b79080be76a..ac0400929dcb 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5294,7 +5294,7 @@ static int alc880_auto_fill_dac_nids(struct alc_spec *spec,
5294 nid = cfg->line_out_pins[i]; 5294 nid = cfg->line_out_pins[i];
5295 if (alc880_is_fixed_pin(nid)) { 5295 if (alc880_is_fixed_pin(nid)) {
5296 int idx = alc880_fixed_pin_idx(nid); 5296 int idx = alc880_fixed_pin_idx(nid);
5297 spec->multiout.dac_nids[i] = alc880_idx_to_dac(idx); 5297 spec->private_dac_nids[i] = alc880_idx_to_dac(idx);
5298 assigned[idx] = 1; 5298 assigned[idx] = 1;
5299 } 5299 }
5300 } 5300 }
@@ -5306,7 +5306,7 @@ static int alc880_auto_fill_dac_nids(struct alc_spec *spec,
5306 /* search for an empty channel */ 5306 /* search for an empty channel */
5307 for (j = 0; j < cfg->line_outs; j++) { 5307 for (j = 0; j < cfg->line_outs; j++) {
5308 if (!assigned[j]) { 5308 if (!assigned[j]) {
5309 spec->multiout.dac_nids[i] = 5309 spec->private_dac_nids[i] =
5310 alc880_idx_to_dac(j); 5310 alc880_idx_to_dac(j);
5311 assigned[j] = 1; 5311 assigned[j] = 1;
5312 break; 5312 break;
@@ -7131,7 +7131,7 @@ static int alc260_auto_create_multi_out_ctls(struct alc_spec *spec,
7131 7131
7132 spec->multiout.num_dacs = 1; 7132 spec->multiout.num_dacs = 1;
7133 spec->multiout.dac_nids = spec->private_dac_nids; 7133 spec->multiout.dac_nids = spec->private_dac_nids;
7134 spec->multiout.dac_nids[0] = 0x02; 7134 spec->private_dac_nids[0] = 0x02;
7135 7135
7136 nid = cfg->line_out_pins[0]; 7136 nid = cfg->line_out_pins[0];
7137 if (nid) { 7137 if (nid) {
@@ -12214,7 +12214,7 @@ static int alc262_auto_create_multi_out_ctls(struct alc_spec *spec,
12214 12214
12215 spec->multiout.num_dacs = 1; /* only use one dac */ 12215 spec->multiout.num_dacs = 1; /* only use one dac */
12216 spec->multiout.dac_nids = spec->private_dac_nids; 12216 spec->multiout.dac_nids = spec->private_dac_nids;
12217 spec->multiout.dac_nids[0] = 2; 12217 spec->private_dac_nids[0] = 2;
12218 12218
12219 pfx = alc_get_line_out_pfx(spec, true); 12219 pfx = alc_get_line_out_pfx(spec, true);
12220 if (!pfx) 12220 if (!pfx)
@@ -13553,7 +13553,7 @@ static int alc268_new_analog_output(struct alc_spec *spec, hda_nid_t nid,
13553 HDA_OUTPUT)); 13553 HDA_OUTPUT));
13554 if (err < 0) 13554 if (err < 0)
13555 return err; 13555 return err;
13556 spec->multiout.dac_nids[spec->multiout.num_dacs++] = dac; 13556 spec->private_dac_nids[spec->multiout.num_dacs++] = dac;
13557 } 13557 }
13558 13558
13559 if (nid != 0x16) 13559 if (nid != 0x16)
@@ -15951,7 +15951,7 @@ static int alc861_auto_fill_dac_nids(struct hda_codec *codec,
15951 dac = alc861_look_for_dac(codec, nid); 15951 dac = alc861_look_for_dac(codec, nid);
15952 if (!dac) 15952 if (!dac)
15953 continue; 15953 continue;
15954 spec->multiout.dac_nids[spec->multiout.num_dacs++] = dac; 15954 spec->private_dac_nids[spec->multiout.num_dacs++] = dac;
15955 } 15955 }
15956 return 0; 15956 return 0;
15957} 15957}
@@ -18932,7 +18932,7 @@ static int alc662_auto_fill_dac_nids(struct hda_codec *codec,
18932 dac = alc_auto_look_for_dac(codec, cfg->line_out_pins[i]); 18932 dac = alc_auto_look_for_dac(codec, cfg->line_out_pins[i]);
18933 if (!dac) 18933 if (!dac)
18934 continue; 18934 continue;
18935 spec->multiout.dac_nids[spec->multiout.num_dacs++] = dac; 18935 spec->private_dac_nids[spec->multiout.num_dacs++] = dac;
18936 } 18936 }
18937 return 0; 18937 return 0;
18938} 18938}
@@ -19166,7 +19166,7 @@ static int alc_auto_fill_multi_ios(struct hda_codec *codec,
19166 spec->multi_io[num_pins].pin = nid; 19166 spec->multi_io[num_pins].pin = nid;
19167 spec->multi_io[num_pins].dac = dac; 19167 spec->multi_io[num_pins].dac = dac;
19168 num_pins++; 19168 num_pins++;
19169 spec->multiout.dac_nids[spec->multiout.num_dacs++] = dac; 19169 spec->private_dac_nids[spec->multiout.num_dacs++] = dac;
19170 } 19170 }
19171 } 19171 }
19172 spec->multiout.num_dacs = 1; 19172 spec->multiout.num_dacs = 1;
@@ -19786,7 +19786,7 @@ static int alc680_new_analog_output(struct alc_spec *spec, hda_nid_t nid,
19786 19786
19787 if (err < 0) 19787 if (err < 0)
19788 return err; 19788 return err;
19789 spec->multiout.dac_nids[spec->multiout.num_dacs++] = dac; 19789 spec->private_dac_nids[spec->multiout.num_dacs++] = dac;
19790 } 19790 }
19791 19791
19792 return 0; 19792 return 0;
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 2b590d92ff90..1ce65d4e05ac 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -3072,7 +3072,8 @@ static int add_spec_dacs(struct sigmatel_spec *spec, hda_nid_t nid)
3072 printk(KERN_WARNING "stac92xx: No space for DAC 0x%x\n", nid); 3072 printk(KERN_WARNING "stac92xx: No space for DAC 0x%x\n", nid);
3073 return 1; 3073 return 1;
3074 } else { 3074 } else {
3075 spec->multiout.dac_nids[spec->multiout.num_dacs] = nid; 3075 snd_BUG_ON(spec->multiout.dac_nids != spec->dac_nids);
3076 spec->dac_nids[spec->multiout.num_dacs] = nid;
3076 spec->multiout.num_dacs++; 3077 spec->multiout.num_dacs++;
3077 } 3078 }
3078 return 0; 3079 return 0;
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index 6a51ffb266f9..0bfbacb4e34c 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1233,7 +1233,7 @@ static void playback_multi_pcm_prep_0(struct hda_codec *codec,
1233{ 1233{
1234 struct via_spec *spec = codec->spec; 1234 struct via_spec *spec = codec->spec;
1235 struct hda_multi_out *mout = &spec->multiout; 1235 struct hda_multi_out *mout = &spec->multiout;
1236 hda_nid_t *nids = mout->dac_nids; 1236 const hda_nid_t *nids = mout->dac_nids;
1237 int chs = substream->runtime->channels; 1237 int chs = substream->runtime->channels;
1238 int i; 1238 int i;
1239 1239
@@ -1302,7 +1302,7 @@ static int via_playback_multi_pcm_prepare(struct hda_pcm_stream *hinfo,
1302{ 1302{
1303 struct via_spec *spec = codec->spec; 1303 struct via_spec *spec = codec->spec;
1304 struct hda_multi_out *mout = &spec->multiout; 1304 struct hda_multi_out *mout = &spec->multiout;
1305 hda_nid_t *nids = mout->dac_nids; 1305 const hda_nid_t *nids = mout->dac_nids;
1306 1306
1307 if (substream->number == 0) 1307 if (substream->number == 0)
1308 playback_multi_pcm_prep_0(codec, stream_tag, format, 1308 playback_multi_pcm_prep_0(codec, stream_tag, format,
@@ -1323,7 +1323,7 @@ static int via_playback_multi_pcm_cleanup(struct hda_pcm_stream *hinfo,
1323{ 1323{
1324 struct via_spec *spec = codec->spec; 1324 struct via_spec *spec = codec->spec;
1325 struct hda_multi_out *mout = &spec->multiout; 1325 struct hda_multi_out *mout = &spec->multiout;
1326 hda_nid_t *nids = mout->dac_nids; 1326 const hda_nid_t *nids = mout->dac_nids;
1327 int i; 1327 int i;
1328 1328
1329 if (substream->number == 0) { 1329 if (substream->number == 0) {
@@ -1849,16 +1849,16 @@ static int vt1708_auto_fill_dac_nids(struct via_spec *spec,
1849 /* config dac list */ 1849 /* config dac list */
1850 switch (i) { 1850 switch (i) {
1851 case AUTO_SEQ_FRONT: 1851 case AUTO_SEQ_FRONT:
1852 spec->multiout.dac_nids[i] = 0x10; 1852 spec->private_dac_nids[i] = 0x10;
1853 break; 1853 break;
1854 case AUTO_SEQ_CENLFE: 1854 case AUTO_SEQ_CENLFE:
1855 spec->multiout.dac_nids[i] = 0x12; 1855 spec->private_dac_nids[i] = 0x12;
1856 break; 1856 break;
1857 case AUTO_SEQ_SURROUND: 1857 case AUTO_SEQ_SURROUND:
1858 spec->multiout.dac_nids[i] = 0x11; 1858 spec->private_dac_nids[i] = 0x11;
1859 break; 1859 break;
1860 case AUTO_SEQ_SIDE: 1860 case AUTO_SEQ_SIDE:
1861 spec->multiout.dac_nids[i] = 0x13; 1861 spec->private_dac_nids[i] = 0x13;
1862 break; 1862 break;
1863 } 1863 }
1864 } 1864 }
@@ -2437,26 +2437,26 @@ static int vt1709_auto_fill_dac_nids(struct via_spec *spec,
2437 switch (i) { 2437 switch (i) {
2438 case AUTO_SEQ_FRONT: 2438 case AUTO_SEQ_FRONT:
2439 /* AOW0 */ 2439 /* AOW0 */
2440 spec->multiout.dac_nids[i] = 0x10; 2440 spec->private_dac_nids[i] = 0x10;
2441 break; 2441 break;
2442 case AUTO_SEQ_CENLFE: 2442 case AUTO_SEQ_CENLFE:
2443 /* AOW2 */ 2443 /* AOW2 */
2444 spec->multiout.dac_nids[i] = 0x12; 2444 spec->private_dac_nids[i] = 0x12;
2445 break; 2445 break;
2446 case AUTO_SEQ_SURROUND: 2446 case AUTO_SEQ_SURROUND:
2447 /* AOW3 */ 2447 /* AOW3 */
2448 spec->multiout.dac_nids[i] = 0x11; 2448 spec->private_dac_nids[i] = 0x11;
2449 break; 2449 break;
2450 case AUTO_SEQ_SIDE: 2450 case AUTO_SEQ_SIDE:
2451 /* AOW1 */ 2451 /* AOW1 */
2452 spec->multiout.dac_nids[i] = 0x27; 2452 spec->private_dac_nids[i] = 0x27;
2453 break; 2453 break;
2454 default: 2454 default:
2455 break; 2455 break;
2456 } 2456 }
2457 } 2457 }
2458 } 2458 }
2459 spec->multiout.dac_nids[cfg->line_outs] = 0x28; /* AOW4 */ 2459 spec->private_dac_nids[cfg->line_outs] = 0x28; /* AOW4 */
2460 2460
2461 } else if (cfg->line_outs == 3) { /* 6 channels */ 2461 } else if (cfg->line_outs == 3) { /* 6 channels */
2462 for (i = 0; i < cfg->line_outs; i++) { 2462 for (i = 0; i < cfg->line_outs; i++) {
@@ -2466,15 +2466,15 @@ static int vt1709_auto_fill_dac_nids(struct via_spec *spec,
2466 switch (i) { 2466 switch (i) {
2467 case AUTO_SEQ_FRONT: 2467 case AUTO_SEQ_FRONT:
2468 /* AOW0 */ 2468 /* AOW0 */
2469 spec->multiout.dac_nids[i] = 0x10; 2469 spec->private_dac_nids[i] = 0x10;
2470 break; 2470 break;
2471 case AUTO_SEQ_CENLFE: 2471 case AUTO_SEQ_CENLFE:
2472 /* AOW2 */ 2472 /* AOW2 */
2473 spec->multiout.dac_nids[i] = 0x12; 2473 spec->private_dac_nids[i] = 0x12;
2474 break; 2474 break;
2475 case AUTO_SEQ_SURROUND: 2475 case AUTO_SEQ_SURROUND:
2476 /* AOW1 */ 2476 /* AOW1 */
2477 spec->multiout.dac_nids[i] = 0x11; 2477 spec->private_dac_nids[i] = 0x11;
2478 break; 2478 break;
2479 default: 2479 default:
2480 break; 2480 break;
@@ -3013,16 +3013,16 @@ static int vt1708B_auto_fill_dac_nids(struct via_spec *spec,
3013 /* config dac list */ 3013 /* config dac list */
3014 switch (i) { 3014 switch (i) {
3015 case AUTO_SEQ_FRONT: 3015 case AUTO_SEQ_FRONT:
3016 spec->multiout.dac_nids[i] = 0x10; 3016 spec->private_dac_nids[i] = 0x10;
3017 break; 3017 break;
3018 case AUTO_SEQ_CENLFE: 3018 case AUTO_SEQ_CENLFE:
3019 spec->multiout.dac_nids[i] = 0x24; 3019 spec->private_dac_nids[i] = 0x24;
3020 break; 3020 break;
3021 case AUTO_SEQ_SURROUND: 3021 case AUTO_SEQ_SURROUND:
3022 spec->multiout.dac_nids[i] = 0x11; 3022 spec->private_dac_nids[i] = 0x11;
3023 break; 3023 break;
3024 case AUTO_SEQ_SIDE: 3024 case AUTO_SEQ_SIDE:
3025 spec->multiout.dac_nids[i] = 0x25; 3025 spec->private_dac_nids[i] = 0x25;
3026 break; 3026 break;
3027 } 3027 }
3028 } 3028 }
@@ -3546,19 +3546,19 @@ static int vt1708S_auto_fill_dac_nids(struct via_spec *spec,
3546 /* config dac list */ 3546 /* config dac list */
3547 switch (i) { 3547 switch (i) {
3548 case AUTO_SEQ_FRONT: 3548 case AUTO_SEQ_FRONT:
3549 spec->multiout.dac_nids[i] = 0x10; 3549 spec->private_dac_nids[i] = 0x10;
3550 break; 3550 break;
3551 case AUTO_SEQ_CENLFE: 3551 case AUTO_SEQ_CENLFE:
3552 if (spec->codec->vendor_id == 0x11064397) 3552 if (spec->codec->vendor_id == 0x11064397)
3553 spec->multiout.dac_nids[i] = 0x25; 3553 spec->private_dac_nids[i] = 0x25;
3554 else 3554 else
3555 spec->multiout.dac_nids[i] = 0x24; 3555 spec->private_dac_nids[i] = 0x24;
3556 break; 3556 break;
3557 case AUTO_SEQ_SURROUND: 3557 case AUTO_SEQ_SURROUND:
3558 spec->multiout.dac_nids[i] = 0x11; 3558 spec->private_dac_nids[i] = 0x11;
3559 break; 3559 break;
3560 case AUTO_SEQ_SIDE: 3560 case AUTO_SEQ_SIDE:
3561 spec->multiout.dac_nids[i] = 0x25; 3561 spec->private_dac_nids[i] = 0x25;
3562 break; 3562 break;
3563 } 3563 }
3564 } 3564 }
@@ -3567,11 +3567,11 @@ static int vt1708S_auto_fill_dac_nids(struct via_spec *spec,
3567 /* for Smart 5.1, line/mic inputs double as output pins */ 3567 /* for Smart 5.1, line/mic inputs double as output pins */
3568 if (cfg->line_outs == 1) { 3568 if (cfg->line_outs == 1) {
3569 spec->multiout.num_dacs = 3; 3569 spec->multiout.num_dacs = 3;
3570 spec->multiout.dac_nids[AUTO_SEQ_SURROUND] = 0x11; 3570 spec->private_dac_nids[AUTO_SEQ_SURROUND] = 0x11;
3571 if (spec->codec->vendor_id == 0x11064397) 3571 if (spec->codec->vendor_id == 0x11064397)
3572 spec->multiout.dac_nids[AUTO_SEQ_CENLFE] = 0x25; 3572 spec->private_dac_nids[AUTO_SEQ_CENLFE] = 0x25;
3573 else 3573 else
3574 spec->multiout.dac_nids[AUTO_SEQ_CENLFE] = 0x24; 3574 spec->private_dac_nids[AUTO_SEQ_CENLFE] = 0x24;
3575 } 3575 }
3576 3576
3577 return 0; 3577 return 0;
@@ -4017,7 +4017,7 @@ static int vt1702_auto_fill_dac_nids(struct via_spec *spec,
4017 4017
4018 if (cfg->line_out_pins[0]) { 4018 if (cfg->line_out_pins[0]) {
4019 /* config dac list */ 4019 /* config dac list */
4020 spec->multiout.dac_nids[0] = 0x10; 4020 spec->private_dac_nids[0] = 0x10;
4021 } 4021 }
4022 4022
4023 return 0; 4023 return 0;
@@ -4384,16 +4384,16 @@ static int vt1718S_auto_fill_dac_nids(struct via_spec *spec,
4384 /* config dac list */ 4384 /* config dac list */
4385 switch (i) { 4385 switch (i) {
4386 case AUTO_SEQ_FRONT: 4386 case AUTO_SEQ_FRONT:
4387 spec->multiout.dac_nids[i] = 0x8; 4387 spec->private_dac_nids[i] = 0x8;
4388 break; 4388 break;
4389 case AUTO_SEQ_CENLFE: 4389 case AUTO_SEQ_CENLFE:
4390 spec->multiout.dac_nids[i] = 0xa; 4390 spec->private_dac_nids[i] = 0xa;
4391 break; 4391 break;
4392 case AUTO_SEQ_SURROUND: 4392 case AUTO_SEQ_SURROUND:
4393 spec->multiout.dac_nids[i] = 0x9; 4393 spec->private_dac_nids[i] = 0x9;
4394 break; 4394 break;
4395 case AUTO_SEQ_SIDE: 4395 case AUTO_SEQ_SIDE:
4396 spec->multiout.dac_nids[i] = 0xb; 4396 spec->private_dac_nids[i] = 0xb;
4397 break; 4397 break;
4398 } 4398 }
4399 } 4399 }
@@ -4905,13 +4905,13 @@ static int vt1716S_auto_fill_dac_nids(struct via_spec *spec,
4905 /* config dac list */ 4905 /* config dac list */
4906 switch (i) { 4906 switch (i) {
4907 case AUTO_SEQ_FRONT: 4907 case AUTO_SEQ_FRONT:
4908 spec->multiout.dac_nids[i] = 0x10; 4908 spec->private_dac_nids[i] = 0x10;
4909 break; 4909 break;
4910 case AUTO_SEQ_CENLFE: 4910 case AUTO_SEQ_CENLFE:
4911 spec->multiout.dac_nids[i] = 0x25; 4911 spec->private_dac_nids[i] = 0x25;
4912 break; 4912 break;
4913 case AUTO_SEQ_SURROUND: 4913 case AUTO_SEQ_SURROUND:
4914 spec->multiout.dac_nids[i] = 0x11; 4914 spec->private_dac_nids[i] = 0x11;
4915 break; 4915 break;
4916 } 4916 }
4917 } 4917 }
@@ -5454,7 +5454,7 @@ static int vt2002P_auto_fill_dac_nids(struct via_spec *spec,
5454 spec->multiout.num_dacs = 1; 5454 spec->multiout.num_dacs = 1;
5455 spec->multiout.dac_nids = spec->private_dac_nids; 5455 spec->multiout.dac_nids = spec->private_dac_nids;
5456 if (cfg->line_out_pins[0]) 5456 if (cfg->line_out_pins[0])
5457 spec->multiout.dac_nids[0] = 0x8; 5457 spec->private_dac_nids[0] = 0x8;
5458 return 0; 5458 return 0;
5459} 5459}
5460 5460
@@ -5907,7 +5907,7 @@ static int vt1812_auto_fill_dac_nids(struct via_spec *spec,
5907 spec->multiout.num_dacs = 1; 5907 spec->multiout.num_dacs = 1;
5908 spec->multiout.dac_nids = spec->private_dac_nids; 5908 spec->multiout.dac_nids = spec->private_dac_nids;
5909 if (cfg->line_out_pins[0]) 5909 if (cfg->line_out_pins[0])
5910 spec->multiout.dac_nids[0] = 0x8; 5910 spec->private_dac_nids[0] = 0x8;
5911 return 0; 5911 return 0;
5912} 5912}
5913 5913