On Tue, May 17, 2016 at 04:43:33PM -0700, Nicolin Chen wrote:
In this case, would it be more appropriate to create one single DAI with channels_max = 4 over here?
Yes.
Another question is for its TDM support. This chip outputs 4-channel data on two data output pins (SDOUT1 and SDOUT2) as normal mode; it outputs 4-channel data on one data output pin (SDOUT1) as TDM mode. However, the mode selection for a 4-channel recording should depend on the hardware design: whether the SDOUT2 is connected or not. So I am wondering if there is a common way or existing way to indicate this hardware design. Or just by simply defining a new DT property?
That's a really rare thing to have as an option, most things either do TDM or parallel data signals but not both.