]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix S3C64xx IIS device registration and support both ports
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Apr 2009 15:33:10 +0000 (16:33 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Apr 2009 16:39:38 +0000 (17:39 +0100)
commit39bc669de36f980453ab47d6dc91740850125625
tree882a34484549fc258e0eca25dbf7588bcfb4fd13
parent5f2596006e3f169f6494c20dbaf6fbdce70bb23b
ASoC: Fix S3C64xx IIS device registration and support both ports

The S3C64xx IIS code had a number of problems with device registration.
The hardware has two IIS ports of which the driver supported only one
at once via a single exported DAI, attempting to identify the DAI to
use based on the dev->id of the ASoC platform device.  As well as
limiting the driver to only supporting one IIS port at once this also
meant that the ID of the soc-audio device (or in future the card device)
had to match the IIS ID.

Fix both problems by converting the driver to register the DAIs based on
probing of platform devices registered by the arch/arm code, using those
platform devices to interact with the clock API.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/s3c24xx/s3c64xx-i2s.c
sound/soc/s3c24xx/s3c64xx-i2s.h