From: "shekhar, chandra" <x0044955@ti.com>
To: "Hunter, Jon" <jon-hunter@ti.com>,
Yuri Jaeger Monti <yurijm@gmail.com>,
linux-omap@vger.kernel.org
Subject: Re: OMAP AIC23
Date: Wed, 13 Aug 2008 12:07:57 +0530 [thread overview]
Message-ID: <001001c8fd0f$20620290$LocalHost@wipultra806> (raw)
In-Reply-To: 7B4574D56E4ADF438756313E9A172A870D5F0E4D@dlee01.ent.ti.com
----- Original Message -----
From: "Hunter, Jon" <jon-hunter@ti.com>
To: "Shekhar, Chandra" <x0044955@ti.com>; "Yuri Jaeger Monti"
<yurijm@gmail.com>; <linux-omap@vger.kernel.org>
Sent: Wednesday, August 13, 2008 8:20 AM
Subject: RE: OMAP AIC23
Hi Chandra,
> i have a question, why a client is modifying mcbsp registers. There is a
> mcbsp
> config function (omap_mcbsp_config) exported which you can use to
> configure mcbsp registers.
> if its an absolute necessity you can use omap_mcbsp_read and
> omap_mcbsp_write
> function. which are defined in arch/arm/plat-omap/mcbsp.c.
> but you need to pass full register name, like OMAP_MCBSP_REG_SPCR1 instead
> of
> just SPCR1 ( 'SPCR1' undeclared error).
>Looking at the source file "drivers/i2c/chips/tlv320aic23.c" the function
>"omap_mcbsp3_aic23_clock_init()" is enabling the McBSP sample rate generator in
>order >to generate the 12MHz system clock to the aic23. I believe that this
>needs to be done in order to configure the aic23.
>The good news is that there appears to be a simple fix. All we need to do is
>move the definitions of the macros OMAP_MCBSP_READ and >OMAP_MCBSP_WRITE from
>mcbsp.c to the header "include/asm-arm/arch-omap/mcbsp.h"
Look like this should be doable.
but we will have two read/write defs in header. one will be Macro and other will
be function, both mapping to same code.
Doing this and making a couple other minor changes I am now able to build the
alsa driver successfully for the omap5912 osk. I will submit a patch to the
list. Let me know what you think.
Cheers
Jon
next prev parent reply other threads:[~2008-08-13 6:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 19:21 OMAP AIC23 Yuri Jaeger Monti
2008-08-12 5:33 ` shekhar, chandra
2008-08-13 2:50 ` Hunter, Jon
2008-08-13 6:37 ` shekhar, chandra [this message]
2008-08-13 13:41 ` Hunter, Jon
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='001001c8fd0f$20620290$LocalHost@wipultra806' \
--to=x0044955@ti.com \
--cc=jon-hunter@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=yurijm@gmail.com \
/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