Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Guneshwor Singh <guneshwor.o.singh@intel.com>
Cc: PeiSen Hou <pshou@realtek.com>,
	ALSA ML <alsa-devel@alsa-project.org>,
	kailang@realtek.com, CHLin <doomko@realtek.com>
Subject: Re: [PATCH] ALSA: hda/realtek - Enable jack detection for Intel CFL + ALC700
Date: Tue, 14 Nov 2017 15:31:41 +0100	[thread overview]
Message-ID: <s5h8tf99bjm.wl-tiwai@suse.de> (raw)
In-Reply-To: <20171114030008.858-1-guneshwor.o.singh@intel.com>

On Tue, 14 Nov 2017 04:00:08 +0100,
Guneshwor Singh wrote:
> 
> From: PeiSen Hou <pshou@realtek.com>
> 
> ALC700 has jack detection disabled by default in Intel Coffeelake
> Reference board. To enable it, this fixup is required.
> 
> Signed-off-by: PeiSen Hou <pshou@realtek.com>
> Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
> ---
>  sound/pci/hda/patch_realtek.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index 0ce71111b4e3..61ef08173b1c 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -5264,6 +5264,7 @@ enum {
>  	ALC233_FIXUP_LENOVO_MULTI_CODECS,
>  	ALC294_FIXUP_LENOVO_MIC_LOCATION,
>  	ALC700_FIXUP_INTEL_REFERENCE,
> +	ALC700_FIXUP_INTEL_CFL,
>  };
>  
>  static const struct hda_fixup alc269_fixups[] = {
> @@ -6074,6 +6075,21 @@ static const struct hda_fixup alc269_fixups[] = {
>  			{}
>  		}
>  	},
> +	[ALC700_FIXUP_INTEL_CFL] = {
> +		.type = HDA_FIXUP_VERBS,
> +		.v.verbs = (const struct hda_verb[]) {
> +			/* Enables internal speaker */
> +			{0x20, AC_VERB_SET_COEF_INDEX, 0x45},
> +			{0x20, AC_VERB_SET_PROC_COEF, 0x5289},
> +			{0x20, AC_VERB_SET_COEF_INDEX, 0x4a},
> +			{0x20, AC_VERB_SET_PROC_COEF, 0x201b},

I see only one bit here is different from the previous quirk for Intel
reference board.  Do we really need to keep both quirks separately?
Or maybe this new one is the correct verb in anyway?


thanks,

Takashi

  reply	other threads:[~2017-11-14 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14  3:00 [PATCH] ALSA: hda/realtek - Enable jack detection for Intel CFL + ALC700 Guneshwor Singh
2017-11-14 14:31 ` Takashi Iwai [this message]
2017-11-15  2:58   ` Singh, Guneshwor

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=s5h8tf99bjm.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=doomko@realtek.com \
    --cc=guneshwor.o.singh@intel.com \
    --cc=kailang@realtek.com \
    --cc=pshou@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox