Fedora Linux Support Community & Resources Center
  #1  
Old 29th May 2007, 07:53 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
How can I set the volumn of soundcard

I can use amixer to set the volumn to each soundcard. But how can I know which soundcard is for record or which one is for play?
Reply With Quote
  #2  
Old 29th May 2007, 09:11 AM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
I suppose, you can set that using kmix...
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #3  
Old 29th May 2007, 09:13 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
But I don't have kmix command in my system.
Reply With Quote
  #4  
Old 29th May 2007, 09:16 AM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
well, I would install it, very nice tool...
as root:
Code:
yum -y install kmix
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #5  
Old 29th May 2007, 09:17 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
But I don't want to install any other tools. Can I use the basic linux command to do that?
Reply With Quote
  #6  
Old 29th May 2007, 09:32 AM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
ok!
then try at the prompt:
Code:
alsamixer -c 0
alsamixer -c 1
0 and 1 is the card number or identification.. that way you must be able to set you cards as you want!
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #7  
Old 29th May 2007, 09:44 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
But this command will show an UI. I want to get a return string by executing a command to identify each device.
Reply With Quote
  #8  
Old 29th May 2007, 03:09 PM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
I never did that before but in your case I would use amixer, e.g.
Code:
amixer -c 1 set PCM 2dB+
amixer -c 2 unmute cap
or something like that...

__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #9  
Old 30th May 2007, 02:05 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
What does 2dB+ mean?
But how can I know PCM is volume soundcard?
Reply With Quote
  #10  
Old 30th May 2007, 08:33 AM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
sorry, but I said, I never did it that way, so I would recommend to read the manual for amixer.
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #11  
Old 31st May 2007, 12:17 AM
pompeiisneaks Offline
Registered User
 
Join Date: Aug 2004
Posts: 35
You should specify which version of Fedora you're using, on mine, Fedora Core 6, I have a tool called:

system-config-soundcard

that allows you to see any and all soundcards installed. It also is available from the Fedora start menu under:

System -> Administration -> Soundcard detection.

you can also use the terminal application to run the program

alsamixer

and it should remember the volume settings. You need to know which one is which though, but you could test and see, if you have two cards, as someone mentioned you need to use

alsamixer -c 1

or

alsamixer -c 0

for each card. The UI tool should help you sort this out though.

~Phil
Reply With Quote
  #12  
Old 31st May 2007, 01:46 AM
youhaodeyi Offline
Registered User
 
Join Date: May 2007
Posts: 217
I use Fedora 3, 6.2.9.
Must I test and see each volume setting to know each setting function? I am writing a program to control the volume, so I need to know this by running a command which can be run in the program without any human interfere.

And alsamixer is also UI command. It is for human to read, not for a program to know.
Reply With Quote
Reply

Tags
set, soundcard, volumn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot adjust sound volumn in FC6! wu_qso EOL (End Of Life) Versions 1 10th April 2007 10:52 AM
Volumn Control wont volumn down the sound qbeexx Using Fedora 0 8th February 2006 02:17 AM
Sound Volumn gui nolonger working cwynn Hardware & Laptops 1 9th August 2005 01:21 AM
Need soundcard help Chrus Hardware & Laptops 11 11th February 2005 07:55 AM


Current GMT-time: 02:26 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat