The point is only spec->adc_nids[0] is used in via_build_pcms
1953 static int via_build_pcms(struct hda_codec *codec) 1954 { 1955 struct via_spec *spec = codec->spec; 1956 struct hda_pcm *info = spec->pcm_rec; 1957 1958 codec->num_pcms = 1; 1959 codec->pcm_info = info; 1960 1961 info->name = spec->stream_name_analog; 1962 info->stream[SNDRV_PCM_STREAM_PLAYBACK] = 1963 *(spec->stream_analog_playback); 1964 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = 1965 spec->multiout.dac_nids[0]; 1966 info->stream[SNDRV_PCM_STREAM_CAPTURE] = *(spec->stream_analog_capture); 1967 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adc_nids[0];
The point is only spec->adc_nids[0] is used in via_build_pcms
1953 static int via_build_ pcms(struct hda_codec *codec) name_analog; SNDRV_PCM_ STREAM_ PLAYBACK] = >stream_ analog_ playback) ; SNDRV_PCM_ STREAM_ PLAYBACK] .nid = dac_nids[ 0]; SNDRV_PCM_ STREAM_ CAPTURE] = *(spec- >stream_ analog_ capture) ; SNDRV_PCM_ STREAM_ CAPTURE] .nid = spec->adc_nids[0];
1954 {
1955 struct via_spec *spec = codec->spec;
1956 struct hda_pcm *info = spec->pcm_rec;
1957
1958 codec->num_pcms = 1;
1959 codec->pcm_info = info;
1960
1961 info->name = spec->stream_
1962 info->stream[
1963 *(spec-
1964 info->stream[
1965 spec->multiout.
1966 info->stream[
1967 info->stream[