Felix Radensky wrote:
Thanks a lot, this patch fixed the problem I had. What do you think
is the clean way to fix it ?
Hi Felix,
Board-specific quirks should be put into a board-specific file. I did
one attempt and Trilok suggested a better way to do it to have less
repetition across the boards. See
http://linux.omap.com/pipermail/davinci-linux-open-source/2008-April/006237.html
I might not ever get to doing this though (my davinci-related employment
winds up in two weeks), so someone else please feel free to have a crack
at it :)
Cheers,
Bernard.
Bernard Blackham wrote:
On Mon, Jun 30, 2008 at 11:44:27AM +0300, Felix Radensky wrote:
I'm trying to test the ASoC audio code on Davinvi EVM
using the latest git tree. I've applied two patches kindly
sent to me by Kevin Hilman that add EDMA support currently
missing in latest git.
The audio playback works ok, but when I try to modify various
codec parameters from alsamixer, I start getting the following
messages:
i2c_davinci i2c_davinci.1: controller timed out
At this point the audio is unusable, and the system should
be rebooted.
Any ideas what could cause I2C controller timeouts, and how
to debug them ?
The latest git tree has lost the changes needed for the DVEVM's
finicky I2C bus. I promised some patches to resolve these cleanly a
while ago and have not got to them unfortunately. In the interim,
the patch below should help you.
Cheers,
Bernard.
--- linux-davinci-2.6.git.orig/drivers/i2c/busses/i2c-davinci.c
2008-06-30 19:16:11.000000000 +0800
+++ linux-davinci-2.6.git/drivers/i2c/busses/i2c-davinci.c
2008-06-30 19:18:03.000000000 +0800
@@ -120,8 +120,8 @@
/* default platform data to use if not supplied in the
platform_device */
static struct davinci_i2c_platform_data
davinci_i2c_platform_data_default = {
- .bus_freq = 100,
- .bus_delay = 0,
+ .bus_freq = 20,
+ .bus_delay = 100,
};
static inline void davinci_i2c_write_reg(struct davinci_i2c_dev
*i2c_dev,
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source