OSDN Git Service

ASoC: snd_soc_component_driver has endianness
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 11 Oct 2017 01:38:29 +0000 (01:38 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 23 Oct 2017 09:38:59 +0000 (11:38 +0200)
commit273d778ef38a8861f880e9df5799029dc82bd55d
treefa55ea50808e9515c9c2cb6cfc73b7575bfa438e
parentfbb16563c6c2b7fc4944adc49f93c1dc6fe25770
ASoC: snd_soc_component_driver has endianness

Codec will be replaced into Component, then Codec side only
needs to call fixup_codec_formats() at this point.

This patch adds new endianness flag on Component driver
and call convert_endianness_formats() (= was fixup_codec_format())
if endianness was true.

When Codec is replaced into Component, Codec driver needs
to have endianness = 1 flags.
Existing CPU side of course doesn't have this flag, thus CPU doesn't
call it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c