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