Started messing with it again, saving logs and such, and then I tried the newest Lakka messing around again and surprise audio started working. But there’s a catch, it doesn’t work on a fresh power-on or reboot, it only works when I quit and restart Lakka, either from the GUI or using the command line.
Sorry that these logs are across versions, but since quitting/restarting fixes audio I can no longer get a log of it not working, I don’t know if/where Lakka stores logs by default.
Log when audio doesn’t work:
http://pastebin.com/Y8z12hDk
Here’s a snippet of that:
RetroArch [INFO] :: Found joypad driver: "udev".
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/confmisc.c:768:(parse_card) cannot find card 'HDMI'
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/conf.c:4771:(snd_config_expand) Evaluate error: No such device
ALSA lib /home/kivutar/Lakka/build.Lakka-Generic.x86_64-devel/alsa-lib-1.1.0/src/pcm/pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM hdmi:CARD=HDMI,DEV=0
RetroArch [ERROR] :: ALSA: Failed to initialize...
RetroArch [ERROR] :: Failed to initialize audio driver. Will continue without audio.
Log when audio works:
http://pastebin.com/AbJupeFy
Audio device list from aplay:
Lakka:~ # aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
HDA NVidia, ALC1200 Analog
Default Audio Device
sysdefault:CARD=NVidia
HDA NVidia, ALC1200 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Front speakers
surround21:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
I can run speaker-test (while Lakka is running or not) and get the test noises:
Lakka:~ # speaker-test -Dhdmi:CARD=NVidia,DEV=0 -c 2
speaker-test 1.1.0
Playback device is hdmi:CARD=NVidia,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 524288
Period size range from 32 to 262144
Using max buffer size 524288
Periods = 4
was set period_size = 131072
was set buffer_size = 524288
0 - Front Left
1 - Front Right
Time per period = 5.467491
0 - Front Left
1 - Front Right
^CTime per period = 3.535923
Sorry I know this is getting a bit messy and confusing now. It might be interesting to solve this problem, but in reality if doing a simple quit/restart from the GUI continues to work that’s not a big hassle.