Hi all,
First I wanted to thank all the devs and those helping with the troubleshooting, this setup is exactly what I'm looking for. I was wondering if someone would be willing to help a relative Linux newbie with another sound issue in EmulationStation. I tried some of the fixes mentioned in here, and it seems like I'm running in circles. I have "Keep Audio Device Alive" disabled, and "Play GUI Sounds" is set to "Only when playback stopped". Audio works fine in LibreElec with no asound.conf mods. I have passthrough on and the passthrough device is "ALSA: HDA Intel PCH, CAT CAT-6066 on HDMI" under Audio settings. This is a fresh install, the only changes are the addition of Roms and adding TG16 as a System.
I'm using a NUC5PGYH, the quad core Pentium with built-in eMMC storage. I would assume it's the same as the NUC5PPYH without the storage built-in. When I run aplay -L I get this:
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
Display More
So I tried updating asound.conf to this since he (Ti-Paul) had a very similar NUC to mine:
pcm.!default {
type plug
slave.pcm {
@func getenv
vars [ ALSAPCM ]
# Device name can be found using the command 'aplay -L'
default "hdmi:CARD=HDMI,DEV=0"
}
}
Running speaker-test with this gives me this error:
speaker-test 1.1.2
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /home/trondah/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/alsa-lib-1.1.3/src/conf.c:1852:(snd_config_load1) _toplevel_:7:34:Unexpected char
ALSA lib /home/trondah/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/alsa-lib-1.1.3/src/conf.c:3615:(config_file_open) /storage/.config/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib /home/trondah/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/alsa-lib-1.1.3/src/conf.c:3537:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib /home/trondah/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/alsa-lib-1.1.3/src/conf.c:3986:(snd_config_update_r) hooks failed, removing configuration
Playback open error: -22,Invalid argument
Display More
Also, when asound.conf is saved with default "hdmi:CARD=HDMI,DEV=1", I just seem to get a black screen on a reboot. I have to ssh in and delete the asound.conf file and reboot again, and within seconds I'm back at my library.
I tried another suggestion from BeeGrits post which was to set asound.conf as since he mentioned similar Intel hardware:
[code]
pcm.!default {
type hw
card 0
device 3
}
ctl.!default {
type hw
card 0
device 3
}
Display More
[/code]
This gave me this this running speaker-test:
# speaker-test
speaker-test 1.1.2
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
Display More
Would someone be willing to point me in the right direction? As I mentioned, sound works fine in Kodi just not EmulationStation. I feel like I'm am almost there, and just my lack of Linux knowledge is the problem. It's probably something stupidly simple, I'm just not sure whats next. I really appreciate any help. Sorry for the first post being long, I'd rather give too much info than not enough.