On 4/5/06, Voytek Eymont <[EMAIL PROTECTED]> wrote: > I've inserted an Ensoniq PCI sound crad in a RHEL3, on power up, the > 'altered hardware' picked it up as Ensqniq ES1370 > > how can I test if I have sound support from command line ? > (and, to tell me if I plugged speakers in correct jack...) >
I've never really grasped completely how sound works on linux, but I know that if you run "aplay -l" you'll get a list of the cards that alsa knows about. eg. [EMAIL PROTECTED]:~$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: UA25 [UA-25], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 You can use aplay to play a sound via tha command line: [EMAIL PROTECTED]:~$ aplay /usr/share/sounds/ekiga/busytone.wav Playing WAVE '/usr/share/sounds/ekiga/busytone.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono If you hear something, then I think you're sorted. If not, you may need to unmute/turn up the sound device, try "alsamixer" and unmute things (my card doesn't do the software mixer thing so I can't tell you exactly which thing to unmute/increase volume). If you have mulitple cards, you may need to use the "-D" switch for aplay which will select the specific card. On my system I can use: [EMAIL PROTECTED]:~$ aplay -D cards.pcm.default /usr/share/sounds/ekiga/busytone.wav Playing WAVE '/usr/share/sounds/ekiga/busytone.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono To find out the "pcm"s on your system, run "aplay -L". And .... this is where I run out of steam re. alsa, try the different pcm's listed and see how you go, other's on the list might be able to give you other pointers (you might want to check the alsa web site to make sure your card is supported etc). On my distro <NAME CENSORED IN THE INTERESTS OF SLUG HARMONY> all this stuff gets setup automatically, I'm not sure whether this is a standard thing for alsa on all distros or whether you'll need to set up an ".asoundrc" with the appropriate information for the new card on your system. Cheers.....Steve -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
