[alsa-devel] No audio on headphones on HP X2 210 (Baytrail Atom - RT5640)

Freaky freaky2000 at gmail.com
Wed Apr 4 10:39:32 CEST 2018


Hi there,

we're running Fedora 27 on a HP X2 210. Grabbed the UCM config files for it
from the GIT repo of plbossart (
https://github.com/plbossart/UCM/tree/master/bytcr-rt5640) blacklisted the
snd_hdmi_lpe_audio and sound now works via the onboard speakers.

Current kernel is 4.15.13.

Audio via the headphones does not work. Been looking at the source code,
but most of the abbreviations are mumbo jumbo to me :). Doesn't look like
there are any for the headphones in 4.15.13.

Did find this patch:
https://webcache.googleusercontent.com/search?q=cache:FlvUx7XgbH4J:https://github.com/jwrdegoede/linux-sunxi/commit/+&cd=3&hl=en&ct=clnk&gl=nl

Which seems to enable a quirk for headphone detection. Doesn't seem to be
in 4.15.14 source. Do we require that patch? Not sure what this line does:

#define BYT_RT5640_JACK_PIN(quirk) ((quirk) & GENMASK(15, 13))

Would I need to flip bits 15 and 13? What would the parameter be? The file
is called bytcr_rt5640.c, but for the 5645 (Cherrytrail atoms) the kernel
parameter is called snd_soc_rt5645.quirk, is it called snd_soc_rt5640.quirk
here? Doubt it since there are quirks defined in sound/soc/codecs/rt5645.c
whereas I don't see any (4.15.14 sources) in sound/soc/codecs/rt5640.c.

Any advise would be most welcome :).

Thanks in advance.

Kind regards,


More information about the Alsa-devel mailing list