OSDN Git Service

ASoC: samsung: i2s: Get rid of a static spinlock
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 14 Feb 2019 09:37:39 +0000 (10:37 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 13:05:31 +0000 (13:05 +0000)
commitdefc67c6e3638020cc6189d056e0bc187b297068
tree859575b5b35c9e527f855ed5232716ec1dd98ac7
parent5944170f497c8d8c93704c40d18e794351673a11
ASoC: samsung: i2s: Get rid of a static spinlock

This patch makes the spinlock serializing access to the primary/secondary
PCM a per I2S controller lock, rather than a global one. There is no need
to have a global lock across multiple I2S controllers in the SoC.

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