From: Takashi Iwai <tiwai@suse.de>
To: Werner Sembach <wse@tuxedocomputers.com>
Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda/realtek: Add quirk for ASRock NUC Box 1100
Date: Fri, 12 Nov 2021 11:07:20 +0100 [thread overview]
Message-ID: <s5h8rxt3cx3.wl-tiwai@suse.de> (raw)
In-Reply-To: <20211112094711.963474-1-wse@tuxedocomputers.com>
On Fri, 12 Nov 2021 10:47:11 +0100,
Werner Sembach wrote:
>
> This applies a SND_PCI_QUIRK(...) to the ASRock NUC Box 1100 series. This
> fixes the issue of the headphone jack not being detected unless warm
> rebooted from a certain other OS.
>
> When booting a certain other OS some coeff settings are changed that enable
> the audio jack. These settings are preserved on a warm reboot and can be
> easily dumped.
>
> The relevant indexes and values where gathered by naively diff-ing and
> reading a working and a non-working coeff dump.
>
> Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
> Cc: <stable@vger.kernel.org>
Thanks, the change looks almost good but in some small details:
> +static void alc233_fixup_asrock_nuc_box_1100_no_audio_jack(struct hda_codec *codec,
> + const struct hda_fixup *fix,
> + int action)
The function name could be a bit shorter? It might be possible that
the fixup could be re-used by others, too.
> +{
> + /*
> + * The audio jack input and output is not detected on the ASRock NUC Box 1100 series when
> + * cold booting without this fix. Warm rebooting from a certain other OS makes the audio
> + * functional, as COEF settings are preserved in this case. This fix sets these altered
> + * COEF values as the default.
Fitting in 80 columns is still preferred, to align with other code.
> + alc_write_coef_idx(codec, 0x1a, 0x9003);
> + alc_write_coef_idx(codec, 0x1b, 0x0e2b);
> + alc_write_coef_idx(codec, 0x37, 0xfe06);
> + alc_write_coef_idx(codec, 0x38, 0x4981);
> + alc_write_coef_idx(codec, 0x45, 0xd489);
> + alc_write_coef_idx(codec, 0x46, 0x0074);
> + alc_write_coef_idx(codec, 0x49, 0x0149);
Can be put in the coef_fw table and processed via
alc_process_coef_fw() instead?
thanks,
Takashi
next prev parent reply other threads:[~2021-11-12 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 9:47 Werner Sembach
2021-11-12 10:07 ` Takashi Iwai [this message]
2021-11-12 10:56 ` Werner Sembach
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=s5h8rxt3cx3.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=tiwai@suse.com \
--cc=wse@tuxedocomputers.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
all inboxes | Powered by JetHome®