Re: Support Dell headset mode for ALC891

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 13 Jun 2016 09:24:45 +0200,
Kailang wrote:
> 
>  
> 
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai@xxxxxxx] 
> > Sent: Thursday, June 09, 2016 2:15 PM
> > To: Kailang
> > Cc: (alsa-devel@xxxxxxxxxxxxxxxx)
> > Subject: Re: Support Dell headset mode for ALC891
> > 
> > On Wed, 08 Jun 2016 09:17:12 +0200,
> > Kailang wrote:
> > > 
> > > Hi Takashi,
> > > 
> > > This patch is supported Dell headset mode for ALC891.
> > > It is only support I-phone type headset.
> > > I think this function is only support for DELL.
> > > So, headset mode and platform support is merged.
> > > 
> > > This patch is test passed by Ubuntu team.
> > > 
> > > Many Thanks.
> > (snip)
> > > Date: Tue, 7 Jun 2016 11:31:34 +0800
> > > Subject: [PATCH] ALSA: hda/realtek - ALC891 headset mode for Dell
> > >
> > > New headset mode of ALC891 for Dell.
> > > 
> > > Signed-off-by: Kailang Yang <kailang@xxxxxxxxxxx>
> > 
> > Could you put more comments in the changelog, as what you 
> > gave in the mail?
> > 
>        OK.
> > 
> > > diff --git a/sound/pci/hda/patch_realtek.c 
> > > b/sound/pci/hda/patch_realtek.c index 7960316..9dc641e 100644
> > > --- a/sound/pci/hda/patch_realtek.c
> > > +++ b/sound/pci/hda/patch_realtek.c
> > > @@ -3718,6 +3718,9 @@ static void 
> > alc_headset_mode_unplugged(struct hda_codec *codec)
> > >  	case 0x10ec0295:
> > >  		alc_process_coef_fw(codec, coef0225);
> > >  		break;
> > > +	case 0x10ec0867:
> > > +		alc_update_coefex_idx(codec, 0x57, 0x5, 1<<14, 0);
> > > +		break;
> > >  	}
> > >  	codec_dbg(codec, "Headset jack set to unplugged 
> > mode.\n");  } @@ 
> > > -3805,6 +3808,8 @@ static void 
> > alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin,
> > >  		alc_process_coef_fw(codec, coef0293);
> > >  		snd_hda_set_pin_ctl_cache(codec, mic_pin, PIN_VREF50);
> > >  		break;
> > > +	case 0x10ec0867:
> > > +		alc_update_coefex_idx(codec, 0x57, 0x5, 0, 1<<14);
> > > 	case 0x10ec0662:
> > 
> > No break between 0867 and 0662?
> 
> Yes, no break. ^^
> It is only more one line difference for 0x0867.

Then please put a comment indicating it's a fall-through, e.g.

	case 0x10ec0867:
		alc_update_coefex_idx(codec, 0x57, 0x5, 0, 1<<14);
		/* fallthru */
 	case 0x10ec0662:
		....


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux