Nofan Tasi thanks, I think I know now what's going wrong.
Could you please stop kodi and then run aplay -L and post the output?
With kodi stopped also please confirm if this works fine:
pactl load-module module-alsa-sink device=sysdefault:CARD=PCH
so long,
Hias
HiassofT
Good news!
After stopping kodi I can load the pulseaudio module.
And, when starting kodi again, audio does works in flatpak Chromium.
In fact: if I put line
pactl load-module module-alsa-sink device=sysdefault:CARD=PCH
in .config/autostart.sh then all is fine.
Moreover if I then enable Librespot, Librespot works as well ... however:
If I then run Chromium, youtube cannot play (I suppose an audio issue) and suggests to restart device.
In short:
The line in autostart.sh is a valid workaround BUT switching between flatpak Chromium and Librespot does not continue well.
I think I can live with this situation. I start LibreELEC with Librespot disabled and I can run Chromium with audio. And : when I need Librespot I enable it and restart LibreELEC (or maybe stop and start Kodi) and do not run Chromium.
Thanks for all your help and suggestions. Have a nice day!
Also: I will be more than happy to test possible fixes.
fwiw: I actually should not need a browser but from time to time an add-on (e.g. Netflix and VRT-Nu) does not work good and then having a fallback to play in a browser on a sufficiently powerful machine is a nice luxury.
here is requested output
LibreELEC:~ # systemctl stop kodi.service
LibreELEC:~ # aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
HDA Intel HDMI, iMac
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio Output
default:CARD=PCH
HDA Intel PCH, CS4206 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, CS4206 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, CS4206 Digital
IEC958 (S/PDIF) Digital Audio Output
LibreELEC:~ # pactl load-module module-alsa-sink device=sysdefault:CARD=PCH
14
LibreELEC:~ # pactl list sinks
Sink #1
State: IDLE
Name: alsa_output.sysdefault_CARD_PCH
Description: Built-in Audio
Driver: module-alsa-sink.c
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 14
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.sysdefault_CARD_PCH.monitor
Latency: 337429 usec, configured 341333 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CS4206 Analog"
alsa.id = "CS4206 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x98814000 irq 41"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "8c20"
device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
device.form_factor = "internal"
device.string = "sysdefault:CARD=PCH"
device.buffering.buffer_size = "131072"
device.buffering.fragment_size = "8192"
device.access_mode = "mmap+timer"
device.description = "Built-in Audio"
device.icon_name = "audio-card-pci"
Formats:
pcm
LibreELEC:~ # systemctl start kodi.service
LibreELEC:~ # pactl list sinks
Sink #1
State: SUSPENDED
Name: alsa_output.sysdefault_CARD_PCH
Description: Built-in Audio
Driver: module-alsa-sink.c
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 14
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.sysdefault_CARD_PCH.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CS4206 Analog"
alsa.id = "CS4206 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x98814000 irq 41"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "8c20"
device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
device.form_factor = "internal"
device.string = "sysdefault:CARD=PCH"
device.buffering.buffer_size = "131072"
device.buffering.fragment_size = "8192"
device.access_mode = "mmap+timer"
device.description = "Built-in Audio"
device.icon_name = "audio-card-pci"
Formats:
pcm
Display More