LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   making alsa work in busybox (https://www.linuxquestions.org/questions/linux-software-2/making-alsa-work-in-busybox-734634/)

tomnab 06-21-2009 06:24 PM

making alsa work in busybox
 
Hi, I'd like to use Alsa tools in a busybox context
I think i have chosen the correct kernel options

dmesg lines are correct :

intel8x0_measure_ac97_clock: measured 52812 usecs
intel8x0: clocking to 40013
ALSA device list:
#0: Intel ICH6 with STAC9750,51 at irq 11

proc filesystem is correct :

cat /proc/asound/devices :

2: : timer
3: : sequencer
4: [ 0- 4]: digital audio playback
5: [ 0- 3]: digital audio capture
6: [ 0- 2]: digital audio capture
7: [ 0- 1]: digital audio capture
8: [ 0- 0]: digital audio playback
9: [ 0- 0]: digital audio capture
10: [ 0] : control

cat /proc/asound/cards :

0 [ICH6 ]: ICH4 - Intel ICH6
Intel ICH6 with STAC9750,51 at irq 11


ls /proc/asound/card0 :

codec97#0
id
intel8x0
oss_mixer
pcm0c
pcm0p
pcm1c
pcm2c
pcm3c
pcm4p

But I don't know what to give in the asound.conf file
I tried the following :

pcm.!default {
type hw
card 0
device 4
}

ctl.!default {
type hw
card 0
device 4
}

Then when i try to use amixer contents, i get :
amixer: Control default open error : Invalid argument

And when i try aplay pop.wav :
aplay:main:608: audio open error: No such file or directory

when i use cat hello.au > /dev/audio, it spends some time like it would play the soundtrack, but i do not hear anything...

Is there any way to be talk directly to the sound system by redirections witout amixer ? How can i be sure the sound is unmuted ?

It must be simple, but it has been 3 days without sleep that I started ;-(

Thank you for any idea...

tomnab

veerain 07-03-2009 01:54 AM

Use alsamixer part of alsa-utils package to change mixer levels as well as to unmute the card.


All times are GMT -5. The time now is 04:43 AM.