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)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jul 2020 18:44:59 +0000 (19:44 +0100)
commit6878ba91ce84f7a07887a0615af70f969508839f
treeed8775e9c3490311d66e1c996fe3b098b0413ed7
parentdc5fb6d2e8dff0dd61c9b55508c46e73a67e9ea8
ASoC: meson: axg-tdm-interface: fix link fmt setup

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>
sound/soc/meson/axg-tdm-interface.c