public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Sven Eckelmann <sven@narfation.org>
Cc: alsa-devel@alsa-project.org,
	Simon Wunderlich <sw@simonwunderlich.de>,
	Jaroslav Kysela <perex@perex.cz>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ALSA: hda/realtek - Enable the ALC292 dock fixup on the Thinkpad T460s
Date: Mon, 11 Apr 2016 16:48:24 +0200	[thread overview]
Message-ID: <s5hlh4k2ocn.wl-tiwai@suse.de> (raw)
In-Reply-To: <1639739.FqnMfNtjzc@bentobox>

On Mon, 11 Apr 2016 16:43:38 +0200,
Sven Eckelmann wrote:
> 
> On Monday 11 April 2016 16:05:49 Takashi Iwai wrote:
> > On Mon, 11 Apr 2016 11:21:38 +0200,
> > Sven Eckelmann wrote:
> > > 
> > > The Lenovo Thinkpad T460s requires the alc_fixup_tpt440_dock as well in
> > > order to get working sound output on the docking stations headphone jack.
> > > 
> > > Patch tested on a Thinkpad T460s (20F9CT01WW) using a ThinkPad Ultradock
> > > on kernel 4.4.6.
> > > 
> > > Signed-off-by: Sven Eckelmann <sven@narfation.org>
> > > Tested-by: Simon Wunderlich <sw@simonwunderlich.de>
> > > ---
> > > v2:
> > >  - rebased on current master
> > > 
> > >  sound/pci/hda/patch_realtek.c | 18 +++++++++++++++++-
> > >  1 file changed, 17 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> > > index fefe83f..36d371c 100644
> > > --- a/sound/pci/hda/patch_realtek.c
> > > +++ b/sound/pci/hda/patch_realtek.c
> > > @@ -4760,6 +4760,8 @@ enum {
> > >  	ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
> > >  	ALC280_FIXUP_HP_HEADSET_MIC,
> > >  	ALC221_FIXUP_HP_FRONT_MIC,
> > > +	ALC292_FIXUP_TPT460_DOCK,
> > > +	ALC292_FIXUP_TPT460,
> > >  };
> > >  
> > >  static const struct hda_fixup alc269_fixups[] = {
> > > @@ -5409,6 +5411,18 @@ static const struct hda_fixup alc269_fixups[] = {
> > >  			{ }
> > >  		},
> > >  	},
> > > +	[ALC292_FIXUP_TPT460_DOCK] = {
> > > +		.type = HDA_FIXUP_FUNC,
> > > +		.v.func = alc_fixup_tpt440_dock,
> > > +		.chained = true,
> > > +		.chain_id = ALC269_FIXUP_THINKPAD_ACPI
> > > +	},
> > > +	[ALC292_FIXUP_TPT460] = {
> > > +		.type = HDA_FIXUP_FUNC,
> > > +		.v.func = alc_fixup_disable_aamix,
> > > +		.chained = true,
> > > +		.chain_id = ALC292_FIXUP_TPT460_DOCK,
> > > +	},
> > 
> > We don't need to add two entries but just one, something like below.
> > 
> > 	[ALC292_FIXUP_TPT460] = {
> > 		.type = HDA_FIXUP_FUNC,
> > 		.v.func = alc_fixup_tpt440_dock,
> > 		.chained = true,
> > 		.chain_id = ALC293_FIXUP_LENOVO_SPK_NOISE,
> > 	},
> 
> Just wanted to keep it consistent with the TPT440 entries.

Oh, you don't have to inherit the messes from there :)
I'd rather like to keep the list shorter.


Takashi

      reply	other threads:[~2016-04-11 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11  9:21 [PATCH v2] ALSA: hda/realtek - Enable the ALC292 dock fixup on the Thinkpad T460s Sven Eckelmann
2016-04-11 14:05 ` Takashi Iwai
2016-04-11 14:43   ` Sven Eckelmann
2016-04-11 14:48     ` Takashi Iwai [this message]

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=s5hlh4k2ocn.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=sven@narfation.org \
    --cc=sw@simonwunderlich.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