ALSA: HDA VIA: Only cosmetic changes
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn> Signed-off-by: Logan Li <loganli@viatech.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -1865,8 +1865,10 @@ static int via_build_pcms(struct hda_codec *codec)
|
|||||||
codec->pcm_info = info;
|
codec->pcm_info = info;
|
||||||
|
|
||||||
info->name = spec->stream_name_analog;
|
info->name = spec->stream_name_analog;
|
||||||
info->stream[SNDRV_PCM_STREAM_PLAYBACK] = *(spec->stream_analog_playback);
|
info->stream[SNDRV_PCM_STREAM_PLAYBACK] =
|
||||||
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->multiout.dac_nids[0];
|
*(spec->stream_analog_playback);
|
||||||
|
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid =
|
||||||
|
spec->multiout.dac_nids[0];
|
||||||
info->stream[SNDRV_PCM_STREAM_CAPTURE] = *(spec->stream_analog_capture);
|
info->stream[SNDRV_PCM_STREAM_CAPTURE] = *(spec->stream_analog_capture);
|
||||||
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0];
|
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0];
|
||||||
|
|
||||||
@@ -2162,7 +2164,7 @@ static int vt1708_auto_fill_dac_nids(struct via_spec *spec,
|
|||||||
|
|
||||||
spec->multiout.dac_nids = spec->private_dac_nids;
|
spec->multiout.dac_nids = spec->private_dac_nids;
|
||||||
|
|
||||||
for(i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
nid = cfg->line_out_pins[i];
|
nid = cfg->line_out_pins[i];
|
||||||
if (nid) {
|
if (nid) {
|
||||||
/* config dac list */
|
/* config dac list */
|
||||||
@@ -2229,7 +2231,7 @@ static int vt1708_auto_create_multi_out_ctls(struct via_spec *spec,
|
|||||||
HDA_OUTPUT));
|
HDA_OUTPUT));
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
} else if (i == AUTO_SEQ_FRONT){
|
} else if (i == AUTO_SEQ_FRONT) {
|
||||||
/* add control to mixer index 0 */
|
/* add control to mixer index 0 */
|
||||||
err = via_add_control(spec, VIA_CTL_WIDGET_VOL,
|
err = via_add_control(spec, VIA_CTL_WIDGET_VOL,
|
||||||
"Master Front Playback Volume",
|
"Master Front Playback Volume",
|
||||||
@@ -2775,11 +2777,11 @@ static int vt1709_auto_fill_dac_nids(struct via_spec *spec,
|
|||||||
spec->multiout.dac_nids[cfg->line_outs] = 0x28; /* AOW4 */
|
spec->multiout.dac_nids[cfg->line_outs] = 0x28; /* AOW4 */
|
||||||
|
|
||||||
} else if (cfg->line_outs == 3) { /* 6 channels */
|
} else if (cfg->line_outs == 3) { /* 6 channels */
|
||||||
for(i = 0; i < cfg->line_outs; i++) {
|
for (i = 0; i < cfg->line_outs; i++) {
|
||||||
nid = cfg->line_out_pins[i];
|
nid = cfg->line_out_pins[i];
|
||||||
if (nid) {
|
if (nid) {
|
||||||
/* config dac list */
|
/* config dac list */
|
||||||
switch(i) {
|
switch (i) {
|
||||||
case AUTO_SEQ_FRONT:
|
case AUTO_SEQ_FRONT:
|
||||||
/* AOW0 */
|
/* AOW0 */
|
||||||
spec->multiout.dac_nids[i] = 0x10;
|
spec->multiout.dac_nids[i] = 0x10;
|
||||||
@@ -2845,7 +2847,7 @@ static int vt1709_auto_create_multi_out_ctls(struct via_spec *spec,
|
|||||||
HDA_OUTPUT));
|
HDA_OUTPUT));
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
} else if (i == AUTO_SEQ_FRONT){
|
} else if (i == AUTO_SEQ_FRONT) {
|
||||||
/* ADD control to mixer index 0 */
|
/* ADD control to mixer index 0 */
|
||||||
err = via_add_control(spec, VIA_CTL_WIDGET_VOL,
|
err = via_add_control(spec, VIA_CTL_WIDGET_VOL,
|
||||||
"Master Front Playback Volume",
|
"Master Front Playback Volume",
|
||||||
|
Reference in New Issue
Block a user