]> Pileus Git - ~andy/linux/commitdiff
ASoC: fsl_ssi: We do support master mode now
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 20 Jan 2014 19:35:40 +0000 (17:35 -0200)
committerMark Brown <broonie@linaro.org>
Tue, 21 Jan 2014 18:48:00 +0000 (18:48 +0000)
Since commit aafa85e71a (ASoC: fsl_ssi: Add DAI master mode support for SSI on
i.MX series) master mode is supported, so update the comments and code to
reflect that.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_ssi.c

index f9090b167ad7c1ba2c3e91f1af2e042356c25841..c5205690791e3426e08783bb50fd3cc800010fee 100644 (file)
@@ -1262,18 +1262,13 @@ static int fsl_ssi_probe(struct platform_device *pdev)
                return -EINVAL;
        hw_type = (enum fsl_ssi_type) of_id->data;
 
-       /* We only support the SSI in "I2S Slave" mode */
        sprop = of_get_property(np, "fsl,mode", NULL);
        if (!sprop) {
                dev_err(&pdev->dev, "fsl,mode property is necessary\n");
                return -EINVAL;
        }
-       if (!strcmp(sprop, "ac97-slave")) {
+       if (!strcmp(sprop, "ac97-slave"))
                ac97 = true;
-       } else if (strcmp(sprop, "i2s-slave")) {
-               dev_notice(&pdev->dev, "mode %s is unsupported\n", sprop);
-               return -ENODEV;
-       }
 
        /* The DAI name is the last part of the full name of the node. */
        p = strrchr(np->full_name, '/') + 1;