From: Kailang <kailang@realtek.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Update patch for codecs alias name for Dell
Date: Wed, 27 Nov 2013 18:01:03 +0800 [thread overview]
Message-ID: <8837DB3485424EB4ADE016301C6D7DF6@realtek.com.tw> (raw)
[-- 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 --]
next reply other threads:[~2013-11-27 10:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 10:01 Kailang [this message]
2013-11-27 10:51 ` Update patch for codecs alias name for Dell 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8837DB3485424EB4ADE016301C6D7DF6@realtek.com.tw \
--to=kailang@realtek.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox