Created attachment 256623 [details] dmesg The log fills up with lots of the following messages: [ 28.632832] Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port Attaching full dmesg.
Created attachment 256625 [details] alsa-info.txt
I added Intel guys to CC. Perhaps, they'll have an insight what's wrong there.
There is nothing wrong in the kernel driver side, judging from what I can see. It's the standard message appearing when you don't set up the audio routing. You need to set up routing properly by adjusting each mixer element. It's usually done via UCM profile invoked by PulseAudio. That kernel message should be rate-limited and more informative...
Ok, that's some good news. The problem is, pulseaudio won't start. Thus I was assuming something/wrong on the kernel side. liveuser@wintab8:~ > pulseaudio --start E: [pulseaudio] main.c: Daemon startup failed. liveuser@wintab8:~ > pulseaudio --log-level=debug --start D: [pulseaudio] conf-parser.c: Parsing configuration file '/etc/pulse/client.conf' D: [pulseaudio] conf-parser.c: /etc/pulse/client.conf.d does not exist, ignoring. I: [pulseaudio] main.c: Daemon startup successful. liveuser@wintab8:~ > ps fax |grep pulseaudio 4441 pts/0 S+ 0:00 | \_ grep pulseaudio
I guess you have LPE HDMI audio driver (snd-hdmi-lpe-audio)? Try to blacklist this module. The currently released PulseAudio is known to be broken for this driver, and it gets killed by rtkit when RT-priority is set. You can disable the rt priority in PA config, instead, too.
Yes, snd-hdmi-lpe-audio is involved. By removing the module pulseaudio does start properly, though I can't hear sound when playing a file with aplay for example. I checked the volume level and made sure it's not muted in alsamixer. Another question, is it ok to avoid snd-hdmi-lpe-audio if I don't need audio over HDMI?
As mentioned, you need to set up the routing, and I guess there is no corresponding UCM profile provided for your hardware. We have no standard UCM in alsa-lib repo yet. Try to install the UCM profile for bytcr-rt5640 from Pierre's git repo: https://github.com/plbossart/UCM Copy it under /usr/share/alsa/ucm.
Awesome, that did it! Thanks a lot Takashi!!!