* [PATCH 0/5] davinci: da850: clean up pinmux arrays in da850.c
[not found] ` <B85A65D85D7EB246BE421B3FB0FBB59302484733F8@dbde02.ent.ti.com>
@ 2011-01-18 4:40 ` Rajashekhara, Sudhakar
2011-01-18 11:41 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Rajashekhara, Sudhakar @ 2011-01-18 4:40 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
I was testing Audio with 2.6.37 on DA850 from Kevin Hilman Linux tree
at [1] and found that audio is broken. Below patch fixes the issue.
---
From: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
davinci: fixes for audio on da850/omap-l138/am18x
On DA850/OMAP-L138/AM18x, AIC3x codec is at 0x18 slave address.
But in sound/soc/davinci/davinci-evm.c file, "struct snd_soc_dai_link"
has the wrong AIC3x codec slave address. This patch fixes this issue.
Also, this patch registers the platform device for davinci-pcm-audio.
Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
---
arch/arm/mach-davinci/devices-da8xx.c | 12 ++++++++++++
sound/soc/davinci/davinci-evm.c | 2 +-
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index 9eec630..17c0dbc 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -473,6 +473,11 @@ static struct resource da850_mcasp_resources[] = {
},
};
+struct platform_device davinci_pcm_device = {
+ .name = "davinci-pcm-audio",
+ .id = -1,
+};
+
static struct platform_device da850_mcasp_device = {
.name = "davinci-mcasp",
.id = 0,
@@ -480,8 +485,15 @@ static struct platform_device da850_mcasp_device = {
.resource = da850_mcasp_resources,
};
+static void davinci_init_pcm(void)
+{
+ platform_device_register(&davinci_pcm_device);
+}
+
void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
{
+ davinci_init_pcm();
+
/* DA830/OMAP-L137 has 3 instances of McASP */
if (cpu_is_davinci_da830() && id == 1) {
da830_mcasp1_device.dev.platform_data = pdata;
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
index bc9e6b0..07db881 100644
--- a/sound/soc/davinci/davinci-evm.c
+++ b/sound/soc/davinci/davinci-evm.c
@@ -224,7 +224,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = {
.stream_name = "AIC3X",
.cpu_dai_name= "davinci-mcasp.0",
.codec_dai_name = "tlv320aic3x-hifi",
- .codec_name = "tlv320aic3x-codec.0-001a",
+ .codec_name = "tlv320aic3x-codec.1-0018",
.platform_name = "davinci-pcm-audio",
.init = evm_aic3x_init,
.ops = &evm_ops,
---
Also, I found that either CONFIG_REGULATOR should not be defined or if
CONFIG_REGULATOR is defined then CONFIG_REGULATOR_DUMMY should also be
defined. Without this menuconfig fix, Soundcard does not get detected.
With the above fixes, arecord and aplay does not work for the first time.
Couple of times I get the below error:
root at da850-omapl138-evm:~# arecord -f dat | aplay -f dat
arecord: main:608: audio open error: Invalid argument
aplay: playback:2297: read error
root at da850-omapl138-evm:~# arecord -f dat | aplay -f dat
aplay: main:608: audio open error: Invalid argument
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Third time arecord and aplay work normally.
Has anyone seen such issues on DA850 or any other platform?
I am currently debugging this issue. I'll submit the above patch to community
once the issue of fixed.
[1] http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=summary
Regards,
Sudhakar
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 0/5] davinci: da850: clean up pinmux arrays in da850.c
2011-01-18 4:40 ` [PATCH 0/5] davinci: da850: clean up pinmux arrays in da850.c Rajashekhara, Sudhakar
@ 2011-01-18 11:41 ` Sergei Shtylyov
2011-01-18 11:48 ` Rajashekhara, Sudhakar
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2011-01-18 11:41 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 18-01-2011 7:40, Rajashekhara, Sudhakar wrote:
> I was testing Audio with 2.6.37 on DA850 from Kevin Hilman Linux tree
> at [1] and found that audio is broken. Below patch fixes the issue.
> ---
> From: Rajashekhara, Sudhakar<sudhakar.raj@ti.com>
> davinci: fixes for audio on da850/omap-l138/am18x
>
> On DA850/OMAP-L138/AM18x, AIC3x codec is at 0x18 slave address.
> But in sound/soc/davinci/davinci-evm.c file, "struct snd_soc_dai_link"
> has the wrong AIC3x codec slave address. This patch fixes this issue.
> Also, this patch registers the platform device for davinci-pcm-audio.
Shouldn't this be 2 patches? I don't see a connection between the changes.
> Signed-off-by: Rajashekhara, Sudhakar<sudhakar.raj@ti.com>
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 0/5] davinci: da850: clean up pinmux arrays in da850.c
2011-01-18 11:41 ` Sergei Shtylyov
@ 2011-01-18 11:48 ` Rajashekhara, Sudhakar
0 siblings, 0 replies; 3+ messages in thread
From: Rajashekhara, Sudhakar @ 2011-01-18 11:48 UTC (permalink / raw)
To: linux-arm-kernel
Hi Sergei,
On Tue, Jan 18, 2011 at 17:11:13, Sergei Shtylyov wrote:
> Hello.
>
> On 18-01-2011 7:40, Rajashekhara, Sudhakar wrote:
>
> > I was testing Audio with 2.6.37 on DA850 from Kevin Hilman Linux tree
> > at [1] and found that audio is broken. Below patch fixes the issue.
>
> > ---
> > From: Rajashekhara, Sudhakar<sudhakar.raj@ti.com>
>
> > davinci: fixes for audio on da850/omap-l138/am18x
> >
> > On DA850/OMAP-L138/AM18x, AIC3x codec is at 0x18 slave address.
> > But in sound/soc/davinci/davinci-evm.c file, "struct snd_soc_dai_link"
> > has the wrong AIC3x codec slave address. This patch fixes this issue.
>
> > Also, this patch registers the platform device for davinci-pcm-audio.
>
> Shouldn't this be 2 patches? I don't see a connection between the changes.
>
Yes, definitely this should be 2 patches. I just posted the fix as-is to unblock
any folks who are facing the issue. As you can see from my e-mail there are still
some issues which I am debugging currently. I'll post the proper patch later.
Regards,
Sudhakar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-18 11:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1294406333-30054-1-git-send-email-michael.williamson@criticallink.com>
[not found] ` <B85A65D85D7EB246BE421B3FB0FBB59302484733F8@dbde02.ent.ti.com>
2011-01-18 4:40 ` [PATCH 0/5] davinci: da850: clean up pinmux arrays in da850.c Rajashekhara, Sudhakar
2011-01-18 11:41 ` Sergei Shtylyov
2011-01-18 11:48 ` Rajashekhara, Sudhakar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox