All of lore.kernel.org
 help / color / mirror / Atom feed
* aplay appication failed to open the alsa device
@ 2007-10-24  4:41 Tharmarajan G
  2007-10-24  5:38 ` Tharmarajan G
  2007-10-24  6:24 ` Clemens Ladisch
  0 siblings, 2 replies; 5+ messages in thread
From: Tharmarajan G @ 2007-10-24  4:41 UTC (permalink / raw)
  To: alsa-devel; +Cc: maharajan, tharma

Hi,
	I am working on a Development Board which has the PXA270 processor and
TSC2301 Audio Codec Chip. 

	The TSC2301 Chip is interfaced with the processor by SPI interface for
reading/writing the TSC2301's registers. 

	The TSC2301 Chip is interfaced with the processor by I2S interface for
sending/receiving Audio Data to/from the TSC2301 Audio Codec Chip.

	I have downloaded the pxa-uda1380.c alsa driver source for uda1380
audio codec chip and modified it for tsc2301 . 

	I am using the kernel version 2.6.22 and cross-compiler version
arm-linux-gcc 3.4.1. 

	I have built the kernel image with ALSA audio support and the
applications aplay and arecord for playing and recording audio data
using ALSA api.

	I have got the alsa related entries in the /proc filesystem . But when
playing the aplay, it failed to open the device.

[root@SIRIUS /flash2]#./aplay /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:545: audio open error: No such file or directory
[root@SIRIUS /flash2]#

/aplay
-D /dev/snd/pcmC0D0p /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown
PCM /dev/snd/pcmC0D0p
aplay: main:545: audio open error: No such file or directory


What could be the issue ? Am I missing anyting in the driver for alsa ? 


Regards,
Tharmarajan G
	

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

* Re: aplay appication failed to open the alsa device
  2007-10-24  4:41 aplay appication failed to open the alsa device Tharmarajan G
@ 2007-10-24  5:38 ` Tharmarajan G
  2007-10-24  6:24 ` Clemens Ladisch
  1 sibling, 0 replies; 5+ messages in thread
From: Tharmarajan G @ 2007-10-24  5:38 UTC (permalink / raw)
  To: alsa-devel; +Cc: maharajan


	I tried to send the mp3 file directly to the device by using the cat
command. But it failed to play the mp3 file


[root@SIRIUS /tmp]#cat /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
>/dev/snd/pcmC0D0p
playback_open
cat: Write Error: File descriptor in bad state
hw_free
snd_card_pxa_tsc2301_playback_close
[root@SIRIUS /tmp]#



On Wed, 2007-10-24 at 10:11 +0530, Tharmarajan G wrote:

> Hi,
> 	I am working on a Development Board which has the PXA270 processor and
> TSC2301 Audio Codec Chip. 
> 
> 	The TSC2301 Chip is interfaced with the processor by SPI interface for
> reading/writing the TSC2301's registers. 
> 
> 	The TSC2301 Chip is interfaced with the processor by I2S interface for
> sending/receiving Audio Data to/from the TSC2301 Audio Codec Chip.
> 
> 	I have downloaded the pxa-uda1380.c alsa driver source for uda1380
> audio codec chip and modified it for tsc2301 . 
> 
> 	I am using the kernel version 2.6.22 and cross-compiler version
> arm-linux-gcc 3.4.1. 
> 
> 	I have built the kernel image with ALSA audio support and the
> applications aplay and arecord for playing and recording audio data
> using ALSA api.
> 
> 	I have got the alsa related entries in the /proc filesystem . But when
> playing the aplay, it failed to open the device.
> 
> [root@SIRIUS /flash2]#./aplay /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
> ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
> aplay: main:545: audio open error: No such file or directory
> [root@SIRIUS /flash2]#
> 
> /aplay
> -D /dev/snd/pcmC0D0p /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
> ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown
> PCM /dev/snd/pcmC0D0p
> aplay: main:545: audio open error: No such file or directory
> 
> 
> What could be the issue ? Am I missing anyting in the driver for alsa ? 
> 
> 
> Regards,
> Tharmarajan G
> 	
> 
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: aplay appication failed to open the alsa device
  2007-10-24  4:41 aplay appication failed to open the alsa device Tharmarajan G
  2007-10-24  5:38 ` Tharmarajan G
@ 2007-10-24  6:24 ` Clemens Ladisch
  2007-10-24  9:49   ` Tharmarajan G
  1 sibling, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2007-10-24  6:24 UTC (permalink / raw)
  To: tharma, alsa-devel; +Cc: maharajan

Tharmarajan G wrote:
> 	I have built the kernel image with ALSA audio support and the
> applications aplay and arecord for playing and recording audio data
> using ALSA api.
> 
> 	I have got the alsa related entries in the /proc filesystem . But when
> playing the aplay, it failed to open the device.
> 
> [root@SIRIUS /flash2]#./aplay /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
> ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default

Apparently, alsa-lib's .conf files are not installed in /usr/share/alsa/.


HTH
Clemens

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

* Re: aplay appication failed to open the alsa device
  2007-10-24  9:49   ` Tharmarajan G
@ 2007-10-24  9:02     ` Takashi Iwai
  0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2007-10-24  9:02 UTC (permalink / raw)
  To: tharma; +Cc: alsa-devel

At Wed, 24 Oct 2007 15:19:47 +0530,
Tharmarajan G wrote:
> 
> Hi Clemens,
> 
> Thanks for your reply. Still the problem is not solved.
> 
> I have downloaded the followings packages from the site
> www.alsa-project.org   and built them for arm.
> 
> 1. alsa-lib-1.0.14
> 
> 2. alsa-utils-1.0.14
> 
> 
> Configuring and Building instructions
> 
> pwd
> 
> /home/tharma/alsa-packages
> 
> cd alsa-lib-1.0.14
> 
> ./configure --host=arm-linux --prefix=$PWD/install
> CROSS_COMPILE=arm-linux-

Changing prefix in configure to a non-common path is wrong in general.
This will involve other values, especially in the case of ALSA, the
path compiled into the binary such as config file path is changed
too.

For specifying the installation root, pass via $DESTDIR at make
install.


Takashi

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

* Re: aplay appication failed to open the alsa device
  2007-10-24  6:24 ` Clemens Ladisch
@ 2007-10-24  9:49   ` Tharmarajan G
  2007-10-24  9:02     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Tharmarajan G @ 2007-10-24  9:49 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel, maharajan

Hi Clemens,

Thanks for your reply. Still the problem is not solved.

I have downloaded the followings packages from the site
www.alsa-project.org   and built them for arm.

1. alsa-lib-1.0.14

2. alsa-utils-1.0.14


Configuring and Building instructions

pwd

/home/tharma/alsa-packages

cd alsa-lib-1.0.14

./configure --host=arm-linux --prefix=$PWD/install
CROSS_COMPILE=arm-linux-

make 

make install

cd ../alsa-utils-1.0.14

./configure --host=arm-linux --prefix=$PWD/install
CROSS_COMPILE=arm-linux
CFLAGS=-I/home/tharma/alsa-packages/alsa-lib-1.0.14/install/include
LDFLAGS=-I/home/tharma/alsa-packages/alsa-lib-1.0.14/install/lib

make 
make install


	I have got the share/alsa directory in the alsa-lib package. I have
downoaded this diretory to the /usr/share/ path in my target board. But
still the aplay application fails to open the alsa device.



Regards,
Tharmarajan G




On Wed, 2007-10-24 at 08:24 +0200, Clemens Ladisch wrote: 
> Tharmarajan G wrote:
> > 	I have built the kernel image with ALSA audio support and the
> > applications aplay and arecord for playing and recording audio data
> > using ALSA api.
> > 
> > 	I have got the alsa related entries in the /proc filesystem . But when
> > playing the aplay, it failed to open the device.
> > 
> > [root@SIRIUS /flash2]#./aplay /usr/local/Songs/AjRaj-Anthimanthirai-Theme4.mp3
> > ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
> 
> Apparently, alsa-lib's .conf files are not installed in /usr/share/alsa/.
> 
> 
> HTH
> Clemens
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2007-10-24 10:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24  4:41 aplay appication failed to open the alsa device Tharmarajan G
2007-10-24  5:38 ` Tharmarajan G
2007-10-24  6:24 ` Clemens Ladisch
2007-10-24  9:49   ` Tharmarajan G
2007-10-24  9:02     ` Takashi Iwai

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.