ASoC: es8328: Add support for slave mode
authorRomain Perier <romain.perier@collabora.com>
Fri, 3 Feb 2017 14:37:57 +0000 (15:37 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 4 Feb 2017 12:16:31 +0000 (13:16 +0100)
commitb9b044e2967dd47f0ffe98b5a989fc99c684f6d2
treeb0869396c77ee65adda6933c5aef9260bafc99c1
parent5f166156dbd4c0cf85632799ee7330d24deeec4e
ASoC: es8328: Add support for slave mode

Currently, the function that changes the DAI format only supports master
mode. Trying to use a slave mode exits the function with -EINVAL and
leave the codec misconfigured. This commits adds support for enabling
the slave mode.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c