[PATCH 3/5] ASoC: Intel: add machine driver for SOF+ES8336

Mauro Carvalho Chehab mchehab at kernel.org
Sun Nov 21 20:00:35 CET 2021


Hi,

Em Mon,  4 Oct 2021 16:35:10 -0500
Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com> escreveu:

> Add machine driver to support APL/GLK/TGL platforms.
> The TGL platform supports DMIC, APL and GLK do not.

I just bought a Comet Lake notebook with ES8336, but I'm having a hard
time to make audio work on it.

some info about the system from dmidecode:

    BIOS Information
	Vendor: HUAWEI
	Version: 1.35
	Release Date: 06/23/2021
    System Information
        Manufacturer: HUAWEI
        Product Name: BOHB-WAX9
        Version: M1110
    Base Board Information
        Manufacturer: HUAWEI
        Product Name: BOHB-WAX9-PCB-B2
        Version: M1110

Some relevant data from DSDT:

	 * Original Table Header:
	 *     Signature        "DSDT"
	 *     Length           0x00033D35 (212277)
	 *     Revision         0x02
	 *     Checksum         0x38
	 *     OEM ID           "HUAWEI"
	 *     OEM Table ID     "CML-ULT"
	 *     OEM Revision     0x00000002 (2)
	 *     Compiler ID      "    "
	 *     Compiler Version 0x01000013 (16777235)

        Device (ESSX)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Name (_HID, "ESSX8336")  // _HID: Hardware ID
            Name (_CID, "ESSX8336")  // _CID: Compatible ID
            Name (_DDN, "ES8336")  // _DDN: DOS Device Name
            Name (_UID, One)  // _UID: Unique ID
            Name (SBUF, ResourceTemplate ()
            {
                I2cSerialBusV2 (0x0010, ControllerInitiated, 0x00061A80,
                    AddressingMode7Bit, "\\_SB.PCI0.I2C1",
                    0x00, ResourceConsumer, , Exclusive,
                    )
                GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
                    "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
                    )
                    {   // Pin list
                        0x0000
                    }
                GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
                    "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
                    )
                    {   // Pin list
                        0x0000
                    }
                GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x0000,
                    "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
                    )
                    {   // Pin list
                        0x0000
                    }
            })


lpci output:

    00:1f.3 Multimedia audio controller [0401]: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
	Subsystem: QUANTA Computer Inc Device [152d:125d]
	Flags: bus master, fast devsel, latency 32, IRQ 149
	Memory at b121c000 (64-bit, non-prefetchable) [size=16K]
	Memory at b1000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: [50] Power Management version 3
	Capabilities: [80] Vendor Specific Information: Len=14 <?>
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Kernel driver in use: sof-audio-pci-intel-cnl
	Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_cnl

So far I was unable to make speaker/mic to work on it on none of the
tree modes (SOF, SST, legacy). With SST, nothing is recognized.
With legacy mode, only HDMI works. With SOF, it says sound is disabled.

On SOF mode, sof-essx8336 doesn't load (it loads instead snd_soc_es8316).
While I never played with SOF, I suspect that it is because there's 
no entry for ES8336 at soc-acpi-intel-cml-match.c nor there are any 
firmwares for CML available at upstream sof-bin tree.

Also, it currently complains about different firmware ABIs:

[    9.547277] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 1:9:0-fa857
[    9.547313] sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:19:0 Kernel ABI 3:18:0
[    9.547316] sof-audio-pci-intel-cnl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    9.577525] sof-audio-pci-intel-cnl 0000:00:1f.3: Topology: ABI 3:19:0 Kernel ABI 3:18:0
[    9.577536] sof-audio-pci-intel-cnl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    9.617573] input: sof-hda-dsp HDMI/DP,pcm=1 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input14
[    9.622472] input: sof-hda-dsp HDMI/DP,pcm=2 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input15
[    9.623151] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16

Any tips to make it start producing some sound?

More details at:
	https://alsa-project.org/db/?f=29b323d31ab516c5683356f5af56a2a631085bf9

PS.: Tests were done against next-20211118.

Thanks!
Mauro


More information about the Alsa-devel mailing list