I'm running ALSA 1.0.4 on an embedded ARM machine running a broken down
version of Debian.
My sound device is a generic USB stick with one headphone jack and one mic
jack.
I'm only using it for sound playback.
The sound device has no hardware volume control (<=7% volume is no sound >7%
is full volume) so I'm attempting to add a softvol plug-in to control the
volume.
Here is my asound.conf

pcm.!default {
type plug
slave.pcm "softvol"
slave.channels 2
}

pcm.softvol {
type softvol
slave {
pcm "dmixer"
}
control {
name "Master"
card 0
}
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 32768
rate 44100
}

bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 0
}

The sound card does not have a Master control, so I'm using softvol to make
one.
After I run a sound once, Master shows up, but when I use
amixer sget Master
I get
Simple mixer control 'Master',0
 Capabilities: volume
 Playback channels: Front Left - Front Right - Front Center - Rear Left -
Rear Right - Woofer - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
 Limits: 0 - 0
 Mono: 0 [0%]
 Front Left:
 Front Right:
 Front Center:
 Rear Left:
 Rear Right:
 Woofer:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:

This seems to afford me no volume control.  Calls to
amixer set Master 100
or
amixer set Master 50%
all return the result above, and the sound plays at full volume (I'm using
aplay to play sounds).
I assume it has something to do with the limits being 0-0.
Any help is greatly appreciated.
Best,
Tyler
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to