From: "Arun KS" <getarunks@gmail.com>
To: felipe.balbi@nokia.com
Cc: linux-omap@vger.kernel.org
Subject: Re: Reset unused clocks during boot causing problem on 5912 OSK
Date: Wed, 3 Sep 2008 22:57:59 +0530 [thread overview]
Message-ID: <dfeb90390809031027h4e0de05s2126a65984d648ae@mail.gmail.com> (raw)
In-Reply-To: <20080903140921.GF16796@gandalf.research.nokia.com>
Hi Balbi,
That clk_enable() is for sys_clkout, which is the MCLK for the CODEC.
I am following n810.c file itself.
But I m talking about omap_mcbsp_request(0), which will only be called when
we do an aplay, by the platform driver of the omap(sound/soc/omap/ompa-mcbsp.c).
But before this the unused clocks are switched off by clock.c in
arch/arm/mach-omap1/clocks.c.
And when i call the omap_mcbsp_request(), the entire system hangs...
Arun
On Wed, Sep 3, 2008 at 7:39 PM, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> On Wed, Sep 03, 2008 at 07:32:51PM +0530, ext Arun KS wrote:
>> Hi all,
>>
>> I am trying to write an ASOC driver for tlv320aic23 on 5912osk.
>> When i do an aplay, the system is hanging.
>> Later i found that it is hanging when mcbsp1 is requested in funcion
>> omap_mcbsp_dai_startup in file sound/soc/omap/omap-mcbsp.c
>>
>> The reason is that the unused clocks are switched off during booting.
>>
>> So i decided to disable the option (reset unused clocks during boot) from
>> system type -> TI OMAP Implementations in menuconfig.
>>
>> But still its not working.
>>
>> When i give omap_mcbsp_request(0) in init function of my machine
>> driver, i m able
>> to get the requested mcbsp.
>
> Take a look at sound/soc/omap/n810.c, under n810_startup() it calls
> clk_enable().
>
> Maybe you should do the same. But since tlv320aic23 is used by more than
> one machine you could make the clk_enable be board specific.
>
> But one step at a time, take a look here:
>
> 71 static int n810_startup(struct snd_pcm_substream *substream)
> 72 {
> 73 struct snd_soc_pcm_runtime *rtd = substream->private_data;
> 74 struct snd_soc_codec *codec = rtd->socdev->codec;
> 75
> 76 n810_ext_control(codec);
> 77 return clk_enable(sys_clkout2);
> 78 }
>
> --
> balbi
>
next prev parent reply other threads:[~2008-09-03 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-03 14:02 Reset unused clocks during boot causing problem on 5912 OSK Arun KS
2008-09-03 14:09 ` Felipe Balbi
2008-09-03 17:27 ` Arun KS [this message]
2008-09-03 17:35 ` Yuri Jaeger Monti
2008-09-03 19:00 ` Russell King - ARM Linux
2008-09-04 15:29 ` Arun KS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dfeb90390809031027h4e0de05s2126a65984d648ae@mail.gmail.com \
--to=getarunks@gmail.com \
--cc=felipe.balbi@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox