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)
commit172fd9e26200668ebaf3e1d6d09b36d5d531bfa6
tree882a34484549fc258e0eca25dbf7588bcfb4fd13
parent7629ad24f2b3df95c8b4cd8869e3c04e1df6c442
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