ALSA: firewire-motu: add support for MOTU 4pre
[linux-2.6-block.git] / sound / firewire / motu / motu.c
index 03cda2166ea3dc0993b2a56bcdefb47135c13e4b..72908b4de77c01edd469a9e0c2dc8ac5564688a7 100644 (file)
@@ -247,6 +247,17 @@ static const struct snd_motu_spec motu_audio_express = {
        .analog_out_ports = 4,
 };
 
+static const struct snd_motu_spec motu_4pre = {
+       .name = "4pre",
+       .protocol = &snd_motu_protocol_v3,
+       .flags = SND_MOTU_SPEC_SUPPORT_CLOCK_X2 |
+                SND_MOTU_SPEC_TX_MICINST_CHUNK |
+                SND_MOTU_SPEC_TX_RETURN_CHUNK |
+                SND_MOTU_SPEC_RX_SEPARETED_MAIN,
+       .analog_in_ports = 2,
+       .analog_out_ports = 2,
+};
+
 #define SND_MOTU_DEV_ENTRY(model, data)                        \
 {                                                      \
        .match_flags    = IEEE1394_MATCH_VENDOR_ID |    \
@@ -265,6 +276,7 @@ static const struct ieee1394_device_id motu_id_table[] = {
        SND_MOTU_DEV_ENTRY(0x000015, &motu_828mk3),     /* FireWire only. */
        SND_MOTU_DEV_ENTRY(0x000035, &motu_828mk3),     /* Hybrid. */
        SND_MOTU_DEV_ENTRY(0x000033, &motu_audio_express),
+       SND_MOTU_DEV_ENTRY(0x000045, &motu_4pre),
        { }
 };
 MODULE_DEVICE_TABLE(ieee1394, motu_id_table);