From: Luca Bruno <lucab@debian.org>
To: alsa-devel@alsa-project.org
Subject: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
Date: Fri, 2 Apr 2010 15:54:02 +0200 [thread overview]
Message-ID: <1270216442-5632-1-git-send-email-lucab@debian.org> (raw)
Vaio E Series laptops need a slightly modified config for their ALC269.
This patch adds a new 'vaio' model, plus initial quirk for them.
It fixes alsa-bugs #4941, #4934 and #4945
Signed-off-by: Luca Bruno <lucab@debian.org>
---
Documentation/sound/alsa/HD-Audio-Models.txt | 1 +
sound/pci/hda/patch_realtek.c | 24 +++++++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt
index 1d38b0d..416f1f5 100644
--- a/Documentation/sound/alsa/HD-Audio-Models.txt
+++ b/Documentation/sound/alsa/HD-Audio-Models.txt
@@ -87,6 +87,7 @@ ALC269
eeepc-p901 ASUS Eeepc P901 S101
fujitsu FSC Amilo
lifebook Fujitsu Lifebook S6420
+ vaio Sony Vaio (E Series)
auto auto-config reading BIOS (default)
ALC662/663/272
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 22b7c94..c2b78a1 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -137,6 +137,7 @@ enum {
ALC269VB_DMIC,
ALC269_FUJITSU,
ALC269_LIFEBOOK,
+ ALC269_VAIO,
ALC269_AUTO,
ALC269_MODEL_LAST /* last tag */
};
@@ -13546,6 +13547,11 @@ static struct hda_verb alc269_quanta_fl1_verbs[] = {
{ }
};
+static struct hda_verb alc269_vaio_verbs[] = {
+ {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD},
+ { }
+};
+
static struct hda_verb alc269_lifebook_verbs[] = {
{0x15, AC_VERB_SET_CONNECT_SEL, 0x01},
{0x1a, AC_VERB_SET_CONNECT_SEL, 0x01},
@@ -14002,6 +14008,7 @@ static const char *alc269_models[ALC269_MODEL_LAST] = {
[ALC269_DMIC] = "laptop-dmic",
[ALC269_FUJITSU] = "fujitsu",
[ALC269_LIFEBOOK] = "lifebook",
+ [ALC269_VAIO] = "vaio",
[ALC269_AUTO] = "auto",
};
@@ -14051,7 +14058,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
ALC269_DMIC),
SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
- SND_PCI_QUIRK(0x104d, 0x9071, "SONY XTB", ALC269_DMIC),
+ SND_PCI_QUIRK(0x104d, 0x9071, "SONY Vaio", ALC269_VAIO),
SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK),
SND_PCI_QUIRK(0x152d, 0x1778, "Quanta ON1", ALC269_DMIC),
SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU),
@@ -14073,6 +14080,21 @@ static struct alc_config_preset alc269_presets[] = {
.channel_mode = alc269_modes,
.input_mux = &alc269_capture_source,
},
+ [ALC269_VAIO] = {
+ .mixers = { alc269_laptop_mixer },
+ .cap_mixer = alc269_laptop_digital_capture_mixer,
+ .init_verbs = { alc269_init_verbs,
+ alc269_vaio_verbs,
+ alc269_laptop_dmic_init_verbs },
+ .num_dacs = ARRAY_SIZE(alc269_dac_nids),
+ .dac_nids = alc269_dac_nids,
+ .hp_nid = 0x03,
+ .num_channel_mode = ARRAY_SIZE(alc269_modes),
+ .channel_mode = alc269_modes,
+ .unsol_event = alc269_laptop_unsol_event,
+ .setup = alc269_laptop_dmic_setup,
+ .init_hook = alc269_laptop_inithook,
+ },
[ALC269_QUANTA_FL1] = {
.mixers = { alc269_quanta_fl1_mixer },
.init_verbs = { alc269_init_verbs, alc269_quanta_fl1_verbs },
--
1.7.0.3
next reply other threads:[~2010-04-02 13:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-02 13:54 Luca Bruno [this message]
2010-04-04 10:32 ` [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series Takashi Iwai
2010-04-04 11:38 ` Luca Bruno
2010-04-05 9:14 ` Takashi Iwai
2010-04-06 10:21 ` Luca Bruno
2010-04-06 10:30 ` Takashi Iwai
2010-04-06 12:47 ` Luca Bruno
2010-04-06 14:30 ` Takashi Iwai
2010-04-10 18:35 ` Luca Bruno
2010-04-12 7:06 ` Takashi Iwai
2010-04-13 5:58 ` Luca Bruno
2010-04-13 7:53 ` Takashi Iwai
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=1270216442-5632-1-git-send-email-lucab@debian.org \
--to=lucab@debian.org \
--cc=alsa-devel@alsa-project.org \
/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;
as well as URLs for NNTP newsgroup(s).