]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: meson: axg-tdm-interface: fix link fmt setup
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Jul 2020 15:44:53 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:04 +0000 (08:24 +0200)
commitb4a405dc7ac9fcaed5fd53b4fd96ee362c2c7545
tree42bc8e116a3c2f768ca63e333156542eea36eae8
parentbfc916b65b60298bd42cdaa8a7e315dc70c20662
ASoC: meson: axg-tdm-interface: fix link fmt setup

[ Upstream commit 6878ba91ce84f7a07887a0615af70f969508839f ]

The .set_fmt() callback of the axg tdm interface incorrectly
test the content of SND_SOC_DAIFMT_MASTER_MASK as if it was a
bitfield, which it is not.

Implement the test correctly.

Fixes: d60e4f1e4be5 ("ASoC: meson: add tdm interface driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200729154456.1983396-2-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/meson/axg-tdm-interface.c