ASoC: simple-card: Remove support for setting differing DAI formats
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 24 Mar 2015 01:07:08 +0000 (01:07 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 01:35:48 +0000 (18:35 -0700)
commit1efb53a220b78fdfdbb97b726a2156713e75bdab
tree5d1a9b68d843786eb865eacbdfca12afc25e3ba8
parent947a37cd38796f5b196a934353165a001cbcb0a9
ASoC: simple-card: Remove support for setting differing DAI formats

Having to set different formats on the CPU side and the CODEC side of a DAI
link is usually indication that something is terribly wrong and in most
cases is a result of a broken driver that implements a set_fmt() callback
which does not follow the specification. In the past this feature has been
used to work around broken drivers, rather than fixing them. We don't really
want to encourage this, so remove support for setting different formats on
both ends of the link.

Along the way switch to static DAI format setup by setting the the dai_fmt
field of the snd_soc_dai_link rather than calling snd_soc_dai_fmt().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card.h
sound/soc/generic/simple-card.c