2010-06-09 13:24:05 BF537 STAMP with AD1836 daughter board on SPORT1
Adam Rosenberg (UNITED STATES)
Message: 90226
I am writing a driver for a custom board to play audio using SPORT1 to a Cirrus Logic CS42448.
I am first learning about the SPORT using the BF537 STAMP with AD1836 daughter board on SPORT1. When I use the tone program to test this configuration I hear a short bit of static and then nothing, followed by an error.
After this error I moved the daughter board to SPORT0 and changed the kernel configuration to match. I then recompiled and loaded the change to the STAMP. The same exact test now works perfectly.
I have searched known bugs in the tracker here but found no mention of this.
Is there a known reason why the AD1836 driver would work with SPORT0 but not with SPORT1?
Thank you,
Adam
--
Here is the program output from the STAMP using SPORT1 with debugging turned on:
root:/> tone
ALSA sound/blackfin/ad1836.c:896: snd_ad1836_playback_open
ALSA sound/blackfin/ad1836.c:924: snd_ad1836_capture_open
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
ALSA sound/blackfin/ad1836.c:988: snd_ad1836_hw_params
TONE: generating sine wave at 1000 Hz...ALSA sound/blackfin/ad1836.c:1085:
snd_ad1836_playback_prepare channels:2, period_bytes:0x4000, periods:2
ALSA sound/blackfin/ad1836.c:1145: snd_ad1836_playback_trigger
ALSA sound/blackfin/ad1836.c:1181: playback cmd:start
ERROR: write(/dev/dsp) failed, errno=5
ALSA sound/blackfin/ad1836.c:1145: snd_ad1836_playback_trigger
ALSA sound/blackfin/ad1836.c:1181: playback cmd:stop
ALSA sound/blackfin/ad1836.c:1027: snd_ad1836_hw_free
ALSA sound/blackfin/ad1836.c:1027: snd_ad1836_hw_free
ALSA sound/blackfin/ad1836.c:965: snd_ad1836_capture_close
root:/>
QuoteReplyEditDelete
2010-06-12 00:05:13 Re: BF537 STAMP with AD1836 daughter board on SPORT1
Barry Song (CHINA)
Message: 90272
Adam,
Can you tell us which release are you using and what board are you using? Do your board has hardware conflict on SPORT1 pins?
-barry
QuoteReplyEditDelete
2010-06-21 09:34:50 Re: BF537 STAMP with AD1836 daughter board on SPORT1
Adam Rosenberg (UNITED STATES)
Message: 90506
Barry,
I am using uClinux-dist-2009R1.1-RC4 with the ADZS-BF537-STAMP V2.1 and daughter board STAMP/SPORT-AD1836A V0.9
I have no other boards attached and nothing else in the kernel is configured to use SPORT1 as far as I know. Since it works well on SPORT0 but not on SPORT1, could this be a hardware problem with the versions of the boards that I am using?
Thanks,
Adam