All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Kailang <kailang@realtek.com>
Cc: " (alsa-devel@alsa-project.org)" <alsa-devel@alsa-project.org>
Subject: Re: Support Dell headset mode for ALC288
Date: Wed, 08 Apr 2015 09:40:07 +0200	[thread overview]
Message-ID: <s5hsicb6pbc.wl-tiwai@suse.de> (raw)
In-Reply-To: <6FAB7C47BCF00940BB0999A99BE3547A17A0D1AB@RTITMBSV09.realtek.com.tw>

At Wed, 8 Apr 2015 07:31:33 +0000,
Kailang wrote:
> 
> 
> Hi Takashi,
> 
> Attach patch is support alc288 headset mode.

This also supports ALC286, too, right?


Takashi

> 
> BR,
> Kailang
> 
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai@suse.de] 
> > Sent: Saturday, April 04, 2015 8:43 PM
> > To: Kailang
> > Cc: (alsa-devel@alsa-project.org)
> > Subject: Re: Support Dell headset mode for ALC288
> > 
> > At Tue, 31 Mar 2015 08:01:57 +0000,
> > Kailang wrote:
> > > 
> > > 
> > > Hi Takashi,
> > >   
> > >  Dell has new platform with ALC288.
> > >  Attach patch is support headset mode for ALC288.
> > 
> > > @@ -3828,6 +3894,11 @@ static void 
> > alc_determine_headset_type(struct hda_codec *codec)
> > >   conteol) */
> > >  		{}
> > >  	};
> > > +	static struct coef_fw coef0286[] = {
> > > +		//UPDATE_COEF(0x4f, 0xfcc0, 0x5400), /* Combo 
> > Jack auto detect */
> > > +		UPDATE_COEF(0x4f, 0xfcc0, 0xd400),
> > 
> > Why is this commented out and what's the next line does instead?
> > And it's 0286?  Not 0288?
> > 
> > > @@ -3949,8 +4027,15 @@ static void 
> > alc_update_headset_jack_cb(struct hda_codec *codec,
> > >  				       struct hda_jack_callback 
> > *jack)  {
> > >  	struct alc_spec *spec = codec->spec;
> > > +	int present;
> > >  	spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN;
> > >  	snd_hda_gen_hp_automute(codec, jack);
> > > +	present = spec->gen.hp_jack_present ? 0x40 : 0;
> > > +	if (codec->bus->pci->subsystem_vendor == 0x1028 &&
> > > +				codec->core.vendor_id == 0x10ec0288)
> > > +		/* Headset Mic enable and disable, ony for Dell Dino */
> > > +		snd_hda_codec_write(codec, 0x01, 0, 
> > AC_VERB_SET_GPIO_DATA,
> > > +					present);
> > 
> > This is too ugly to put in the common function.
> > For Dell, prepare its own callback function and use it 
> > instead.  Or, put a new hook there to call additionally.  
> > This avoids the PCI ID check in each place.
> > 
> > So, better to split to a few patches.  One for adding ALC286 
> > (or 288?) support generically.  And another for adding 
> > Dell-specific things.
> > 
> > 
> > thanks,
> > 
> > Takashi
> > 
> > ------Please consider the environment before printing this e-mail.
> > 
> [2 0000-alc288-headset-mode.patch <application/octet-stream (base64)>]
> 

  parent reply	other threads:[~2015-04-08  7:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6FAB7C47BCF00940BB0999A99BE3547A17A0C909@RTITMBSV09.realtek.com.tw>
2015-04-04 12:42 ` Support Dell headset mode for ALC288 Takashi Iwai
2015-04-07  7:08   ` Kailang
     [not found]   ` <6FAB7C47BCF00940BB0999A99BE3547A17A0D1AB@RTITMBSV09.realtek.com.tw>
2015-04-08  7:40     ` Takashi Iwai [this message]
2015-04-08  8:08       ` Kailang
2015-04-08  9:40         ` Takashi Iwai
2015-04-20 20:12           ` Mario Limonciello
2015-04-21  5:53             ` Takashi Iwai
     [not found]       ` <6FAB7C47BCF00940BB0999A99BE3547A17A0D1E8@RTITMBSV09.realtek.com.tw>
2015-04-08  9:41         ` 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=s5hsicb6pbc.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=kailang@realtek.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.