ASoC: sun8i-codec: Invert Master / Slave condition
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 8 Nov 2017 15:47:08 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:49 +0000 (08:40 +0000)
commit0bc4abfb872532fd567397ed414b3336f6df7971
treeaf3f201cc66ef4fe1d1cc0092e0c976d09554867
parentb177556318a731878a1e9e8a9bb28b98f7bc832c
ASoC: sun8i-codec: Invert Master / Slave condition

commit 560bfe774f058e97596f30ff71cffdac52b72914 upstream.

The current code had the condition backward when checking if the codec
should be running in slave or master mode.

Fix it, and make the comment a bit more readable.

Fixes: 36c684936fae ("ASoC: Add sun8i digital audio codec")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sunxi/sun8i-codec.c