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 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:
So this really isn't a Raspberry OS question so much as a general Linux question.
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
The answer must involve user groups/permission or something in the static configuration, because /dev, /proc, /sys, and /tmp are all mount --rbind to the main system outside the CHROOT. Any clue what I should try to get the sound operational within the CHROOT?
I'm running graphical programs within a CHROOT setup into a Raspberry Pi OS LITE 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 or something in the static configuration, because /dev, /proc, /sys, and /tmp are all mount --rbind to the main system outside the CHROOT. Any clue what I should try to get the sound operational within the CHROOT?
Statistics: Posted by cparke — Wed Aug 21, 2024 7:46 pm — Replies 0 — Views 32