Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ALSA: Subdevice

 
   Soft32 Home -> Linux -> Hardware RSS
Next:  Processing of firmware-nonfree_0.17_i386.changes  
Author Message
Manuel Rodriguez

External


Since: Jun 16, 2009
Posts: 4



(Msg. 1) Posted: Tue Jun 16, 2009 12:22 am
Post subject: ALSA: Subdevice
Archived from groups: comp>os>linux>hardware (more info?)

According to "aplay -l" I have 2 Subdevices: #0 and #1. If I play
Sound with "aplay -v test.wav" the Output is:
1. The Software uses Subdevice #0
2. No Sound to my Soundcard.
But if I play Sound with "aplay -v test > /dev/audio" the Output is:
1. The Software uses Subdevice #1
2. Sound is perfect

Can anybody explain this? And how can I play Sound without the "> /dev/
audio" Pipe?
Back to top
Login to vote
Clemens Ladisch

External


Since: Jul 10, 2003
Posts: 25



(Msg. 2) Posted: Tue Jun 16, 2009 5:20 am
Post subject: Re: ALSA: Subdevice [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Manuel Rodriguez wrote:
> According to "aplay -l" I have 2 Subdevices: #0 and #1. If I play
> Sound with "aplay -v test.wav" the Output is:
> 1. The Software uses Subdevice #0
> 2. No Sound to my Soundcard.
> But if I play Sound with "aplay -v test > /dev/audio" the Output is:
> 1. The Software uses Subdevice #1
> 2. Sound is perfect
>
> Can anybody explain this? And how can I play Sound without the "> /dev/
> audio" Pipe?

You are not supposed to use such a pipe with aplay. ">" redirects the
output of a program, but in the case of aplay, the output is the
"playing file ..." message. For the redirection, the shell opens
/dev/audio before aplay is run, so aplay takes the next free device.

To specify the device for aplay, use the -D option with a device name
like "default:x" or "plughw:x,y" to use card x and device y.

I don't why one subdevice works and one doesn't. What sound card are
you using? What are the mixer settings (see the output of
"amixer contents")?


Best regards,
Clemens
Back to top
Login to vote
Manuel Rodriguez

External


Since: Jun 16, 2009
Posts: 4



(Msg. 3) Posted: Wed Jun 17, 2009 2:05 am
Post subject: Re: ALSA: Subdevice [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 16 Jun., 10:52, Clemens Ladisch <clem....RemoveThis@ladisch.de> wrote:
> To specify the device for aplay, use the -D option with a device name
> like "default:x" or "plughw:x,y" to use card x and device y.

I tried "aplay -v -D hw:0,0,1 test.wav" and it worked. I hear the
sound because aplay uses subdevice #1. The other way around "aplay -v -
D hw:0,0,0" doesn't work.
- My sounddriver is "snd_es18xx"
- "aplay -l" lists two subdevices (#0 and #1)
- "arecord -l" list only one subdevice #0
Back to top
Login to vote
Clemens Ladisch

External


Since: Jul 10, 2003
Posts: 25



(Msg. 4) Posted: Wed Jun 17, 2009 7:20 am
Post subject: Re: ALSA: Subdevice [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Manuel Rodriguez wrote:
> I tried "aplay -v -D hw:0,0,1 test.wav" and it worked. I hear the
> sound because aplay uses subdevice #1. The other way around "aplay -v -
> D hw:0,0,0" doesn't work.
> - My sounddriver is "snd_es18xx"

Did you set the volume for both "PCM" controls?


Best regards,
Clemens
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bluetooth headsets recommendation - Hi, I just got a new cell phone at work, with bluetooth. I would like to buy a bluetooth headset to use with the cell....

Is there a tutorial how to ? - Is there a tutorial how to set up Linux server ?Including mirroring? What Linux distribution would you recommend? Thank...

[gentoo-user] Alsa problems - Using Alsa-driver and Ensoni.. - Hi, I'm having trouble getting sound to work with the kernel linux-2.6.12-gentoo-r10. I always have used genkernel,....

[gentoo-user] Alsa error, "ALSA is already compiled into t.. - I get this above error when running emerge -u world for my 2.6.9-gentoo-r13 system. I understood that alsa is part of...

[ALSA PATCH] alsa-git merge request - Linus, please do an update from: http://www.kernel.org/pub/scm/linux/kernel/git/perex/alsa.git (linus branch) The...

[ALSA PATCH] alsa-git merge request - Linus, please do an update from: http://www.kernel.org/pub/scm/linux/kernel/git/perex/alsa.git (linus branch) The...
       Soft32 Home -> Linux -> Hardware All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]