ASoC: dwc: add check for master/slave format
authorMaruthi Srinivas Bayyavarapu <Maruthi.Bayyavarapu@amd.com>
Fri, 23 Oct 2015 21:15:41 +0000 (17:15 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 23 Oct 2015 21:29:38 +0000 (06:29 +0900)
commitab57b8e90c658a72944c48a81a1352e61e84db02
tree3e425eb46f1fe598c204bcca88a98d08c713ad9d
parent1d957d862ac782eaf5803d4d4cf167708e4dc147
ASoC: dwc: add check for master/slave format

DW i2s controller's master/slave config can be read from a
read-only register. Machine driver can try to set a master/slave
format on cpu-dai using 'set_fmt' of dai ops. A check is added to
verify codec is master when dwc is slave and vice-versa.

Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/designware_i2s.c