ALSA: hda/realtek: Add quirk for IPASON SmartBook S1 (ALC256, SSID 0x2782:0x0206)
PATCH 1/1 ALSA: hda/realtek: Add quirk for IPASON SmartBook S1 (ALC256, SSID 0x2782:0x0206)
Hi,
The internal speaker on the IPASON SmartBook S1 (an Emdoor ODM laptop) is completely silent under Linux. Bluetooth audio works, and the same machine's speaker works fine under Windows 11 / Windows PE with the vendor Realtek driver, so the hardware and amplifier are all good.
Root cause (found):
-------------------
The BIOS reports the real internal speaker pin, NID 0x1b, with Pin Default 0x411111f0 (DefAssociation = 0xf, i.e. "unconnected"). ALSA's pin parser therefore drops that node at pin-config time: no mixer control is ever created and the pin is never driven, no matter how 0x14 is configured. Enabling 0x1b produces sound immediately.
The existing model=alc256-honor-mrb-xxx-m1020-audio makes the speaker work because it is an HDA_FIXUP_PINS that also rewrites 0x1b to 0x90170110, but it additionally rewrites 0x19 and 0x1a with Honor- specific values that add a bogus "Dock Mic" device that does not exist on this hardware. A minimal two-pin override is preferable.
Hardware:
- Codec: Realtek ALC256 (0x10ec0256), SSID 0x2782:0x0206
- Controller: Intel Tiger Lake-LP SST 8086:a0c8
- BIOS init pin configs:
0x12 0x90a60130 0x13 0x40000000 0x14 0x90170110 0x18 0x411111f0 0x19 0x02a19040 0x1a 0x411111f0 0x1b 0x411111f0 0x1d 0x4067b945 0x1e 0x411111f0 0x21 0x02214020
Proposed fix:
-------------
I do not have a kernel git tree at hand to produce a proper unified diff; the two hunks below are the exact entries to add. Please let me know if you need a formal patch.
SND_PCI_QUIRK(0x2782, 0x0206, "IPASON SmartBook S1", ALC256_FIXUP_IPASON_SMARTBOOK_S1),
[ALC256_FIXUP_IPASON_SMARTBOOK_S1] = {
.type = HDA_FIXUP_PINS,
.v.pins = (const struct hda_pintbl[]) {
{ 0x14, 0x90170111 },
{ 0x1b, 0x90170110 }, /* the real internal speaker */ { }
},
},
Verified on kernel 7.2.0-1-MANJARO (also reproduced on 6.18.45-1-MANJARO), in both the SOF and legacy HDA driver paths.
alsa-info output:
https://alsa-project.org/db/?f=4c555d942f5cef14cac55e34b2236238ae909af3
Happy to test any patch and provide further hda-verb dumps on request.
Quoted 51 lines · 周建宇
Hi,
The internal speaker on the IPASON SmartBook S1 (an Emdoor ODM laptop) is completely silent under Linux. Bluetooth audio works, and the same machine's speaker works fine under Windows 11 / Windows PE with the vendor Realtek driver, so the hardware and amplifier are all good.
Root cause (found):
-------------------
The BIOS reports the real internal speaker pin, NID0x1b, with Pin Default0x411111f0(DefAssociation =0xf, i.e. "unconnected"). ALSA's pin parser therefore drops that node at pin-config time: no mixer control is ever created and the pin is never driven, no matter how0x14is configured. Enabling0x1bproduces sound immediately.The existing model=alc256-honor-mrb-xxx-m1020-audio makes the speaker work because it is an
HDA_FIXUP_PINSthat also rewrites0x1bto0x90170110, but it additionally rewrites0x19and0x1awith Honor- specific values that add a bogus "Dock Mic" device that does not exist on this hardware. A minimal two-pin override is preferable.Hardware:
- Codec: Realtek ALC256 (0x10ec0256), SSID 0x2782:0x0206
- Controller: Intel Tiger Lake-LP SST 8086:a0c8
- BIOS init pin configs:
0x120x90a601300x130x400000000x140x901701100x180x411111f00x190x02a190400x1a0x411111f00x1b0x411111f00x1d0x4067b9450x1e0x411111f00x210x02214020Proposed fix:
-------------
I do not have a kernel git tree at hand to produce a proper unified diff; the two hunks below are the exact entries to add. Please let me know if you need a formal patch.
SND_PCI_QUIRK(0x2782, 0x0206, "IPASON SmartBook S1", ALC256_FIXUP_IPASON_SMARTBOOK_S1),[
ALC256_FIXUP_IPASON_SMARTBOOK_S1] = {
.type =HDA_FIXUP_PINS,
.v.pins = (const struct hda_pintbl[]) {
{0x14,0x90170111},
{0x1b,0x90170110}, /* the real internal speaker */ { }
},
},Verified on kernel 7.2.0-1-MANJARO (also reproduced on 6.18.45-1-MANJARO), in both the SOF and legacy HDA driver paths.
Quoted 6 lines
alsa-info output:
https://alsa-project.org/db/?f=4c555d942f5cef14cac55e34b2236238ae909af3Happy to test any patch and provide further hda-verb dumps on request.
Signed-off-by 周建宇 <[email protected]>
Could you send a proper patch for upstreaming?
thanks,
Takashi