ASoC: mxs-sgtl5000: add record function
authorDong Aisheng <b29396@freescale.com>
Sun, 21 Aug 2011 16:02:46 +0000 (00:02 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Aug 2011 22:36:15 +0000 (23:36 +0100)
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mxs/mxs-sgtl5000.c

index a0d89c93df0fc1df40aca23ef00840932c3560ca..7fbeaec06eb4d514fdebb8aef5e4e1e568489b4c 100644 (file)
@@ -85,13 +85,21 @@ static struct snd_soc_ops mxs_sgtl5000_hifi_ops = {
 
 static struct snd_soc_dai_link mxs_sgtl5000_dai[] = {
        {
-               .name           = "HiFi",
+               .name           = "HiFi Tx",
                .stream_name    = "HiFi Playback",
                .codec_dai_name = "sgtl5000",
                .codec_name     = "sgtl5000.0-000a",
                .cpu_dai_name   = "mxs-saif.0",
                .platform_name  = "mxs-pcm-audio.0",
                .ops            = &mxs_sgtl5000_hifi_ops,
+       }, {
+               .name           = "HiFi Rx",
+               .stream_name    = "HiFi Capture",
+               .codec_dai_name = "sgtl5000",
+               .codec_name     = "sgtl5000.0-000a",
+               .cpu_dai_name   = "mxs-saif.1",
+               .platform_name  = "mxs-pcm-audio.1",
+               .ops            = &mxs_sgtl5000_hifi_ops,
        },
 };