OSDN Git Service

ASoC: make clock direction configurable in asoc-simple
authorVitaly Wool <vitalywool@gmail.com>
Thu, 17 Aug 2017 11:42:36 +0000 (13:42 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 1 Sep 2017 10:34:23 +0000 (11:34 +0100)
commita728f56094e7cf60a1dc0642fe86901d1a4dfb4e
tree0474d29ca412711f5bd23b9456c90407b6d04f33
parent0995fb7c9802dd76422db384991f32296f8fbe1f
ASoC: make clock direction configurable in asoc-simple

Some CPU drivers (e. g. davinci-mcasp) may require the system clock to
be configured as OUT, while there's no good way currently to set
SND_SOC_CLK_OUT in simple-soc driver if the clock is fixed-rate.

This patch makes asoc_simple_card_init_dai() initialize clock to
SND_SOCK_CLK_OUT if explicitly stated in the relevant dts file. This
change is transparent and doesn't change the default behavior.

Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/simple-card.txt
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c