Repository navigation
Add APL/GLK support for ES8336 codec (Chuwi Hi10x support) - #2962
Conversation
|
@plbossart currently doing some 'homework' to prepare for testing. Tried to compile a kernel on manjaro and succeeded (my first kernel compilation on a tablet, nice). Now looking at how to integrate your changes. I have a few question (mostly about making sure that I am not making mistakes, so that my feedback can be useful):
I am also trying to read your patches, to see if I can learn something, but so far I am still in the phase in which clarifications are needed all the time (sorry about that):
|
I never compile on a target device, only install kernel, modules and initrd. see https://thesofproject.github.io/latest/getting_started/setup/setup_ktest_environment.html
probably no. We work with the latest upstream code, so there are dependencies that haven't hit Linus' tree just yet. If you want better support from us, use our tree :-)
that should be fine.
I see one topology, you start from the m4 code to generate the .conf and compile the .tplg one. Only the latter needs to land in /lib/firmware/intel/sof-tplg
there is no issue.
the code from yangxiaohua2009 is incorrect and breaks other platforms. What I added is the only thing needed.
probably because they use blacklists to avoid using snd-hda-intel. this change is required to avoid any blacklists.
The quirk in intel-dsp-config would work for both cases if they are all I2S/I2C codecs.
yes, they use the minimal sof-wm8804.c and modified it. A better solution is needed but one step at a time. |
|
@plbossart thanks for the extended help. I'll check the getting started document. I will probably not be able to test today, due to work duties, but I plan doing it asap. In the meantime, I got a reply from yangxiaohua who I am trying to get in the loop. From his email, they have reached a point where they have a working driver (only still failing headphone detection). He has sent me driver code that may be more recent than the one on his github repo (I'll diff and see asap). The alternate topologies and drivers in his repo are in |
|
@callegar are you saying the exact connectivity is not known? I am not sure I understand why there are alternate topologies, the SSP number is related to the hardware layout, it's not like we have any freedom here. |
|
@plbossart I don't know if I am understanding the matter in the correct way but what I see in the @yangxiaohua2009 repo there is an ssp folder with a readme saying
|
I saw this and can't figure out what it means. the choice of the SSP number is dictated by hardware and PCB layout, it's not like there's a user choice to select a different number. |
|
@plbossart I have managed spending some time on your patches, but obviously I am in big trouble because the tablet has Manjaro on it (I need a rolling distro to have other stuff apart from sound working) and is being used, so I cannot really disrupt the install. At the same time your nice getting started guide assumes a debian/ubuntu target, which is quite reasonable. My first experiment has been to backport your patches to 5.12.9 (the current manjaro kernel) and make a manjaro kernel package with it, by compiling on a faster laptopo. So when I install it on the tablet, the initrd is generated and the system boots. ... and obviously because I was not following your instructions it is totally unclear to me whether the issue is on my side... So when I have some time again I'll make a different experiment. I'll try to make an "ubuntu on a usbpen" system so I can work there without affecting the in-use OS of the tablet and use your kernel and getting started guide. |
fb74ef7 to
eb52aa4
Compare
8d2c8b6 to
7402ca3
Compare
Needed for thesofproject/linux#2962 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Needed for thesofproject/linux#2962 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
9c18e17 to
7b6c184
Compare
5fb6c2e to
a47fbfb
Compare
|
This PR is now ready for review thanks to the work of @hli25 Dependencies: |
kv2019i
left a comment
There was a problem hiding this comment.
A few HDMI implementation notes. See inline.
| (MFD_INTEL_LPSS || COMPILE_TEST)) | ||
| select SND_SOC_ES8316 | ||
| select SND_SOC_DMIC | ||
| select SND_SOC_HDAC_HDMI |
There was a problem hiding this comment.
You can drop this. See SND_SOC_INTEL_EHL_RT5660_MACH for a simple reference for HDMI dependencies.
a47fbfb to
c12a17c
Compare
c12a17c to
36ace9c
Compare
|
@kv2019i can you take a look? You had a change requested. |
5ce72c1 to
fe0d79b
Compare
kv2019i
left a comment
There was a problem hiding this comment.
One minor thing still, otherwise looks good to go.
…8336 codec A number of devices, such as the "Chuwi HI10x" and "UNIQCELL Q15.6", are based on APL/GLK with an I2C/I2S ES8336 codec. Add table to find topology and firmware files. Co-developed-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
…8336 codec These devices are based on an I2C/I2S device, we need to force the use of the SOF driver otherwise the legacy HDaudio driver will be loaded - only HDMI will be supported. Co-developed-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Add machine driver to support APL/GLK/TGL platforms. The TGL platform supports DMIC, APL and GLK do not. Co-developed-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
fe0d79b to
c1be006
Compare
Здравствуйте, имею ноутбук KUU с таким же звуковым устройством и кодеком, как мне это можно установить у себя в Linux системе для теста? |
|
Приветствую, скажите пожалуйста, когда примерно появиться поддержка этого устройства в ядре? |
|
let's merge, this should land in the upstream kernel 5.16 at best (still missing the updated codec parts). |
А как можно с вами объединиться и что для этого нужно проделать? |
|
Привет, нашел установочные файлы для чипа и кодека es8316 - https://disk.yandex.ru/d/VD8W6Yruvx0flQ он похож с нашим чипом может в работе пригодиться. |
Привет, имею UBUNTU 21.04 скажите пожалуйста как эти файлы установить и в какую папку, можно по подробней инструкцию? |
|
has it landed in linux 5.16? |
address #2955 reported by @callegar
This should only force the SOF driver to be loaded and assumes the firmware file is installed in /lib/firmware/intel/sof.
The topology file should be copied, e.g. from https://github.com/yangxiaohua2009/GLK-ES8336 (from @yangxiaohua2009)
@callegar please take this branch for a spin. This will not create a card since it's missing the machine driver but it should setup the SOF part.