ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()
authorKirill Marinushkin <k.marinushkin@gmail.com>
Wed, 4 Apr 2018 04:19:37 +0000 (06:19 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 Apr 2018 16:52:16 +0000 (17:52 +0100)
commita941e2fab3207cb0d57dc4ec47b1b12c8ea78b84
treea2bb2fc79d79740ae32ffd8b8c11fc696139d1e1
parent8a2278b7fb3df67cd415c679ba1a0e5e4a1761a7
ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

The values of bclk and fsync are inverted WRT the codec. But the existing
solution already works for Broadwell, see the alsa-lib config:

`alsa-lib/src/conf/topology/broadwell/broadwell.conf`

This commit provides the backwards-compatible solution to fix this misuse.

Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tested-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: linux-kernel@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h
sound/soc/soc-topology.c