]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: odroidx2: Handle I2S CDCLK clock conditionally
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 14 Jan 2015 18:42:37 +0000 (19:42 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jan 2015 19:46:54 +0000 (19:46 +0000)
commit2698216c57aeac1a6bfdeb07886930b111f05a77
tree339ec79a5c4cad5f9abb7c0893c084bf57626fed
parent12382d2235595afcf2488b8e2cb7e6fb4631bc9b
ASoC: samsung: odroidx2: Handle I2S CDCLK clock conditionally

In order to support old DTs we check the codec device node if it
contains "clocks" property and only if it doesn't (which indicates
an old DT) we proceed with enabling the CDCLK clock by means of
the set_sysclk() callback.  For new DTs which use the common clock
bindings for CDCLK that clock is supposed to be handled outside
the sound machine driver.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/odroidx2_max98090.c