]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0232611ab8b2dc60eeb91c052e68929efc689bc
tree5d1a9b68d843786eb865eacbdfca12afc25e3ba8
parentf99009730251b5de9ad136e62022ddef1bc5d477
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