On Mon, Apr 02, 2012 at 07:01:00PM -0700, Kuninori Morimoto wrote:
I'd expect that these should always be the same, it's probably as well to just have one format and then require anyone who wants anything unusual to handle it.
This codec_fmt/cpu_fmt is not only audio formats. It selects clock master / signal inversions... These are depend on platform.
Right, they should be configured by the platform - it's just that if they are configured I'd expect them to be the same for both ends of the link.
And, FSI can use SPDIF format (it doesn't have SND_SOC_DAIFMT_xxx format).
For this case we should just be able to handle having no format specified by the platform I think?
This is a little bit complex... but is it OK ?
I think we should be able to avoid having a CODEC or CPU specific format at all.