[alsa-devel] Audio driver for dbAu1250 Development board
Hi
I am trying to make audio up in dbAu1250 Development board, I downloaded linux-2.6.29.4 kernel from the site "http://www.linux-mips.org/pub/linux/mips/kernel/v2.6/ " and applied the patch "asoc-v2.6.29-rc8-2009-03-17.patch"downloaded from "http://opensource.wolfsonmicro.com/~git/asoc/" but while compiling i am getting the bellow errors
********Linux compilation errors*************
sound/soc/au1x/exmmb-ac97.c:24:38: error: asm/mach-exm1200/exm1200.h: No such file or directory sound/soc/au1x/exmmb-ac97.c:26:25: error: linux/exm32.h: No such file or directory sound/soc/au1x/exmmb-ac97.c:58: error: subscripted value is neither array nor pointer sound/soc/au1x/exmmb-ac97.c:65: error: variable âsnd_soc_machine_exm97â has initializer but incomplete type sound/soc/au1x/exmmb-ac97.c:66: error: unknown field ânameâ specified in initializer sound/soc/au1x/exmmb-ac97.c:66: warning: excess elements in struct initializer sound/soc/au1x/exmmb-ac97.c:66: warning: (near initialization for âsnd_soc_machine_exm97â) sound/soc/au1x/exmmb-ac97.c:67: error: unknown field âdai_linkâ specified in initializer sound/soc/au1x/exmmb-ac97.c:67: warning: excess elements in struct initializer sound/soc/au1x/exmmb-ac97.c:67: warning: (near initialization for âsnd_soc_machine_exm97â) sound/soc/au1x/exmmb-ac97.c:68: error: unknown field ânum_linksâ specified in initializer sound/soc/au1x/exmmb-ac97.c:68: warning: excess elements in struct initializer sound/soc/au1x/exmmb-ac97.c:68: warning: (near initialization for âsnd_soc_machine_exm97â) sound/soc/au1x/exmmb-ac97.c:73: error: unknown field âmachineâ specified in initializer sound/soc/au1x/exmmb-ac97.c:73: warning: initialization from incompatible pointer type sound/soc/au1x/exmmb-ac97.c:74: error: unknown field âplatformâ specified in initializer sound/soc/au1x/exmmb-ac97.c:74: warning: initialization from incompatible pointer type sound/soc/au1x/exmmb-ac97.c:80: error: âPSC1_BASEâ undeclared here (not in a function) sound/soc/au1x/exmmb-ac97.c: In function âpsc_to_ac97â: sound/soc/au1x/exmmb-ac97.c:107: error: implicit declaration of function âau_readlâ sound/soc/au1x/exmmb-ac97.c:110: error: implicit declaration of function âau_writelâ sound/soc/au1x/exmmb-ac97.c:111: error: implicit declaration of function âau_syncâ sound/soc/au1x/exmmb-ac97.c:115: error: âPSC_CTLâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c:115: error: (Each undeclared identifier is reported only once sound/soc/au1x/exmmb-ac97.c:115: error: for each function it appears in.) sound/soc/au1x/exmmb-ac97.c:117: error: âPSC_SELâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c:122: error: âPSC_AC97RSTâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c:124: error: implicit declaration of function âmsleepâ sound/soc/au1x/exmmb-ac97.c:133: error: âPSC_AC97STATâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c:140: error: âPSC_AC97CFGâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c: In function âexm1200_mobo_ac97_initâ: sound/soc/au1x/exmmb-ac97.c:160: error: implicit declaration of function âau_readwâ sound/soc/au1x/exmmb-ac97.c:160: error: âEXM1200_FPGA_BRDCTRLâ undeclared (first use in this function) sound/soc/au1x/exmmb-ac97.c:162: error: implicit declaration of function âau_writewâ make[3]: *** [sound/soc/au1x/exmmb-ac97.o] Error 1 make[2]: *** [sound/soc/au1x] Error 2 ****************************************************
before applying the patch the board was working but the audio was not working.. can you suggest me which kernel source you used and how you got the audio working for your board. can you send me the sample kernel image "vmlinux.srec" image for testing..
Thanks Manjunath.AM
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
On Thu, Jun 04, 2009 at 02:58:06PM +0530, Manjunath A M wrote:
sound/soc/au1x/exmmb-ac97.c:24:38: error: asm/mach-exm1200/exm1200.h: No such file or directory sound/soc/au1x/exmmb-ac97.c:26:25: error: linux/exm32.h: No such file or directory
Looks like the code relies on some underlying porting work which may have either changed since the code was written or may not have been merged into mainline.
before applying the patch the board was working but the audio was not working.. can you suggest me which kernel source you used and how you got the audio working for your board.
This code was contributed against a much older kernel, and may well have relied on other patches. I've CCed in Manuel Lass, who contributed the code and should have a better idea what the MIPS status is.
can you send me the sample kernel image "vmlinux.srec" image for testing..
You'd be better off asking the MIPS community for this.
Hello!
On Thu, 04 Jun 2009 14:58:06 +0530 Manjunath A M manjunatham@tataelxsi.co.in wrote:
I am trying to make audio up in dbAu1250 Development board, I downloaded linux-2.6.29.4 kernel from the site "http://www.linux-mips.org/pub/linux/mips/kernel/v2.6/ " and applied the patch "asoc-v2.6.29-rc8-2009-03-17.patch"downloaded from "http://opensource.wolfsonmicro.com/~git/asoc/" but while compiling i am getting the bellow errors
********Linux compilation errors*************
sound/soc/au1x/exmmb-ac97.c:24:38: error: asm/mach-exm1200/exm1200.h: No
For AC97, I suggest you use the "sound/soc/au1x/sample-ac97.c" driver. It does work on the DB1200 (and ONLY the db1200). If you also want I2S, I posted a set of patches on linux-mips which enhance DB1200 support; among it is a replacement audio machine driver with both AC97 and I2S (selectable through one of the board switches of the S6 group).
Manuel Lauss
On Sat, Jun 06, 2009 at 01:13:13PM +0200, Manuel Lauss wrote:
I2S, I posted a set of patches on linux-mips which enhance DB1200 support; among it is a replacement audio machine driver with both AC97 and I2S (selectable through one of the board switches of the S6 group).
Please post any audio drivers for mainline here as well.
Hi Manuel,
Thanks for your reply..
I need to use the kernel for DB1250 borad..with the patches that you are suggesting will audio work on this board?? kindly provide me the link for patches that you are suggesting..
Thanks Manjunath.AM
Manuel Lauss wrote:
Hello!
On Thu, 04 Jun 2009 14:58:06 +0530 Manjunath A M manjunatham@tataelxsi.co.in wrote:
I am trying to make audio up in dbAu1250 Development board, I downloaded linux-2.6.29.4 kernel from the site "http://www.linux-mips.org/pub/linux/mips/kernel/v2.6/ " and applied the patch "asoc-v2.6.29-rc8-2009-03-17.patch"downloaded from "http://opensource.wolfsonmicro.com/~git/asoc/" but while compiling i am getting the bellow errors
********Linux compilation errors*************
sound/soc/au1x/exmmb-ac97.c:24:38: error: asm/mach-exm1200/exm1200.h: No
For AC97, I suggest you use the "sound/soc/au1x/sample-ac97.c" driver. It does work on the DB1200 (and ONLY the db1200). If you also want I2S, I posted a set of patches on linux-mips which enhance DB1200 support; among it is a replacement audio machine driver with both AC97 and I2S (selectable through one of the board switches of the S6 group).
Manuel Lauss
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
Hello!
On Mon, Jun 08, 2009 at 09:26:55AM +0530, Manjunath A M wrote:
I need to use the kernel for DB1250 borad..with the patches that you are suggesting will audio work on this board??
Yes, I don't have any problems with audio playback on my Db1200. A note on I2S though: you need to unmute the "HiFi Playback Switch" in alsamixer before starting playback, otherwise the WM8731 won't provide bitclock and you'll get timeout errors on playback. AC97 works fine as-is.
kindly provide me the link for patches that you are suggesting..
At a minimum, apply these here in this order: http://marc.info/?l=linux-mips&m=124429033530426&w=2 http://marc.info/?l=linux-mips&m=124440001201703&w=2 http://marc.info/?l=linux-mips&m=124440013101823&w=2 http://marc.info/?l=linux-mips&m=124440005401759&w=2 (Db1200 audio)
The last two contain new DB1200 support and DB1200 audio system; they depend on the first two.
These are part of 2 separate patchseries I posted to linux-mips over the weekend. I'd by very grateful if you could give them a spin, Alchemy testers are very rare...
These links point to the first patches in each series, apply them in this order: http://marc.info/?l=linux-mips&m=124429030830390&w=2 http://marc.info/?l=linux-mips&m=124440000101690&w=2
Manuel Lauss
Thanks a lot, surely will test and comeback to you!!!
Regards Manjunath.AM
Manuel Lauss wrote:
Hello!
On Mon, Jun 08, 2009 at 09:26:55AM +0530, Manjunath A M wrote:
I need to use the kernel for DB1250 borad..with the patches that you are suggesting will audio work on this board??
Yes, I don't have any problems with audio playback on my Db1200. A note on I2S though: you need to unmute the "HiFi Playback Switch" in alsamixer before starting playback, otherwise the WM8731 won't provide bitclock and you'll get timeout errors on playback. AC97 works fine as-is.
kindly provide me the link for patches that you are suggesting..
At a minimum, apply these here in this order: http://marc.info/?l=linux-mips&m=124429033530426&w=2 http://marc.info/?l=linux-mips&m=124440001201703&w=2 http://marc.info/?l=linux-mips&m=124440013101823&w=2 http://marc.info/?l=linux-mips&m=124440005401759&w=2 (Db1200 audio)
The last two contain new DB1200 support and DB1200 audio system; they depend on the first two.
These are part of 2 separate patchseries I posted to linux-mips over the weekend. I'd by very grateful if you could give them a spin, Alchemy testers are very rare...
These links point to the first patches in each series, apply them in this order: http://marc.info/?l=linux-mips&m=124429030830390&w=2 http://marc.info/?l=linux-mips&m=124440000101690&w=2
Manuel Lauss
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
participants (3)
-
Manjunath A M
-
Manuel Lauss
-
Mark Brown