Hi alidaf
For controlling my USB DAC I can do it like this. First find the card
number:
Code:
--------------------
tc@piCorePlayer:~$ sudo cat /proc/asound/cards
0 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
1 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-20980000.usb-1.2, full speed
--------------------
The USB card has number "1"
Next I need to find the name of the controls for card "1":
Code:
--------------------
tc@piCorePlayer:~$ amixer -c 1 scontrols
Simple mixer control 'Headphone',0
Simple mixer control 'Mic',0
Simple mixer control 'Auto Gain Control',0
--------------------
So for controlling my USB DAC I can use:
Code:
--------------------
tc@piCorePlayer:~$ sudo amixer -c 1 set 'Headphone',0 100%
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 151 [100%] [-0.06dB] [on]
Front Right: Playback 151 [100%] [-0.06dB] [on]
--------------------
Hope you can get the idea.
Steen
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://sites.google.com/site/picoreplayer/home
*Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer*
------------------------------------------------------------------------
sbp's Profile: http://forums.slimdevices.com/member.php?userid=37237
View this thread: http://forums.slimdevices.com/showthread.php?t=97803
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix