plbossart / UCM

UCM files for Intel platforms
103 stars 48 forks source link

How to figure out right UCM? #7

Open Split7fire opened 7 years ago

Split7fire commented 7 years ago

I have a Chuwi HiBook tablet 2-in-1 with Intel z8300 (cherrytrail). How can I figure out what UCM should I use?

plbossart commented 7 years ago

This is not supported yet, see https://bugzilla.kernel.org/show_bug.cgi?id=189261

Split7fire commented 7 years ago

After disassembling unit, its figured out that it is ALC5651 codec. It is identifies in 4.12 mainline Ubuntu kernel, but no sound. After copying files from this repo, same result - no sound. Any ideas?

plbossart commented 7 years ago

I have only tested rt5651 with an eval board with a headset output. The speaker was never tested, we may need to ask Realtek for help here.

Split7fire commented 7 years ago

Tracing pcb, it seems that intel SOC drives headphones, and ALC5651 - speakers.

plbossart commented 7 years ago

you are probably confused by the jack detection gpio which sometimes is handled by the SOC. the SOC has no analog capabilities and the audio has to go through a codec.

pcounhago commented 7 years ago

Jide (the company behind RemixOS) released the kernel source code for the Chuwi Hi10 Pro tablets. They use the same CPU and audio codec (rt5651).

https://github.com/JideTechnology/remixos-kernel/tree/jide_chuwi_hi10pro_d_r51

Is this of any help in solving audio output for these devices? If there is anything that can be done, I am willing to help, but I have no idea about where to start or what is missing to make things work.

plbossart commented 7 years ago

the UCM files don't currently support speaker output and the codec does not have an integrated amplifier, so there's probably some analog magic. With the schematics it's nearly impossible to figure out how to solve such issues.

pcounhago commented 7 years ago

I have given a brief look at the source code and there are some references to an ALC105 (Google says it is an amplifier). There are also references to enabling and disabling it through gpio pins, but they are commented out.

If I have some spare time I will try to disassemble my device and examine the circuit boards to see what I can discover.

Anyway, thanks for the information.

plbossart commented 7 years ago

can you add a bug on https://bugzilla.kernel.org/ Component: Sound(ALSA) and cc: Pierre Bossart/pierre-louis.bossart@linux.intel.com

if you can attach the results of alsa-info.sh, the dsdt.dsl file and dmesg we can look at the issue.

Split7fire commented 7 years ago

@pcounhago any news?

youling257 commented 7 years ago

many z8300 alc5651 tablet,but only has bytcr-rt5651

GuneetAtwal commented 6 years ago

can you tell me how do we get to know which gpio pin is responsible for the jack detection?