Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Update patch for codecs alias name for Dell
@ 2013-11-27 10:01 Kailang
  2013-11-27 10:51 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Kailang @ 2013-11-27 10:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Hi Takashi,

Dell assigned more codecs for alias name.
I update in attach patch.

Thanks.
Kailang

[-- Attachment #2: 0000-add-codecs-alias-name-for-Dell.patch --]
[-- Type: application/octet-stream, Size: 2376 bytes --]

>From 520b8cebfd20cda4976ed24fe18bb8bb6bed1809 Mon Sep 17 00:00:00 2001
From: Kailang Yang <kailang@realtek.com>
Date: Wed, 27 Nov 2013 17:41:32 +0800
Subject: [PATCH] ALSA: hda/realtek - Add codecs alias name for Dell

Dell assigned alias name for more codecs.
ALC3220 ALC3221 ALC3223 ALC3226 ALC3234 ALC3661.

Signed-off-by: Kailang Yang <kailang@realtek.com>

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c4ad9d1..3f4a6e6 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4393,20 +4393,36 @@ static int patch_alc269(struct hda_codec *codec)
 
 	case 0x10ec0280:
 	case 0x10ec0290:
+		if (codec->bus->pci->subsystem_vendor == 0x1028)
+			err = alc_codec_rename(codec, "ALC3220");
 		spec->codec_variant = ALC269_TYPE_ALC280;
+		if (err < 0)
+			goto error;
 		break;
 	case 0x10ec0282:
+		if (codec->bus->pci->subsystem_vendor == 0x1028)
+			err = alc_codec_rename(codec, "ALC3221");
 		spec->codec_variant = ALC269_TYPE_ALC282;
+		if (err < 0)
+			goto error;
 		break;
 	case 0x10ec0233:
 	case 0x10ec0283:
+		if (codec->bus->pci->subsystem_vendor == 0x1028)
+			err = alc_codec_rename(codec, "ALC3223");
 		spec->codec_variant = ALC269_TYPE_ALC283;
 		spec->shutup = alc283_shutup;
 		spec->init_hook = alc283_init;
+		if (err < 0)
+			goto error;
 		break;
 	case 0x10ec0284:
 	case 0x10ec0292:
+		if (codec->bus->pci->subsystem_vendor == 0x1028)
+			err = alc_codec_rename(codec, "ALC3226");
 		spec->codec_variant = ALC269_TYPE_ALC284;
+		if (err < 0)
+			goto error;
 		break;
 	case 0x10ec0285:
 	case 0x10ec0293:
@@ -4416,7 +4432,11 @@ static int patch_alc269(struct hda_codec *codec)
 		spec->codec_variant = ALC269_TYPE_ALC286;
 		break;
 	case 0x10ec0255:
+		if (codec->bus->pci->subsystem_vendor == 0x1028)
+			err = alc_codec_rename(codec, "ALC3234");
 		spec->codec_variant = ALC269_TYPE_ALC255;
+		if (err < 0)
+			goto error;
 		break;
 	}
 
@@ -5105,6 +5125,13 @@ static int patch_alc662(struct hda_codec *codec)
 			goto error;
 	}
 
+	if (codec->bus->pci->subsystem_vendor == 0x1028 &&
+			codec->vendor_id == 0x10ec0668) {
+		err = alc_codec_rename(codec, "ALC3661");
+		if (err < 0)
+			goto error;
+	}
+
 	/* automatic parse from the BIOS config */
 	err = alc662_parse_auto_config(codec);
 	if (err < 0)

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-05  7:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 10:01 Update patch for codecs alias name for Dell Kailang
2013-11-27 10:51 ` Takashi Iwai
2013-11-28  7:30   ` Kailang
2013-11-28 10:56     ` Takashi Iwai
2014-02-02  0:20       ` Chris M
2014-02-18 21:31         ` Chris M
2014-02-21 14:54           ` Takashi Iwai
2014-03-05  7:16             ` Chris M

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox