]> Pileus Git - ~andy/linux/commitdiff
ASoC imx-audmux: add MX31_AUDMUX_PORT7_SSI_PINS_7 define
authorTorben Hohn <torbenh@linutronix.de>
Wed, 18 Jul 2012 13:01:17 +0000 (15:01 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Jul 2012 21:09:40 +0000 (22:09 +0100)
The MX31 Audmux also has 7 Ports.
This patch adds the missing define, and makes the debugfs code iterate
over that port too.

Signed-off-by: Torben Hohn <torbenh@linutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/imx-audmux.c
sound/soc/fsl/imx-audmux.h

index 080327414c6b61da37d62a845261e93f413864fa..e7c800ebbd7559e53a24ba2488e8b5eb5981826f 100644 (file)
@@ -156,7 +156,7 @@ static void __init audmux_debugfs_init(void)
                return;
        }
 
-       for (i = 0; i < MX31_AUDMUX_PORT6_SSI_PINS_6 + 1; i++) {
+       for (i = 0; i < MX31_AUDMUX_PORT7_SSI_PINS_7 + 1; i++) {
                snprintf(buf, sizeof(buf), "ssi%d", i);
                if (!debugfs_create_file(buf, 0444, audmux_debugfs_root,
                                         (void *)i, &audmux_debugfs_fops))
index 04ebbab8d7b98ab521e01f91b395506893510431..b8ff44b9dafaaaeecd1a5c9fbc0ab4efd0e69b6b 100644 (file)
@@ -14,6 +14,7 @@
 #define MX31_AUDMUX_PORT4_SSI_PINS_4   3
 #define MX31_AUDMUX_PORT5_SSI_PINS_5   4
 #define MX31_AUDMUX_PORT6_SSI_PINS_6   5
+#define MX31_AUDMUX_PORT7_SSI_PINS_7   6
 
 #define MX51_AUDMUX_PORT1_SSI0         0
 #define MX51_AUDMUX_PORT2_SSI1         1