 |
|
 |
|
Next: Processing of firmware-nonfree_0.17_i386.changes
|
| Author |
Message |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
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 |
|
 |  |
|
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
|
|
|
|
 |
|
|