All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Luke D. Jones" <luke@ljones.dev>
Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
	kai.heng.feng@canonical.com, tiwai@suse.com,
	andy.chi@canonical.com
Subject: Re: [PATCH 1/2] sound: realtek: Add pincfg for ASUS G533Z
Date: Fri, 26 Aug 2022 08:08:21 +0200	[thread overview]
Message-ID: <87a67rlep6.wl-tiwai@suse.de> (raw)
In-Reply-To: <20220825220130.331371-1-luke@ljones.dev>

On Fri, 26 Aug 2022 00:01:29 +0200,
Luke D. Jones wrote:
> 
> Fixes up the pincfg for ASUS ROG Strix G15 (G533Z) laptop.
> 
> Signed-off-by: Luke D. Jones <luke@ljones.dev>

Just minor nitpicking:

> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -5828,7 +5828,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
>  		struct alc_spec *spec = codec->spec;
>  		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
>  		alc255_set_default_jack_type(codec);
> -	} 
> +	}
>  	else
>  		alc_fixup_headset_mode(codec, fix, action);
>  }

Please avoid touching unnecessary parts.

> @@ -8363,6 +8364,17 @@ static const struct hda_fixup alc269_fixups[] = {
>  		.type = HDA_FIXUP_FUNC,
>  		.v.func = alc294_fixup_gu502_hp,
>  	},
> +	[ALC285_FIXUP_ASUS_G533Z_PINS] = {
> +		.type = HDA_FIXUP_PINS,
> +		.v.pins = (const struct hda_pintbl[]) {
> +			{ 0x14, 0x90170120 },
> +			{ 0x19, 0x03A11050 }, /* front HP mic */
> +			{ 0x1B, 0x03A11C30 }, /* rear external mic */
> +			{ 0x21, 0x03211420 }, /* front HP out */

We prefer the lower letters for hex numbers.

> +			{ }
> +		},
> +		.chained = false,

This is initialization superfluous, please drop.

Last but not least, the subject prefix should be rather "ALSA:"
instead of "sound:".

The same applied to the second patch.
Could you try to address those and resubmit as v2?


thanks,

Takashi

WARNING: multiple messages have this Message-ID (diff)
From: Takashi Iwai <tiwai@suse.de>
To: "Luke D. Jones" <luke@ljones.dev>
Cc: tiwai@suse.com, kai.heng.feng@canonical.com,
	andy.chi@canonical.com, alsa-devel@alsa-project.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] sound: realtek: Add pincfg for ASUS G533Z
Date: Fri, 26 Aug 2022 08:08:21 +0200	[thread overview]
Message-ID: <87a67rlep6.wl-tiwai@suse.de> (raw)
In-Reply-To: <20220825220130.331371-1-luke@ljones.dev>

On Fri, 26 Aug 2022 00:01:29 +0200,
Luke D. Jones wrote:
> 
> Fixes up the pincfg for ASUS ROG Strix G15 (G533Z) laptop.
> 
> Signed-off-by: Luke D. Jones <luke@ljones.dev>

Just minor nitpicking:

> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -5828,7 +5828,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
>  		struct alc_spec *spec = codec->spec;
>  		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
>  		alc255_set_default_jack_type(codec);
> -	} 
> +	}
>  	else
>  		alc_fixup_headset_mode(codec, fix, action);
>  }

Please avoid touching unnecessary parts.

> @@ -8363,6 +8364,17 @@ static const struct hda_fixup alc269_fixups[] = {
>  		.type = HDA_FIXUP_FUNC,
>  		.v.func = alc294_fixup_gu502_hp,
>  	},
> +	[ALC285_FIXUP_ASUS_G533Z_PINS] = {
> +		.type = HDA_FIXUP_PINS,
> +		.v.pins = (const struct hda_pintbl[]) {
> +			{ 0x14, 0x90170120 },
> +			{ 0x19, 0x03A11050 }, /* front HP mic */
> +			{ 0x1B, 0x03A11C30 }, /* rear external mic */
> +			{ 0x21, 0x03211420 }, /* front HP out */

We prefer the lower letters for hex numbers.

> +			{ }
> +		},
> +		.chained = false,

This is initialization superfluous, please drop.

Last but not least, the subject prefix should be rather "ALSA:"
instead of "sound:".

The same applied to the second patch.
Could you try to address those and resubmit as v2?


thanks,

Takashi

  parent reply	other threads:[~2022-08-26  6:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 22:01 [PATCH 1/2] sound: realtek: Add pincfg for ASUS G533Z Luke D. Jones
2022-08-25 22:01 ` Luke D. Jones
2022-08-25 22:01 ` [PATCH 2/2] sound: realtek: Add pincfg for ASUS G513 Luke D. Jones
2022-08-25 22:01   ` Luke D. Jones
2022-08-26  6:08 ` Takashi Iwai [this message]
2022-08-26  6:08   ` [PATCH 1/2] sound: realtek: Add pincfg for ASUS G533Z 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=87a67rlep6.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andy.chi@canonical.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luke@ljones.dev \
    --cc=tiwai@suse.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.