From mboxrd@z Thu Jan 1 00:00:00 1970 From: maser rati Subject: Re: Question about AT73C213.conf Date: Wed, 21 Feb 2007 20:18:38 -0800 (PST) Message-ID: <762036.45596.qm@web37709.mail.mud.yahoo.com> References: <718259.33692.qm@web37714.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0513368156==" Return-path: In-Reply-To: <718259.33692.qm@web37714.mail.mud.yahoo.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Takashi Iwai Cc: Alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --===============0513368156== Content-Type: multipart/alternative; boundary="0-831388511-1172117918=:45596" Content-Transfer-Encoding: 7bit --0-831388511-1172117918=:45596 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Following up, the kernel was compiled using gcc 3.4 instead of gcc 4.1 a= nd the alsa driver seems to work better. This is a toolchain problem, acc= ording to Atmel and our distribution vendor. =20 But, we get the following error messages: =20 -bash-3.1# aplay -D default Noise.wav Playing WAVE 'Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, M= ono ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to find = an usable access for 'default' aplay: set_params:909: Channels count non available =20 Could it be possible that there is something fishy going on with the als= a-lib ? =20 Appreciate your input.. =20 Thanks, iyer =20 =20 =20 =20 =20 =20 =20 =20 maser rati wrote: Hi Takashi, =20 Omitting the --prefix =3D/board-rfs, DESTDIR=3D/board-rfs was passed in = make install, and on checking, it seemed that the bin, lib, share and inc= lude components of the alsa-lib were installed under /board-rfs/usr=20 =20 However on running an application, this is got=20 =20 -bash-3.1# ./soundtest default ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usabl= e cannot initialize hardware parameter structure (Invalid argument) =20 Setting the environment variable $LIBASOUND_DEBUG to 1 does not cause an= y debugging information to be displayed to stderr. (I double checked via = #echo to make sure LIBASOUND_DEBUG was set to 1) =20 I'm clueless, am I doing anything wrong ? =20 Thanks much, iyer =20 =20 Takashi Iwai wrote: At Wed, 14 Feb 2007 12:32:35 -0800 (= PST), maser rati wrote: >=20 > The installation was done via the configure command, make and make inst= all. >=20 > How to enable the alsa-files to install to a specific directory, board-= rfs ? On trying > different options in the ./configure script; --prefix=3D/board-rfs exac= tly installs the > alsa-lib components to it. But --prefix=3DXXX overrides the path embedded in the code. For installing to another root, passing DESTDIR=3DXXX at make install is the standard procedure. > Moreover on running aplay, it was found that atrace wasn't able to loca= te alsa.conf, > with the location being at at /etc/alsa, so the contents of /etc/alsa w= ere moved to / > usr/share/alsa. However it says that the setup is corrupt. Please find = attached the > strace for aplay; your valuable input is appreciated. This is a different thing. Now the system files are properly set and alsa-lib reads them. But, the driver returns an error for the required PCM setting. Try to set $LIBASOUND_DEBUG to 1. Then each hw_params error will be displayed to stderr. See alsa-lib/NOTES for details. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share y= our opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel =20 --------------------------------- Have a burning question? Go to Yahoo! Answers and get answers from real p= eople who know.----------------------------------------------------------= --------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share y= our opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV_______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel =20 --------------------------------- Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. --0-831388511-1172117918=:45596 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Following up, the kernel was compiled using gcc 3.4 instead of gcc 4= .1 and the alsa driver seems to work better. This is a toolchain problem,= according to Atmel and our distribution vendor.

But, we get the= following error messages:

-bash-3.1# aplay -D default Noise.wav=
Playing WAVE 'Noise.wav' : Signed 16 bit Little Endian, Rate 48000 H= z, Mono
ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unab= le to find an usable access for 'default'
aplay: set_params:909: Chan= nels count non available

Could it be possible that there is some= thing fishy going on with the alsa-lib ?

Appreciate your input..=

Thanks,
iyer








maser rati <lazardo12@yahoo.com> wrote:
Hi Takashi,

Omitting the --prefi= x =3D/board-rfs, DESTDIR=3D/board-rfs was passed in make install, and on checking, it seemed that the bin, lib, sh= are and include components of the alsa-lib were installed under /board-rf= s/usr

However on running an application, this is got

= -bash-3.1# ./soundtest default
ALSA lib pcm_params.c:2152:(snd_pcm_hw= _refine_slave) Slave PCM not usable
cannot initialize hardware parame= ter structure (Invalid argument)

Setting the environment variabl= e $LIBASOUND_DEBUG to 1 does not cause any debugging information to be di= splayed to stderr. (I double checked via #echo to make sure LIBASOUND_DEB= UG was set to 1)

I'm clueless, am I doing anything wrong ?
<= br> Thanks much,
iyer



Takashi Iwai <tiwai@s= use.de> wrote:
At = Wed, 14 Feb 2007 12:32:35 -0800 (PST),
maser rati wrote:
>
= > The installation was done via the configure command, make and make install.
>
> How to enable= the alsa-files to install to a specific directory, board-rfs ? On trying=
> different options in the ./configure script; --prefix=3D/board-r= fs exactly installs the
> alsa-lib components to it.

But --p= refix=3DXXX overrides the path embedded in the code. For
installing t= o another root, passing DESTDIR=3DXXX at make install is the
standard = procedure.

> Moreover on running aplay, it was found that atrac= e wasn't able to locate alsa.conf,
> with the location being at at = /etc/alsa, so the contents of /etc/alsa were moved to /
> usr/share= /alsa. However it says that the setup is corrupt. Please find attached th= e
> strace for aplay; your valuable input is appreciated.

Th= is is a different thing. Now the system files are properly set and
al= sa-lib reads them. But, the driver returns an error for the
required= PCM setting.

Try to set $LIBASOUND_DEBUG to 1. Then each hw_params error will be
displayed t= o stderr. See alsa-lib/NOTES for details.


Takashi

----= ---------------------------------------------------------------------
= Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.n= et's Techsay panel and you'll get the chance to share your
opinions on= IT & business topics through brief surveys-and earn cash
http://w= ww.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV
_______________________________________________
Alsa-devel m= ailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourcefo= rge.net/lists/listinfo/alsa-devel


Have a burning question? Go to Yahoo! Answers and get answers from = real people who know.-------------------------------------------------------------------= ------
Take Surveys. Earn Cash. Influence the Future of IT
Join Sou= rceForge.net's Techsay panel and you'll get the chance to share your
o= pinions on IT & business topics through brief surveys-and earn cashhttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&= amp;CID=3DDEVDEV_______________________________________________
Alsa-d= evel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.so= urceforge.net/lists/listinfo/alsa-devel


Bored stiff? Loosen up...
Download and play hundreds of g= ames for free on Yahoo! Games. --0-831388511-1172117918=:45596-- --===============0513368156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0513368156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-devel --===============0513368156==--