commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
I have access to a D15... How or what to test? |
|
If you can recompile a kernel, you'll need to use #3107 (plbossart:fix/es8336-codec) then you'll have to use ( |
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
possibly. all the quirks were picked up for linux-stable, but there are not yet in linux-5.15.y, so likely in the next stable release. You will need the codec hack regardless of what linux-stable does, it's not yet upstream. |
|
I tried with...
Rebooted trice, with different firmware files in place. Still no sound. 😢 |
|
thanks for testing @eworm-de. I take from your answer that you did see a card created, started playing/streaming on the ALSA device but did not hear any sound? can you confirm the diagnosis and attach the alsa-info log? @hli25 would you happen to have a set of ALSA mixer values that are needed for this codec? |
|
Uh, I had some borked module parameters around for I do not see a card created (in On shutdown the system panics... I have this in logs (with |
|
@eworm-de the 'digital mics' log wasn't expected. need more info. Can you please add this file |
We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: #3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit ae26c08 upstream. We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: thesofproject/linux#3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211122232254.23362-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
Ha, totally forgot about this... Will try to find some spare time tomorrow (and lend the device). Can you confirm that Linux 5.15.7 should contain all quirks and only patches from #3107 are required on top? |
|
It looks like 5.15.7 is also missing additional patches. You'll need these patches from upstream a164137 ASoC: Intel: add machine driver for SOF+ES8336 and the codec patches from PR #3107 also make sure to add to select CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH=m |
|
That explains why my tests did not succeed. I will have a look. |
|
Cherry-picking the given commits on top of 5.15.7 gives errors... |
See attached dmesg.log. BTW, system now panics on shutdown. Does it help if I prepare a live system and give access to the system? |
|
Ah, thanks for the log. Doesn't look like there are any dmics handled in your system but they are indeed detected in the hardware You should really not have any card created. can you confirm @eworm-de that 'aplay -l' shows nothing. The good thing is that we have a quirk to test options #define SOF_ES8336_SSP_CODEC_MASK (GENMASK(3, 0)) Can you try with the following option in /etc/modprobe.d/alsa-base.conf options snd-soc-sof-es8336 quirk=0x20 (with SSP0 topology) This may work with the headphone, for the speakers there may be additional work needed, on some platforms there's a GPIO. The following may be used instead. options snd-soc-sof-es8336 quirk=0x30 (with SSP0 topology) Make sure you are not using loud files when testing and never ever put a headphone over your ears before a test. Keep in mind that such experiments may blow your ears or your speakers, or both. All standards disclaimers apply. |
|
Actually also provide the acpi table dump as attachment, I should be able to find the right SSP from ACPI stuff 'sudo acpidump > cml-dump.bin' and gzip/attach the result. |
|
Here we go... See cml-dump.bin.gz. |
|
@eworm-de from what I see in the table with the latest version of acpica-tools (20210930), the SSP0 seems to be used. so you'd need to make sure the SSP0 is used in the topology and machine driver. |
|
So, is there any working patches right now? I am willing to test any potentially working solutions, as i have Huawei Matebook D16 2021 and no sound |
|
I bought a Huawei Matebook D14 and didn't know that.. I'm actually living without sound, and waiting for a solution, please give us a patch ! :(( |
|
Also, the name of issue is about Intel-based PCs, but i have an AMD-based Matebook and sound doesn't work AFAIK |
|
@playXE Oh, thanks |
We've added quirks for ESS8336 but missed CML, add quirks for both LP and H versions. BugLink: #3248 Fixes: 9d36cea ("ALSA: intel-dsp-config: add quirk for APL/GLK/TGL devices based on ES8336 codec") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
With the quirk (either 0x20 or 0x30), the speaker started to work on MateBook D15 (Product Name: BOHB-WAX9). The microphone is marked as unavailable. Plugging a headphone also cuts the output. So, it sounds that the topology is not quite right, but at least it is starting to give life signs ;-) PS.: I applied the relevant patches on the top of 5.15.11: https://github.com/mchehab/linux/tree/sound-es8336, and I'm using this topology firmware: Sound logs enclosed. |
|
I can confirm what @mchehab wrote. I have exactly the same device (MateBook D15 Looks like I borked the code when cherry-picking. This time I used his tree (but dropped the Fedora patches and applied to Arch Linux |
Nice to have another test on it. Btw, with this patch: the speaker will work properly without needing to pass a
FYI, I opted to place the Fedora patch there just to warrant that no regressions outside sound would happen. Usually, distro-specific patches are not required, but, as this is a new device, I added it anyway, just in case ;-)
Yeah, it sounds that there's something wrong at the error path... if SSP2 is selected on this device, despite the modprobe errors, it hits an OOPS during device unbind. maybe an use-after-free or something like that. Haven't time to check exactly why it is happening. |
At least for Intel Matebook D15 (2021 version, afaikt), the codec is attached to I2S/SSP 0. Yet, as only the speaker is working (neither internal mic nor headset works), I suspect that something else could be missing at the topology file. How those |
|
Has someone tried linux 5.16 out? On the amd issue someone said the driver will come with the next kernel release. EDIT 2: Linux 5.16 is out. Can someone please check if the problem is fixed? |
|
@mchehab the topologies are generated with a macro, see https://github.com/thesofproject/sof/blob/main/tools/topology/topology1/CMakeLists.txt#L166 It would indeed be best to use information from ACPI instead of starting an endless list of quirks and random topologies For the SSP used and topology, I tried to see if the information from NHLT is usable, please see #3338. if you try it on your device it should also detect SSP0 being used. unfortunately, we have no way of detecting how the GPIOs are configured, or rather I don't know how we might infer which GPIOs are used for what, so there might still be a need for quirks there. |
just did in #3365 but it didn t work on my Gemini Lake Kuu Yobook M now the sof project wants to guess the correct "interface" with #3338 (linux kernel changes that thorvalds have to accept ... maybe I ll try to merge and compile if I feel l have the time and energy ...) PS for myself : |
|
@pierro78 would that kernel work with CML? |
|
@playXE @dattiluca I installed 5.16 kernel (with Ubuntu 22.04) with CML my sound card is not recognized. Alsa info: http://alsa-project.org/db/?f=b47d70cceb570c0ccf77e1f9187e96f8c1e8c427 |
|
@butavicius your card is recognized but the quirk you added is not compatible with the topology file you used [ 4.178290] sof-essx8336 sof-essx8336: Overriding quirk 0x2 => 0x20 that forces DMIC to be enabled, #define SOF_ES8336_TGL_GPIO_QUIRK BIT(4) but then kaboom you don't have dmic support. try quirk=0x0 or 0x10 |
Different topology filenames may be required depending on which SSP is used, and whether or not digital mics are present. This patch adds a tplg_quirk_mask and in the case of the SOF driver adds the relevant configurations. This is a short-term solution to the ES8336 support issues. In a long-term solution, we would need an interface where the machine driver or platform driver have the ability to alter the topology hard-coded low-level hardware support, e.g. by substituting an interface for another, or disabling an interface that is not supported on a given skew. BugLink: thesofproject#3248 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
@plbossart I have tried with 0x0, 0x10, 0x20, 0x21, 0x22, 0x30, 0x31, 0x32 with no luck. After each alsa-base.conf edit i ran sudo alsa force-reload and alsa-info. After each change, it was reflected in alsa-info options snd-soc-sof-es8336 quirk=0x22 options snd-soc-sof-es8336 quirk=0x21 options snd-soc-sof-es8336 quirk=0x20 options snd-soc-sof-es8336 quirk=0x0 options snd-soc-sof-es8336 quirk=0x32 options snd-soc-sof-es8336 quirk=0x31 options snd-soc-sof-es8336 quirk=0x10 options snd-soc-sof-es8336 quirk=0x30 P.S. I really don't know what i'm doing so I can try whatever you need me to, but you'd have to walk me through it, thanks. |
|
@butavicius it's just too difficult to provide support like this, I am working on a better solution with no quirks. stay tuned. |
all quirks for CML support were picked for inclusion in the 5.15 stable kernel.
We still need help to figure out which topology is needed on those Huawei devices.