On 2/27/18 12:33 PM, Kirill Marinushkin wrote:
Hello Mark, Pierre-Louis, Pan, Liam,
As there are too much open questions regarding the bclk and fsync inversion in set_link_hw_format(), I would like to suggest the alternative solution.
This solution will fit both use-cases:
- existing use-cases (Broadwell, etc.)
- new use-cases (Sound Open Firmware, etc.)
The solution includes 1 patch for linux + 1 patch for alsa-lib. I will send them to this mailing thread.
That looks acceptable to me, Xiuli can you test with with the matching change in the SOF topology macros (we can keep the 'slave' in M4 files but expand to 'codec_slave' in the .conf to avoid making this exception visible).
Signed-off-by: Kirill Marinushkin k.marinushkin@gmail.com Cc: Mark Brown broonie@kernel.org Cc: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com Cc: Pan Xiuli xiuli.pan@linux.intel.com Cc: Liam Girdwood liam.r.girdwood@linux.intel.com Cc: linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org
Kirill Marinushkin (1): ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()
include/uapi/sound/asoc.h | 16 ++++++++++++++-- sound/soc/soc-topology.c | 12 +++++++----- 2 files changed, 21 insertions(+), 7 deletions(-)