]> 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)
commitad4e9cb3ba305347a51a2fcbf07f498f97f35e2a
tree5d1a9b68d843786eb865eacbdfca12afc25e3ba8
parent186dcbb39b6318e999ae23f8adab7445c7e89533
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