Troy,

Did you happen to test Audio on DM6446 with the latest on linux-davinci tree?

For the same clock name issue Arun is running into on DM355, the codecs are not 
getting detected on DM6446.

Advanced Linux Sound Architecture Driver Version 1.0.20.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
ALSA device list:
  No soundcards found.

I am thinking we are seeing these issues due to the way dm355 (or dm6446) 
clocks are defined on linux-davinci tree and the mach-davinci on kernel.org.

>From arch/arm/mach-davinci/dm355.c of kernel.org
CLK("soc-audio.0", NULL, &asp0_clk),
CLK("soc-audio.1", NULL, &asp1_clk),

And from arch/arm/mach-davinci/dm355.c of linux-davinci tree
CLK(NULL, "asp0", &asp0_clk),
CLK(NULL, "asp1", &asp1_clk),

Kevin, any comments?

Thanks
Sneha

> -----Original Message-----
> From: davinci-linux-open-source-boun...@linux.davincidsp.com
> [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf
> Of Mani, Arun
> Sent: Friday, July 10, 2009 5:26 PM
> To: Troy Kisky
> Cc: davinci-linux-open-source@linux.davincidsp.com; Mark Brown; linux-arm-
> ker...@lists.arm.linux.org.uk; Medisetty, Naresh
> Subject: RE: [PATCH 07/26] davinci: dm646x: Adds McASP clock
> 
> The clock is indeed initialized in board_dm355.c. The problem is the clock
> name is not given to the clk_get function. I hard coded the clock name to
> asp1(since it is dm355) and found out that this helps register the i2s and
> aic33x. but when I ran aplay and arecord, the clock is not correct and
> moreover there are lot or underruns detected. BTW it is also detected in
> the DM6446 case.
> 
> 
> -----Original Message-----
> From: Troy Kisky [mailto:troy.ki...@boundarydevices.com]
> Sent: Friday, July 10, 2009 3:48 PM
> To: Mani, Arun
> Cc: Mark Brown; davinci-linux-open-source@linux.davincidsp.com; linux-arm-
> ker...@lists.arm.linux.org.uk; Medisetty, Naresh
> Subject: Re: [PATCH 07/26] davinci: dm646x: Adds McASP clock
> 
> Mani, Arun wrote:
> > Hi,
> > I am trying the latest 2.6.31 rc2 branch. I am trying to make the Audio
> work.
> >  I found that the I2S clock is set to NULL. Because of this I am getting
> a NODEV error.
> > If I commented the check, I was able to map the I2S to the AIC33X. but I
> am not getting any sound.
> You need a clock, so don't comment out the check, rather give it one. ie.
> 
> +static struct snd_platform_data snd_data = {
> +       .clk_name       = "asp0",
> +};
> +
>  static struct i2c_board_info __initdata i2c_info[] =  {
>         {
>                 I2C_BOARD_INFO("ths8200", 0x21),
> @@ -230,6 +234,7 @@ static __init void board_init(void)
>         platform_add_devices(davinci_devices,
>                              ARRAY_SIZE(davinci_devices));
>         davinci_serial_init(&uart_config);
> +       dm644x_init_asp(&snd_data);
> 
> 
> > I tried the aplay and arecord and got the read/write errors.
> >
> > Any thoughts?
> >
> > Thanks,
> > Arun.
> >
> 
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to