Re: [Alsa-user] ALSA problem on Taihu board

2006-11-22 Thread David Cullen
Dear Mr. Revell,

Lee Revell wrote:
 On Tue, 2006-11-21 at 19:38 -0500, David Cullen wrote:
 Dear Folks,
 
 I am having a problem with ALSA on an AMCC Taihu board.  To keep
 things simple, I am just running speaker-test.  The offending line
 of code is a call to mmap in pcm_mmap.c at line 368.  I have used
 KGDB to trace the call through the kernel, and I cannot figure out
 the problem.  The mmap call succeeds, but the address returned
 causes an OOPS when accessed.
 
 Has anyone else had this type of problem with ALSA on PowerPC platforms?
 
 Please post a link to your code.
 
 Lee
 

It is not my code.  It is code in the ALSA library.  Specifically, it is

   alsa-lib-1.0.13/src/pcm/pcm_mmap.c line 368

You can get a tarball from

ftp://ftp.silug.org/pub/alsa/lib/alsa-lib-1.0.13.tar.bz2

-- 
Thank you,
David Cullen
Teligy
(864) 527-1263 Office
(864) 415-7063 Cell

-
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.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] ALSA problem on Taihu board

2006-11-21 Thread Lee Revell
On Tue, 2006-11-21 at 19:38 -0500, David Cullen wrote:
 Dear Folks,
 
 I am having a problem with ALSA on an AMCC Taihu board.  To keep
 things simple, I am just running speaker-test.  The offending line
 of code is a call to mmap in pcm_mmap.c at line 368.  I have used
 KGDB to trace the call through the kernel, and I cannot figure out
 the problem.  The mmap call succeeds, but the address returned
 causes an OOPS when accessed.
 
 Has anyone else had this type of problem with ALSA on PowerPC platforms?

Please post a link to your code.

Lee


-
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.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] ALSA problem on Taihu board

2006-11-21 Thread David Cullen
Dear Folks,

I am having a problem with ALSA on an AMCC Taihu board.  To keep
things simple, I am just running speaker-test.  The offending line
of code is a call to mmap in pcm_mmap.c at line 368.  I have used
KGDB to trace the call through the kernel, and I cannot figure out
the problem.  The mmap call succeeds, but the address returned
causes an OOPS when accessed.

Has anyone else had this type of problem with ALSA on PowerPC platforms?

A similar call to mmap in pcm_hw.c line 823 returns a valid address;
however, the prot is PROT_READ instead of (PROT_READ | PROT_WRITE).
 I tried changing the value of prot after it gets passed to the
kernel to see if it would fix the problem, but the returned address
still cannot be read.

I saw reference to aadebug in some old posts, but I do not see a way
to build this.

-- 
Thank you,
David Cullen
Teligy

-
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.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user