All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: ext Joonyoung Shim <jy0922.shim@samsung.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	"Lopez Cruz, Misael" <x0052729@ti.com>
Subject: Re: How to set TWL4030 to Option2
Date: Fri, 15 May 2009 14:09:13 +0300	[thread overview]
Message-ID: <200905151409.13619.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <4A0D4B37.9020003@samsung.com>

On Friday 15 May 2009 14:00:07 ext Joonyoung Shim wrote:
> On 5/15/2009 7:05 PM, Lopez Cruz, Misael wrote:
> >>> In current code, as you say, you have to directly change
> >>> the value of the reg cache for setting to option2, also
> >>> you have to modify the REG_OPTION and REG_VOICE_IF reg for
> >>> voice, but this is temporary method.
> >>
> >> This can be done with a register write from the DAI init()
> >> function in the machine driver in order to avoid modifying
> >> twl4030.c itself.
> >
> > For audio and voice interface, following things need to be configured:
> >
> > Audio interface:
> > - Output pins state: high impendance or application mode
> > - Enable audio interface
> >
> > Voice interface:
> > - Enable voice data input
> > - Enable voice data output
> > - Output pins state: high impedance or application mode
> > - Enable voice interface
> >
> > I think that interfaces can be enabled in DAI init as Mark suggests,
>
> Yes, but i worry about whether this reg value can be changed on the fly
> or not.

I believe this needs codec off/on

>
> > but input/output should be enabled depending on whether we are doing
> > playback/capture or not, and then they should be handled in the codec
> > driver.
>
> Hmm, the twl4030 codec can do the voice communication at the same time
> while doing playback/capture, is not it?

I think he means the bits in the OPTION register.
The Option1 code toggles some of the bits in case of 4 channel mode.
Same thing can be done for Option2 voice operation I think.

>
> > For the codec operation mode selection, I still think Peter's
> > advice is more appropriate because options1,2 are not really tight to
> > DAIs. For example, we can be in option2 (voice/audio) and do
> > transferences using both DAIs: I2S and PCM.

-- 
Péter
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2009-05-15 11:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15  8:21 How to set TWL4030 to Option2 Lopez Cruz, Misael
2009-05-15  8:37 ` Peter Ujfalusi
2009-05-15  9:36 ` Joonyoung Shim
2009-05-15  9:45   ` Mark Brown
2009-05-15 10:05     ` Lopez Cruz, Misael
2009-05-15 11:00       ` Joonyoung Shim
2009-05-15 11:09         ` Peter Ujfalusi [this message]
2009-05-15 16:58           ` Lopez Cruz, Misael
2009-05-15 10:13     ` Joonyoung Shim
2009-05-15 10:35       ` Mark Brown
2009-05-15 10:51         ` Joonyoung Shim

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=200905151409.13619.peter.ujfalusi@nokia.com \
    --to=peter.ujfalusi@nokia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jy0922.shim@samsung.com \
    --cc=x0052729@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.