[alsa-devel] How to set TWL4030 to Option2

Lopez Cruz, Misael x0052729 at ti.com
Fri May 15 18:58:31 CEST 2009

> > > 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

As per TRM, neither OPT_MODE nor sampling rates while affected filter
is running can't be change on-the-fly.

> > > 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.

I meant that in option2, we can use I2S DAI and/or PCM DAI, not only
PCM/Voice DAI.

More information about the Alsa-devel mailing list