From: Benjamin Berg <benjamin@sipsolutions.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: linux-sound@vger.kernel.org, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Subject: Re: [PATCH] ALSA: hda/realtek: Enable speakers on further Samsung Galaxy Book2 Pro
Date: Thu, 27 Mar 2025 11:26:20 +0100 [thread overview]
Message-ID: <a2de7b802e7b544a741ecf56af5c1a546509246e.camel@sipsolutions.net> (raw)
In-Reply-To: <87a5969446.wl-tiwai@suse.de>
On Thu, 2025-03-27 at 11:09 +0100, Takashi Iwai wrote:
> On Thu, 27 Mar 2025 10:55:04 +0100,
> Benjamin Berg wrote:
> >
> > On Thu, 2025-03-27 at 10:05 +0100, Takashi Iwai wrote:
> > > On Wed, 26 Mar 2025 21:19:53 +0100,
> > > Benjamin Berg wrote:
> > > > Note that I didn't really manage to test this directly. Trying to
> > > > do a
> > > > reconfigure resulted in a hang and I didn't figure out how to use
> > > > the
> > > > patch= option with a firmware file.
> > > > However, the machine does work fine when configuring the two
> > > > speakers
> > > > from userspace, so I am confident that this patch is correct.
> > >
> > > FYI, the equivalent can be achieved with model option, too.
> > > e.g. passing model=144d:c870 will apply the same existing quirk as
> > > SSID 144d:c870. If your target is the secondary codec, pass like
> > > "model=,144d:c870" instead.
> >
> > Hmm, it is probably really straight forward, but I didn't grasp the
> > documentation in Documentation/sound/hd-audio/notes.rst on a quick
> > read.
>
> It's mentioned in "Model Option" subsection of that document.
> ```
> A new style for the model option that was introduced since 5.15 kernel
> is to pass the PCI or codec SSID in the form of ``model=XXXX:YYYY``
> where XXXX and YYYY are the sub-vendor and sub-device IDs in hex
> numbers, respectively. This is a kind of aliasing to another device;
> when this form is given, the driver will refer to that SSID as a
> reference to the quirk table. It'd be useful especially when the
> target quirk isn't listed in the model table. For example, passing
> model=103c:8862 will apply the quirk for HP ProBook 445 G8 (which
> isn't found in the model table as of writing) as long as the device is
> handled equivalently by the same driver.
> ```
>
> > I am not sure anymore what I did (and I don't have access to the
> > machine anymore). It might be I tried putting the model= line into a
> > firmware file instead of just passing it on the kernel command line.
>
> > How do I even know whether it is the first or second codec? Is that
> > what the D0 in hwC0D0 is?
>
> I meant the device probe order, so card#0 device#0 must be the very
> first one :)
Right, that make sense, but wasn't obvious to me then.
Unfortunately, it seems that I messed something up and I cannot fully
put it back together now.
I have one photo of the sysfs entries, and the subsystem_id is
0x144dc1ac there. So now I am not entirely certain that this is the
correct ID, because I might have successfully overridden it to an
incorrect value.
Lkely, it is correct, but I do not know where I got the 0xc01d from.
Sorry,
Benjamin
> > > > ---
> > > > sound/pci/hda/patch_realtek.c | 1 +
> > > > 1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> > > > index c735f630ecb5..e4ea5ea5bb27 100644
> > > > --- a/sound/pci/hda/patch_realtek.c
> > > > +++ b/sound/pci/hda/patch_realtek.c
> > > > @@ -10758,6 +10758,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
> > > > SND_PCI_QUIRK(0x144d, 0xca06, "Samsung Galaxy Book3 360 (NP730QFG)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
> > > > SND_PCI_QUIRK(0x144d, 0xc868, "Samsung Galaxy Book2 Pro (NP930XED)", ALC298_FIXUP_SAMSUNG_AMP),
> > > > SND_PCI_QUIRK(0x144d, 0xc870, "Samsung Galaxy Book2 Pro (NP950XED)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
> > > > + SND_PCI_QUIRK(0x144d, 0xc01d, "Samsung Galaxy Book2 Pro (NP950QED)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
> > > > SND_PCI_QUIRK(0x144d, 0xc872, "Samsung Galaxy Book2 Pro (NP950XEE)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
> > > > SND_PCI_QUIRK(0x144d, 0xc886, "Samsung Galaxy Book3 Pro (NP964XFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
> > > > SND_PCI_QUIRK(0x144d, 0xc1ca, "Samsung Galaxy Book3 Pro 360 (NP960QFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
> > >
> > > The table is sorted in PCI SSID order. Could you try to put at the
> > > right position?
> >
> > Sorry, will fix and resend.
>
> Thanks!
>
>
> Takashi
>
next prev parent reply other threads:[~2025-03-27 10:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 20:19 [PATCH] ALSA: hda/realtek: Enable speakers on further Samsung Galaxy Book2 Pro Benjamin Berg
2025-03-27 9:05 ` Takashi Iwai
2025-03-27 9:55 ` Benjamin Berg
2025-03-27 10:09 ` Takashi Iwai
2025-03-27 10:26 ` Benjamin Berg [this message]
2025-03-27 15:58 ` 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=a2de7b802e7b544a741ecf56af5c1a546509246e.camel@sipsolutions.net \
--to=benjamin@sipsolutions.net \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=tiwai@suse.de \
/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