2008-03-03 14:00:44 ASOC 4 BF
Kris Dickie (CANADA)
Message: 52000 I know it's not part of your plans, but after reading through numerous threads, it seems that a lot of developers would benefit from ASOC being implemented on the BF. It looks like many of us, including myself are working with Wolfson series codecs, and they are building up a decent repository of drivers over at: http://opensource.wolfsonmicro.com
I will be working on a non-ASOC driver for the WM8940, but a lot of time could be saved if ASOC were implemented.
Thanks
QuoteReplyEditDelete
2008-03-03 14:29:52 Re: ASOC 4 BF
Mike Frysinger (UNITED STATES)
Message: 52001 there are Blackfin ASOC drivers in svn trunk / 2008R1 right now
QuoteReplyEditDelete
2008-03-03 15:51:19 Re: ASOC 4 BF
Kris Dickie (CANADA)
Message: 52002 Thanks, I tested out compilation for WM8750 and got a few errors:
sound/soc/blackfin/snd-soc-bf5xx-i2s.o: In function `sport_send_and_recv':
(.text+0xdf0): multiple definition of `sport_send_and_recv'
sound/soc/blackfin/snd-soc-bf5xx-ac97.o:(.text+0x1374): first defined here
sound/soc/blackfin/snd-soc-bf5xx-i2s.o: In function `sport_set_err_callback':
(.text+0x2e4): multiple definition of `sport_set_err_callback'
sound/soc/blackfin/snd-soc-bf5xx-ac97.o:(.text+0x868): first defined here
sound/soc/blackfin/snd-soc-bf5xx-i2s.o: In function `sport_dump_stat':
(.text+0x3bc): multiple definition of `sport_dump_stat'
sound/soc/blackfin/snd-soc-bf5xx-ac97.o:(.text+0x940): first defined here
....
I removed linkage with bf5xx-sport.o on the line:
snd-soc-bf5xx-i2s-objs := bf5xx-i2s.o bf5xx-sport.o
in sound/soc/blackfin/Makefile to get around the errors.
The other error:
sound/soc/blackfin/snd-soc-bf5xx-wm8750.o:(.bss+0x0): multiple definition of `sport_handle'
sound/soc/blackfin/snd-soc-bf5xx-ac97.o:(.bss+0x0): first defined here
I added 'extern' in front of struct sport_device *sport_handle; on line 88 of bfxx-wm8750.c
Let me know if these are changes that should be reflected in svn.
Also in the kernel configuration, it automatically assumes in 2 places that the AD1980 driver should be compiled.
First case is here:
config SND_BF5XX_SOC_BF548_EZKIT
tristate "SoC AC97 Audio support for BF548 ezkit"
depends on SND_BF5XX_SOC && BFIN548_EZKIT
select SND_BF5XX_SOC_AC97
select SND_SOC_AD1980
help
Say Y if you want to add support for SoC audio on BF548-EZKIT.
Second case is here:
config SND_BF5XX_SOC_BF5xx
tristate "SoC AC97 Audio support for BF5xx"
depends on SND_BF5XX_SOC && !BFIN548_EZKIT
select SND_BF5XX_SOC_AC97
select SND_SOC_AD1980
help
Say Y if you want to add support for SoC audio on BF5xx STAMP/EZKIT.
I plug my own dev board for WM8940 onto the EZKIT, so it may be nice to make AD1980 a selectable option, just as any other codec, it could be selected as default if the 548EZKIT flag is on.
QuoteReplyEditDelete
2008-03-03 16:41:49 Re: ASOC 4 BF
Mike Frysinger (UNITED STATES)
Message: 52003 the BF527 driver has not been finished just yet
QuoteReplyEditDelete
2008-03-05 15:14:23 Re: ASOC 4 BF
Kris Dickie (CANADA)
Message: 52129 Any ideas on when the WM8731 will work on the BF527? I am pretty close to having my WM8940 codec running on the 548, but not sure how to initialize the SPI interface for ASoc with these codecs it looks like Roy has just coded the TWI interface. (Wolfson codecs support both).
QuoteReplyEditDelete
2008-03-05 15:23:04 Re: ASOC 4 BF
Mike Frysinger (UNITED STATES)
Message: 52131 that codec driver was just dropped in from a contribution ... the only timeframe we have at the moment is in the next couple months it'll get done. but that will be just for the wolfson codec that lives inside of the BF527c, not for anything else.
QuoteReplyEditDelete
2008-03-06 12:15:45 Re: ASOC 4 BF
Kris Dickie (CANADA)
Message: 52166 Sounds good
Another question: why are there no board resources defined for the AD1980 codec on the BF548? Is this because it is just using the SPORT, and setup for this is done in the AC97 encapsulation files? Just trying to figure out a nuances like this.
QuoteReplyEditDelete
2008-03-06 12:30:47 Re: ASOC 4 BF
Mike Frysinger (UNITED STATES)
Message: 52167 probably ... the AC97 SPORT ASOC emulation driver needs clean up at the moment to work with any codec rather than being hardcoded to the AD1980 ...