]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: i2s: Fix multiple "IIS multi" devices initialization
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 19 Feb 2019 15:19:41 +0000 (16:19 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Feb 2019 15:49:42 +0000 (15:49 +0000)
commitf188f408c92fb3db7294b92c2254cfcfc6e12820
treea836514595964d7d3c072976d5d57fb5a49e9b49
parent4ad06d9685a736e1c5b5644bfc0bb23a8b6fa494
ASoC: samsung: i2s: Fix multiple "IIS multi" devices initialization

On some SoCs (e.g. Exynos5433) there are multiple "IIS multi audio
interfaces" and the driver will try to register there multiple times
same platform device for the secondary FIFO, which of course fails
miserably.  To fix this we derive the secondary platform device name
from the primary device name. The secondary device name will now
be <primary_dev_name>-sec instead of fixed "samsung-i2s-sec".

The fixed platform_device_id table entry is removed as the secondary
device name is now dynamic and device/driver matching is done through
driver_override.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com>
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
sound/soc/samsung/odroid.c