diff options
author | Kailang Yang <kailang@realtek.com.tw> | 2008-05-27 06:14:47 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-05-27 09:56:22 -0400 |
commit | 2f8932863d243a744ccd3dc005490ad9d2eae478 (patch) | |
tree | 613cab714b1914465290b32c2ae5ddeeb621805d /sound | |
parent | 531240ff520406c793a110e1c0f187d931f47d66 (diff) |
[ALSA] hda - show correct codec chip in PCM stream names
Show more exact codec chip name in the PCM stream name strings.
Signed-off-by: Kailang Yang <kailang@realtek.com.tw>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 8174050da15f..5770b9c3efa2 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -6491,14 +6491,20 @@ static int patch_alc882(struct hda_codec *codec) | |||
6491 | if (board_config != ALC882_AUTO) | 6491 | if (board_config != ALC882_AUTO) |
6492 | setup_preset(spec, &alc882_presets[board_config]); | 6492 | setup_preset(spec, &alc882_presets[board_config]); |
6493 | 6493 | ||
6494 | spec->stream_name_analog = "ALC882 Analog"; | 6494 | if (codec->vendor_id == 0x10ec0885) { |
6495 | spec->stream_name_analog = "ALC885 Analog"; | ||
6496 | spec->stream_name_digital = "ALC885 Digital"; | ||
6497 | } else { | ||
6498 | spec->stream_name_analog = "ALC882 Analog"; | ||
6499 | spec->stream_name_digital = "ALC882 Digital"; | ||
6500 | } | ||
6501 | |||
6495 | spec->stream_analog_playback = &alc882_pcm_analog_playback; | 6502 | spec->stream_analog_playback = &alc882_pcm_analog_playback; |
6496 | spec->stream_analog_capture = &alc882_pcm_analog_capture; | 6503 | spec->stream_analog_capture = &alc882_pcm_analog_capture; |
6497 | /* FIXME: setup DAC5 */ | 6504 | /* FIXME: setup DAC5 */ |
6498 | /*spec->stream_analog_alt_playback = &alc880_pcm_analog_alt_playback;*/ | 6505 | /*spec->stream_analog_alt_playback = &alc880_pcm_analog_alt_playback;*/ |
6499 | spec->stream_analog_alt_capture = &alc880_pcm_analog_alt_capture; | 6506 | spec->stream_analog_alt_capture = &alc880_pcm_analog_alt_capture; |
6500 | 6507 | ||
6501 | spec->stream_name_digital = "ALC882 Digital"; | ||
6502 | spec->stream_digital_playback = &alc882_pcm_digital_playback; | 6508 | spec->stream_digital_playback = &alc882_pcm_digital_playback; |
6503 | spec->stream_digital_capture = &alc882_pcm_digital_capture; | 6509 | spec->stream_digital_capture = &alc882_pcm_digital_capture; |
6504 | 6510 | ||
@@ -8177,12 +8183,25 @@ static int patch_alc883(struct hda_codec *codec) | |||
8177 | if (board_config != ALC883_AUTO) | 8183 | if (board_config != ALC883_AUTO) |
8178 | setup_preset(spec, &alc883_presets[board_config]); | 8184 | setup_preset(spec, &alc883_presets[board_config]); |
8179 | 8185 | ||
8180 | spec->stream_name_analog = "ALC883 Analog"; | 8186 | switch (codec->vendor_id) { |
8187 | case 0x10ec0888: | ||
8188 | spec->stream_name_analog = "ALC888 Analog"; | ||
8189 | spec->stream_name_digital = "ALC888 Digital"; | ||
8190 | break; | ||
8191 | case 0x10ec0889: | ||
8192 | spec->stream_name_analog = "ALC889 Analog"; | ||
8193 | spec->stream_name_digital = "ALC889 Digital"; | ||
8194 | break; | ||
8195 | default: | ||
8196 | spec->stream_name_analog = "ALC883 Analog"; | ||
8197 | spec->stream_name_digital = "ALC883 Digital"; | ||
8198 | break; | ||
8199 | } | ||
8200 | |||
8181 | spec->stream_analog_playback = &alc883_pcm_analog_playback; | 8201 | spec->stream_analog_playback = &alc883_pcm_analog_playback; |
8182 | spec->stream_analog_capture = &alc883_pcm_analog_capture; | 8202 | spec->stream_analog_capture = &alc883_pcm_analog_capture; |
8183 | spec->stream_analog_alt_capture = &alc883_pcm_analog_alt_capture; | 8203 | spec->stream_analog_alt_capture = &alc883_pcm_analog_alt_capture; |
8184 | 8204 | ||
8185 | spec->stream_name_digital = "ALC883 Digital"; | ||
8186 | spec->stream_digital_playback = &alc883_pcm_digital_playback; | 8205 | spec->stream_digital_playback = &alc883_pcm_digital_playback; |
8187 | spec->stream_digital_capture = &alc883_pcm_digital_capture; | 8206 | spec->stream_digital_capture = &alc883_pcm_digital_capture; |
8188 | 8207 | ||
@@ -10680,12 +10699,18 @@ static int patch_alc268(struct hda_codec *codec) | |||
10680 | if (board_config != ALC268_AUTO) | 10699 | if (board_config != ALC268_AUTO) |
10681 | setup_preset(spec, &alc268_presets[board_config]); | 10700 | setup_preset(spec, &alc268_presets[board_config]); |
10682 | 10701 | ||
10683 | spec->stream_name_analog = "ALC268 Analog"; | 10702 | if (codec->vendor_id == 0x10ec0267) { |
10703 | spec->stream_name_analog = "ALC267 Analog"; | ||
10704 | spec->stream_name_digital = "ALC267 Digital"; | ||
10705 | } else { | ||
10706 | spec->stream_name_analog = "ALC268 Analog"; | ||
10707 | spec->stream_name_digital = "ALC268 Digital"; | ||
10708 | } | ||
10709 | |||
10684 | spec->stream_analog_playback = &alc268_pcm_analog_playback; | 10710 | spec->stream_analog_playback = &alc268_pcm_analog_playback; |
10685 | spec->stream_analog_capture = &alc268_pcm_analog_capture; | 10711 | spec->stream_analog_capture = &alc268_pcm_analog_capture; |
10686 | spec->stream_analog_alt_capture = &alc268_pcm_analog_alt_capture; | 10712 | spec->stream_analog_alt_capture = &alc268_pcm_analog_alt_capture; |
10687 | 10713 | ||
10688 | spec->stream_name_digital = "ALC268 Digital"; | ||
10689 | spec->stream_digital_playback = &alc268_pcm_digital_playback; | 10714 | spec->stream_digital_playback = &alc268_pcm_digital_playback; |
10690 | 10715 | ||
10691 | if (!query_amp_caps(codec, 0x1d, HDA_INPUT)) | 10716 | if (!query_amp_caps(codec, 0x1d, HDA_INPUT)) |
@@ -13174,11 +13199,17 @@ static int patch_alc861vd(struct hda_codec *codec) | |||
13174 | if (board_config != ALC861VD_AUTO) | 13199 | if (board_config != ALC861VD_AUTO) |
13175 | setup_preset(spec, &alc861vd_presets[board_config]); | 13200 | setup_preset(spec, &alc861vd_presets[board_config]); |
13176 | 13201 | ||
13177 | spec->stream_name_analog = "ALC861VD Analog"; | 13202 | if (codec->vendor_id == 0x10ec0660) { |
13203 | spec->stream_name_analog = "ALC660-VD Analog"; | ||
13204 | spec->stream_name_digital = "ALC660-VD Digital"; | ||
13205 | } else { | ||
13206 | spec->stream_name_analog = "ALC861VD Analog"; | ||
13207 | spec->stream_name_digital = "ALC861VD Digital"; | ||
13208 | } | ||
13209 | |||
13178 | spec->stream_analog_playback = &alc861vd_pcm_analog_playback; | 13210 | spec->stream_analog_playback = &alc861vd_pcm_analog_playback; |
13179 | spec->stream_analog_capture = &alc861vd_pcm_analog_capture; | 13211 | spec->stream_analog_capture = &alc861vd_pcm_analog_capture; |
13180 | 13212 | ||
13181 | spec->stream_name_digital = "ALC861VD Digital"; | ||
13182 | spec->stream_digital_playback = &alc861vd_pcm_digital_playback; | 13213 | spec->stream_digital_playback = &alc861vd_pcm_digital_playback; |
13183 | spec->stream_digital_capture = &alc861vd_pcm_digital_capture; | 13214 | spec->stream_digital_capture = &alc861vd_pcm_digital_capture; |
13184 | 13215 | ||