Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Hardware • Sound from applications running within CHROOT

$
0
0
I'm doing something that might seem like a bit of an odd/strange thing to do, but it does (mostly) work.

I'm running graphical programs within a CHROOT setup into a Raspberry Pi OS LITE (debian) image. X-server and ALSA Sound Services, etc. are all working fine outside the CHROOT (device drivers are all loaded, etc), but within the CHROOT, the sound card is not available:

Code:

root@Raspberry-Pi:/# speaker-test -c 2speaker-test 1.2.8Playback device is defaultStream parameters are 48000Hz, S16_LE, 2 channelsUsing 16 octaves of pink noiseALSA lib confmisc.c:855:(parse_card) cannot find card '0'ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directoryALSA lib confmisc.c:422:(snd_func_concat) error evaluating stringsALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directoryALSA lib confmisc.c:1334:(snd_func_refer) error evaluating nameALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directoryALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directoryALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM defaultPlayback open error: -2,No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'

The answer must involve user groups/permission, environment, missing packages, or something else in the system configuration, because /dev, /proc, /sys, and /tmp are all mount --rbind to the main system outside the CHROOT and fully available to the application. If something fundamental has changed since Kernel 4.15 with sound, that could be it too (OS within CHROOT is configured and intended to work with newest kernel).

Any clue what I should try to get the sound operational to programs within the CHROOT?

Statistics: Posted by cparke — 2024-08-21 20:16 — Replies 1 — Views 27



Viewing all articles
Browse latest Browse all 3260

Trending Articles