All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: aplay - How to use device 3 of card 0 ?
@ 2005-03-07 12:04 Raymond
  2005-03-07 19:50 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Raymond @ 2005-03-07 12:04 UTC (permalink / raw)
  To: alsa-devel

 >> What is the correct syntax for "aplay" to use device 3 of card 0 ?

 >AFAIK, it should be
 >aplay -d hw:0,3 file.wav



# aplay --verbose -d hw:0,3 piano.wav
Playing WAVE 'piano.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
Plug PCM: Hardware PCM card 0 'au8830' device 0 subdevice 0

Its setup is:
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 1
rate         : 44100
exact rate   : 44100 (44100/1)
msbits       : 16
buffer_size  : 22528
period_size  : 2048
period_time  : 46439
tick_time    : 10000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 2048
xfer_align   : 2048
start_threshold  : 22528
stop_threshold   : 22528
silence_threshold: 0
silence_size : 0
boundary     : 1476395008



# aplay --verbose -d hw:0,1 piano.wav
Playing WAVE 'piano.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
Plug PCM: Hardware PCM card 0 'au8830' device 0 subdevice 0

Its setup is:
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 1
rate         : 44100
exact rate   : 44100 (44100/1)
msbits       : 16
buffer_size  : 22528
period_size  : 2048
period_time  : 46439
tick_time    : 10000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 2048
xfer_align   : 2048
start_threshold  : 22528
stop_threshold   : 22528
silence_threshold: 0
silence_size : 0
boundary     : 1476395008



Is this a bug of "aplay" or au88x0 driver ?




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: aplay - How to use device 3 of card 0 ?
  2005-03-07 12:04 aplay - How to use device 3 of card 0 ? Raymond
@ 2005-03-07 19:50 ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2005-03-07 19:50 UTC (permalink / raw)
  To: Raymond; +Cc: alsa-devel

At Mon, 07 Mar 2005 20:04:06 +0800,
Raymond wrote:
> 
>  >> What is the correct syntax for "aplay" to use device 3 of card 0 ?
> 
>  >AFAIK, it should be
>  >aplay -d hw:0,3 file.wav
> 
> 
> 
> # aplay --verbose -d hw:0,3 piano.wav
> Playing WAVE 'piano.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
> Plug PCM: Hardware PCM card 0 'au8830' device 0 subdevice 0
  ^^^^^^^^^
It's already wrong.  Instead of hw:0,3, plug layer is used.

Do you have any definition in ~/.asoundrc or /etc/asound.state?
Is /usr/share/alsa/alsa.conf is properly updated from the latest
alsa-lib, too?


Takashi


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: aplay - How to use device 3 of card 0 ?
@ 2005-03-08 11:58 Raymond
  0 siblings, 0 replies; 3+ messages in thread
From: Raymond @ 2005-03-08 11:58 UTC (permalink / raw)
  To: alsa-devel

 >> # aplay --verbose -d hw:0,3 piano.wav
 >> Playing WAVE 'piano.wav' : Signed 16 bit Little Endian, Rate 44100 
Hz, Mono
 >> Plug PCM: Hardware PCM card 0 'au8830' device 0 subdevice 0
   ^^^^^^^^^
 > It's already wrong.  Instead of hw:0,3, plug layer is used.

 > Do you have any definition in ~/.asoundrc or /etc/asound.state?
 > Is /usr/share/alsa/alsa.conf is properly updated from the latest
 > alsa-lib, too?

http://sourceforge.net/mailarchive/forum.php?thread_id=6750837&forum_id=33141

latest CVS version cannot compile on kernel 2.4

#./cvscompile --with-cards=au8830 --with-sequencer=yes
...
make  -C mpu401 modules
make[2]: Entering directory `/root/alsa/cvs/alsa-driver/drivers/mpu401'
gcc -D__KERNEL__ -DMODULE=1 -I/root/alsa/cvs/alsa-driver/include
-I/lib/modules/2.4.22-1.2199.nptl/build/include -O2
-mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall
-Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc
-iwithprefix include   -DEXPORT_SYMTAB -c mpu401_uart.c
In file included from mpu401_uart.c:1:
../../alsa-kernel/drivers/mpu401/mpu401_uart.c: In function
`snd_mpu401_uart_input_trigger':
../../alsa-kernel/drivers/mpu401/mpu401_uart.c:313: warning: implicit
declaration of function `spin_trylock_irqsave'
In file included from mpu401_uart.c:1:
../../alsa-kernel/drivers/mpu401/mpu401_uart.c:298: warning: `flags'
might be used uninitialized in this function
rm -f snd-mpu401-uart.o
ld  -r -o snd-mpu401-uart.o mpu401_uart.o
make[2]: Leaving directory `/root/alsa/cvs/alsa-driver/drivers/mpu401'
...

#make install
..
/sbin/depmod -a 2.4.22-1.2199.nptl
depmod: *** Unresolved symbols in
/lib/modules/2.4.22-1.2199.nptl/kernel/sound/drivers/mpu401/snd-mpu401-uart.o
...

#/etc/init.d/alsasound start
Starting sound driver: snd-au8830
/lib/modules/2.4.22-1.2199.nptl/kernel/sound/drivers/mpu401/snd-mpu401-uart.o: 

unresolved symbol spin_trylock_irqsave
/lib/modules/2.4.22-1.2199.nptl/kernel/sound/drivers/mpu401/snd-mpu401-uart.o: 

insmod
/lib/modules/2.4.22-1.2199.nptl/kernel/sound/drivers/mpu401/snd-mpu401-uart.o 

failed
/lib/modules/2.4.22-1.2199.nptl/kernel/sound/drivers/mpu401/snd-mpu401-uart.o: 

insmod snd-au8830 failed
done






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-08 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-07 12:04 aplay - How to use device 3 of card 0 ? Raymond
2005-03-07 19:50 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2005-03-08 11:58 Raymond

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.