No sound in linux-chrome package

Hi :) I'm trying to get DRM media (boooo :rude:) working in FreeBSD 14.1. I've installed the linux-chrome package and RL9 dependencies, and the relevant Widevine and CDM stuff. I can play DRM encumbered video in Chrome, but there's no sound, even in non-DRM media (e.g. on YouTube).

Sound works fine in native Firefox, so I think I'm missing something in my Linux compatibilty layer. I see the following error when trying to play sound from Chrome:

Code:
ALSA lib conf.c:4122:(config_file_open) cannot access file /etc/alsa/conf.d/50-oss.conf
ALSA lib conf.c:4042:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_update_r) hooks failed, removing configuration
[35432:35432:1005/124207.655267:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,No such file or directory

I've installed both linux-rl9-alsa-plugins-oss and linux-rl9-alsa-plugins-pulseaudio packages.

The really weird thing is, this works just fine on a different FreeBSD system I'm running (my old ThinkPad X200). So I suspect a simple misconfiguration / PEBKAC issue somewhere ...

Anyone have any advice?
 
1728121853720.pngOK with PulseAudio in Chromium:

Code:
% pkg iinfo ^chromium
chromium-129.0.6668.70
% freebsd-version -kru ; uname -aKU
15.0-CURRENT
15.0-CURRENT
15.0-CURRENT
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n272659-d0af970e3ce4 GENERIC-NODEBUG amd64 1500024 1500024
%



Installing www/linux-chrome will indirectly cause removal of things such as net/citrix_ica, so I can't perform a quick comparison. Sorry.
 
I use ungoogled-chromium with widevine without any sound server and it works perfectly. I use linux-base-c7 as the compatibility layer.
 
Bash:
sudo pkg install pulseaudio alsa-plugins  
sudo pw group mod audio -m ${USER}  
pulseaudio --start  

echo 'pcm.!default {  
    type plug  
    slave.pcm "pulse"  
}  
ctl.!default {  
    type pulse  
}' > ~/.asoundrc  

pkill chrome && chrome &  
aplay /usr/share/sounds/alsa/Front_Center.wav  
ps aux | grep pulseaudio  
dmesg | grep snd  

# If doesn't work, then:

rm -f ~/.asoundrc && sudo rm -rf /etc/alsa/conf.d  
sudo pkg remove chrome pulseaudio alsa-plugins linux-rl9-alsa-plugins-*  

# Not worthy of your time & effort
 
Yup - aplay /usr/local/share/sounds/alsa/Front_Center.wav works as expected. What's interesting is that sound playback doesn't work in Linux Chrome at all; it's not just the DRM stuff. E.g. YouTube, which works fine on the same system in Firefox, doesn't play sound.
 
Back
Top