mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-06 11:19:56 +00:00
ALSA: hda - Add ALC1200 support
Add ALC1200 codec support. Almost compatible with ALC888. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a01c30cb77
commit
4442608d4b
@ -8837,8 +8837,13 @@ static int patch_alc883(struct hda_codec *codec)
|
|||||||
|
|
||||||
switch (codec->vendor_id) {
|
switch (codec->vendor_id) {
|
||||||
case 0x10ec0888:
|
case 0x10ec0888:
|
||||||
spec->stream_name_analog = "ALC888 Analog";
|
if (codec->revision_id == 0x100101) {
|
||||||
spec->stream_name_digital = "ALC888 Digital";
|
spec->stream_name_analog = "ALC1200 Analog";
|
||||||
|
spec->stream_name_digital = "ALC1200 Digital";
|
||||||
|
} else {
|
||||||
|
spec->stream_name_analog = "ALC888 Analog";
|
||||||
|
spec->stream_name_digital = "ALC888 Digital";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 0x10ec0889:
|
case 0x10ec0889:
|
||||||
spec->stream_name_analog = "ALC889 Analog";
|
spec->stream_name_analog = "ALC889 Analog";
|
||||||
@ -16359,6 +16364,8 @@ struct hda_codec_preset snd_hda_preset_realtek[] = {
|
|||||||
.patch = patch_alc882 }, /* should be patch_alc883() in future */
|
.patch = patch_alc882 }, /* should be patch_alc883() in future */
|
||||||
{ .id = 0x10ec0885, .name = "ALC885", .patch = patch_alc882 },
|
{ .id = 0x10ec0885, .name = "ALC885", .patch = patch_alc882 },
|
||||||
{ .id = 0x10ec0888, .name = "ALC888", .patch = patch_alc883 },
|
{ .id = 0x10ec0888, .name = "ALC888", .patch = patch_alc883 },
|
||||||
|
{ .id = 0x10ec0888, .rev = 0x100101, .name = "ALC1200",
|
||||||
|
.patch = patch_alc883 },
|
||||||
{ .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc883 },
|
{ .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc883 },
|
||||||
{} /* terminator */
|
{} /* terminator */
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user