]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: snd-aoa: enable sound on PowerBook G4 12"
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 24 Aug 2016 17:57:47 +0000 (20:57 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 Aug 2016 14:48:54 +0000 (16:48 +0200)
Enable sound on PowerBook G4 12".

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/fabrics/layout.c
sound/aoa/soundbus/i2sbus/core.c

index 8f71f7e4d96604915d837df191eebfa5bd6c2414..edc868196e117f68a7e66409cb6d0a71368aa9d6 100644 (file)
@@ -112,6 +112,7 @@ MODULE_ALIAS("sound-layout-100");
 
 MODULE_ALIAS("aoa-device-id-14");
 MODULE_ALIAS("aoa-device-id-22");
+MODULE_ALIAS("aoa-device-id-31");
 MODULE_ALIAS("aoa-device-id-35");
 MODULE_ALIAS("aoa-device-id-44");
 
@@ -362,6 +363,13 @@ static struct layout layouts[] = {
                .connections = tas_connections_nolineout,
          },
        },
+       /* PowerBook6,1 */
+       { .device_id = 31,
+         .codecs[0] = {
+               .name = "tas",
+               .connections = tas_connections_nolineout,
+         },
+       },
        /* PowerBook6,5 */
        { .device_id = 44,
          .codecs[0] = {
index 1cbf210080a16c47237f97067c2185eb4f144a23..000b5852210634a666b60cdc6ed2d99e6942b90a 100644 (file)
@@ -197,7 +197,7 @@ static int i2sbus_add_dev(struct macio_dev *macio,
                         * so restrict to those we do handle for now.
                         */
                        if (id && (*id == 22 || *id == 14 || *id == 35 ||
-                                  *id == 44)) {
+                                  *id == 31 || *id == 44)) {
                                snprintf(dev->sound.modalias, 32,
                                         "aoa-device-id-%d", *id);
                                ok = 1;