linux icon indicating copy to clipboard operation
linux copied to clipboard

essx8336 not detected at all?

Open Usulyre opened this issue 2 years ago • 43 comments

Hi, I have windows 10 os and audio is working I have essx8336 sound device.

I have defaults in bios settings.

I'm trying to get audio working in any linux distro, tried ubuntu, fedora, arch, nothing works.

My problem is that the essx8336 card is not detected at all even after kernel updates, etc.

Do I have to change something in bios to get it to be detected in linux?

I can provide info, let me know what is necessary thanks in advance.

Usulyre avatar Nov 14 '22 17:11 Usulyre

Start with this and https://github.com/thesofproject/linux/wiki/ES8336-support and https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#es8336-support

plbossart avatar Nov 14 '22 18:11 plbossart

Yes I have looked over those two links already. I didn't really try the 'quirk' parameter yet though although in ubuntu i followed this guide:

https://forum.ubuntu.org.cn/viewtopic.php?f=42&t=493254

Is it not being detected because I don't know the 'quirk' value?

How exactly do I find the correct 'quirk' value?

Usulyre avatar Nov 14 '22 18:11 Usulyre

well, if you look at the links but don't follow the suggestions, and use a reference to a webpage in Chinese I am not sure how I can help.

plbossart avatar Nov 14 '22 19:11 plbossart

Hi, I used google translate

sudo apt install --install-recommends linux-oem-22.04a

git clone https://github.com/yangxiaohua2009/custom-kernel

cd custom-kernel

cp ./tplg/* /lib/firmware/intel/sof-tplg/

cp sof-jsl.ri /lib/firmware/intel/sof/

cp -r sof-essx8336 /usr/share/alsa/ucm2

cd /lib/firmware/intel/sof-tplg

cp sof-jsl-es8336-ssp1.tplg sof-jsl-es8336.tplg

gedit /etc/modprobe.d/alsa-base.conf

and add a line

options snd_soc_sof_es8336 quirk=0x01

Is it not being detected because I don't know the 'quirk' value?

How exactly do I find the correct 'quirk' value?

Usulyre avatar Nov 14 '22 19:11 Usulyre

in general we don't provide any guidance for custom kernels here. If you file an issue against the SOF driver, you need to first follow the links and install whatever is recommended for 5.19 or 6.0.

If you want to ask @yangxiaohua2009 for support on his custom kernel that's a different topic and different support.

Pick one.

plbossart avatar Nov 14 '22 19:11 plbossart

Hi, all I'm saying is that I tried that. I followed the links as well.

I also did the the "setup sof on a linux machine" Sound audio card was not detected at all. So I only see the 'quirk' parameter as an option. Again I would like to ask:

Is it not being detected because I don't know the 'quirk' value?

How exactly do I find the correct 'quirk' value?

Usulyre avatar Nov 14 '22 19:11 Usulyre

if you followed the links, then you must have tried with 6.0+patches, enabled dynamic debug and attached the logs. I don't even know what the 'quirk' value might be until we see the results. I don't even know what platform this is - you provided zero information.

plbossart avatar Nov 14 '22 19:11 plbossart

Just finished installing the kernel on xubuntu. What log do i provide? How to install sof-logger? Also I am unclear about dynamic debug as well.

Usulyre avatar Nov 15 '22 03:11 Usulyre

alsa-info.txt

Usulyre avatar Nov 15 '22 03:11 Usulyre

Just copy this file sof-dyndbg.conf.txt as /etc/modprobe.d/sof-dyndbg.conf

Also make sure that you have all ES8336 options selected, e.g.

CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH=m CONFIG_SND_SOC_ES8316=m CONFIG_SND_SOC_ES8326=m

plbossart avatar Nov 15 '22 15:11 plbossart

and attach the dmesg log

plbossart avatar Nov 15 '22 15:11 plbossart

Ok, i downloaded the sof-dyndbg.conf.txt and copied the contents into /etc/modprobe.d/sof-dyndbg.conf file.

Where do i put:

CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH=m CONFIG_SND_SOC_ES8316=m CONFIG_SND_SOC_ES8326=m

Usulyre avatar Nov 15 '22 16:11 Usulyre

just add it to your config file and re-run 'make olddefconfig' and check it's still there. alternatively use 'make menuconfig' and select them manually.

plbossart avatar Nov 15 '22 16:11 plbossart

Where is the config file located? Is it in the /work/sof/linux folder created in the beginning?

Usulyre avatar Nov 15 '22 16:11 Usulyre

sorry, I will have to point you to the online doc at this point: https://thesofproject.github.io/latest/getting_started/setup_linux/install_locally.html

plbossart avatar Nov 15 '22 16:11 plbossart

added to config file in my /work/sof/linux folder. Ran 'make olddefconfig' and still there.

Dmesg from var/log

dmesg.txt

Usulyre avatar Nov 15 '22 17:11 Usulyre

it's likely that you are still having configuration issues @Usulyre. Unfortunately I don't have time to help further.

plbossart avatar Nov 15 '22 18:11 plbossart

@Usulyre The config files lie in /work/sof/linux/arch/x86/configs You shound see may files end in defconfig there. Copy the es_6_1_defconfig file to the folder and just run make es_6_1_defconfig and compile again. This makes sure that you have CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH=m in your config file. es_6_1_defconfig.zip

yangxiaohua2009 avatar Nov 16 '22 01:11 yangxiaohua2009

Hi, @yangxiaohua2009

I copied the file to that folder and ran make es_6_1_defconfig and recompiled. I still have no audio/sound and essx8336 doesn't show up as a device either.

What can I do next?

Usulyre avatar Nov 16 '22 07:11 Usulyre

copy the sof-dyndbg.conf.txt to /etc/modprobe.d/sof-dyndbg.conf and give us your dmesg. This config file is not the defconfig file. You need to copy it to /etc/modprobe.d/ so that we can get enough information from your dmesg

yangxiaohua2009 avatar Nov 16 '22 08:11 yangxiaohua2009

After copying, do i recompile it then give the dmesg?

Usulyre avatar Nov 16 '22 08:11 Usulyre

I wonder if you have installed the kernel. After compiling the kernel, you need to install it by sudo make install and sudo make modules_install

yangxiaohua2009 avatar Nov 16 '22 08:11 yangxiaohua2009

Yes, I did that step. Do I recompile before sending the dmesg again?

Usulyre avatar Nov 16 '22 15:11 Usulyre

@Usulyre copying sof-dyndbg.conf doesn't need recompiling kernel. copy it to /etc/modprobe.d/sof-dyndbg.conf and reboot once

fredoh9 avatar Nov 16 '22 19:11 fredoh9

Ok, well here is dmesg dmesg.txt

Usulyre avatar Nov 16 '22 22:11 Usulyre

Sorry updated dmesg here dmesg.txt

Usulyre avatar Nov 16 '22 23:11 Usulyre

@Usulyre sorry, no luck here. You have a plain vanilla ApolloLake device (PCI ID 0x5a98), you should see the SOF driver probe on this device and it doesn't. I guess you still have configuration issues.

plbossart avatar Nov 17 '22 00:11 plbossart

I'm really not sure what I am doing wrong for the configuration.

Usulyre avatar Nov 17 '22 01:11 Usulyre

@Usulyre Please provide the config file name 'config-6.1.0-rc1-sof+' in your /boot/ folder to prove that your configuration is correct

yangxiaohua2009 avatar Nov 17 '22 01:11 yangxiaohua2009