LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   no sound in squeeze/ lenny chroot (http://www.linuxquestions.org/questions/debian-26/no-sound-in-squeeze-lenny-chroot-820185/)

donnied 07-16-2010 10:05 AM

no sound in squeeze/ lenny chroot
 
I recently reinstalled Debian. Previously I had sound working in schroot without a problem. I simply added the user to the audio group ran alsaconf and it worked.
Alsaconf has been removed from squeeze so I tried from Lenny. Alsaconf installs but does not find the sound card in the schroot. In deed it seems to be looking for amd64 modules (those of the host system).

lsmod from chroot:
Code:

snd                    46446  11 snd_via82xx,snd_ac97_codec,snd_pcm,snd_mpu401_uart,snd_rawmidi,snd_timer,snd_seq_device
lsmod from host:
Code:

snd                    46446  11 snd_via82xx,snd_ac97_codec,snd_pcm,snd_mpu401_uart,snd_rawmidi,snd_timer,snd_seq_device
This is the error message when trying to play a sound in the chroot:
Code:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
Couldn't open audio device!
  reason: [Couldn't open timidity.cfg].

Oh, and oddly enough:
Code:

# ls /dev/*audio*
/dev/audio  /dev/audio0  /dev/audio1  /dev/audio2  /dev/audio3

when I directly use:
Code:

#chroot /chroot/squeeze-32/
I have sound.

When I comment out the line with directory (changing type to 'plain') in /etc/schroot/schroot.conf sound works.
Code:

[squeeze-32]
description=Debian squeeze (stable) 32-bit
priority=4
groups=audio,video
users=nadya,fuchs
aliases=stable,default
personality=linux32
directory=/chroot/squeeze-32
#type=directory
#run-setup-scripts=true
#run-exec-scripts=true


frenchn00b 07-28-2010 02:18 AM

what give you the output of :
Code:

aplay -L
cat /etc/modprobe.d/sound.conf

alsamixer is now much using /etc/modprobe.d/sound.conf if troubles.
the question is whether all moduesl are loaded

you need schrooting, well?

cool tip:
Quote:

adduser uesrname audio


All times are GMT -5. The time now is 05:46 PM.