Skip to contentSkip to conversation

ALSA: hda/realtek: Add quirk for IPASON SmartBook S1 (ALC256, SSID 0x2782:0x0206)

PATCH In review 周建宇 2 participants 2 messages Sep 9 – Sep 14 Sound

lore
Share & tools
lore

周建宇

author
#0 lore raw

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.

#1 lore raw
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, 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.

Quoted 6 lines

alsa-info output:
https://alsa-project.org/db/?f=4c555d942f5cef14cac55e34b2236238ae909af3

Happy to test any patch and provide further hda-verb dumps on request.

Could you send a proper patch for upstreaming?

thanks,

Takashi