From: Hui Wang <hui.wang@canonical.com>
To: David Henningsson <david.henningsson@canonical.com>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org
Subject: Re: [PATCH 5/5] ALSA: hda - add an instance to use snd_hda_pick_pin_fixup
Date: Tue, 27 May 2014 08:31:26 +0800 [thread overview]
Message-ID: <5383DCDE.7070900@canonical.com> (raw)
In-Reply-To: <538313FC.7070100@canonical.com>
On 05/26/2014 06:14 PM, David Henningsson wrote:
>
>
> On 2014-05-26 10:22, Hui Wang wrote:
>> Just two members in the alc269_pin_fixup_tbl[] can cover more than
>> 10 Dell laptop models.
>
> Shouldn't then 10 lines be removed from alc269_fixup_tbl? Right now
> only two lines are removed.
I mean the 10 new Dell laptops which have not been in the Linux kernel yet.
Please see a new bug #1321179, there are 7 laptops in this bug, In the past, we need to add 7 lines to fix them, but now all of them can be fixed by this patch.
Removing the existing lines is the next step plan.
>
>>
>> Signed-off-by: Hui Wang <hui.wang@canonical.com>
>> ---
>> sound/pci/hda/patch_realtek.c | 47
>> +++++++++++++++++++++++++++++++++++++++++--
>> 1 file changed, 45 insertions(+), 2 deletions(-)
>>
>> diff --git a/sound/pci/hda/patch_realtek.c
>> b/sound/pci/hda/patch_realtek.c
>> index c0b16de..992949c 100644
>> --- a/sound/pci/hda/patch_realtek.c
>> +++ b/sound/pci/hda/patch_realtek.c
>> @@ -4725,8 +4725,6 @@ static const struct snd_pci_quirk
>> alc269_fixup_tbl[] = {
>> SND_PCI_QUIRK(0x1028, 0x061f, "Dell",
>> ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
>> SND_PCI_QUIRK(0x1028, 0x0629, "Dell",
>> ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
>> SND_PCI_QUIRK(0x1028, 0x062c, "Dell",
>> ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
>> - SND_PCI_QUIRK(0x1028, 0x062e, "Dell",
>> ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
>> - SND_PCI_QUIRK(0x1028, 0x0632, "Dell",
>> ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
>> SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439",
>> ALC290_FIXUP_MONO_SPEAKERS_HSJACK),
>> SND_PCI_QUIRK(0x1028, 0x063e, "Dell",
>> ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
>> SND_PCI_QUIRK(0x1028, 0x063f, "Dell",
>> ALC255_FIXUP_DELL1_MIC_NO_PRESENCE),
>> @@ -4924,6 +4922,50 @@ static const struct hda_model_fixup
>> alc269_fixup_models[] = {
>> {}
>> };
>>
>> +static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
>> + {
>> + .codec = 0x10ec0293,
>> + .subvendor = 0x1028,
>> +#ifdef CONFIG_SND_DEBUG_VERBOSE
>> + .name = "Dell",
>> +#endif
>> + .pins = (const struct hda_pintbl[]) {
>> + {0x12, 0x40000000},
>> + {0x13, 0x90a60140},
>> + {0x14, 0x90170110},
>> + {0x15, 0x0221401f},
>> + {0x16, 0x21014020},
>> + {0x18, 0x411111f0},
>> + {0x19, 0x21a19030},
>> + {0x1a, 0x411111f0},
>> + {0x1b, 0x411111f0},
>> + {0x1d, 0x40700001},
>> + {0x1e, 0x411111f0},
>> + },
>> + .value = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
>> + },
>> + {
>> + .codec = 0x10ec0255,
>> + .subvendor = 0x1028,
>> +#ifdef CONFIG_SND_DEBUG_VERBOSE
>> + .name = "Dell",
>> +#endif
>> + .pins = (const struct hda_pintbl[]) {
>> + {0x12, 0x90a60140},
>> + {0x14, 0x90170110},
>> + {0x17, 0x40000000},
>> + {0x18, 0x411111f0},
>> + {0x19, 0x411111f0},
>> + {0x1a, 0x411111f0},
>> + {0x1b, 0x411111f0},
>> + {0x1d, 0x40700001},
>> + {0x1e, 0x411111f0},
>> + {0x21, 0x02211020},
>> + },
>> + .value = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
>> + },
>> + {}
>> +};
>>
>> static void alc269_fill_coef(struct hda_codec *codec)
>> {
>> @@ -4985,6 +5027,7 @@ static int patch_alc269(struct hda_codec *codec)
>>
>> snd_hda_pick_fixup(codec, alc269_fixup_models,
>> alc269_fixup_tbl, alc269_fixups);
>> + snd_hda_pick_pin_fixup(codec, alc269_pin_fixup_tbl, alc269_fixups);
>> snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE);
>>
>> alc_auto_parse_customize_define(codec);
>>
>
next prev parent reply other threads:[~2014-05-27 0:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 8:22 [PATCH 1/5] ALSA: hda - Add fixup_forced flag Hui Wang
2014-05-26 8:22 ` [PATCH 2/5] ALSA: hda - Add a new quirk match based on default pin configuration Hui Wang
2014-05-26 8:22 ` [PATCH 3/5] ALSA: hda - get subvendor from codec rather than pci_dev Hui Wang
2014-05-26 8:22 ` [PATCH 4/5] ALSA: hda - drop def association and sequence from pinconf comparing Hui Wang
2014-05-26 10:11 ` David Henningsson
2014-05-27 2:25 ` Alex Hung
2014-05-27 4:41 ` David Henningsson
2014-05-27 6:40 ` Hui Wang
2014-05-27 6:47 ` David Henningsson
2014-05-27 6:53 ` Takashi Iwai
2014-05-27 6:55 ` Hui Wang
2014-05-27 9:24 ` Hui Wang
2014-05-26 8:22 ` [PATCH 5/5] ALSA: hda - add an instance to use snd_hda_pick_pin_fixup Hui Wang
2014-05-26 10:14 ` David Henningsson
2014-05-27 0:31 ` Hui Wang [this message]
2014-05-26 9:10 ` [PATCH 1/5] ALSA: hda - Add fixup_forced flag 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=5383DCDE.7070900@canonical.com \
--to=hui.wang@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=david.henningsson@canonical.com \
--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