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.