ALSA: dice: add support for TASCAM IF-FW/DM MkII
Takashi Sakamoto
maintainerPATCH 1/1 ALSA: dice: add support for TASCAM IF-FW/DM MkII
TEAC Corporation launched IF-FW/DM MkII as an add-in card for TASCAM DM-3200 and DM-4800. This card uses TC Applied Technologies DICE II ASIC.
This commit supports the add-in card. The configuration ROM content includes some quirks:
- The category value stored in chip_ID_hi field of bus information block is zero.
- The value of model in unit directory (0x00022e) is different from the one in root directory (0x000006).
The hardware allows users to select the total number of audio data channels available for system from 16 and 32 channels for both input and output direction. In 16-channel mode, all audio data are transferred in a single isochronous packet stream, while in 32-channel mode, they are transferred across two streams. After the user changes the channel configuration on the hardware panel, the device temporarily disappears from the bus and reappears with the new stream formats. During device probing the ALSA dice driver checks the number of available isochronous packet streams to determine the active mode of the hardware.
--- sound/firewire/dice/Makefile | 2 +- sound/firewire/dice/dice-teac.c | 43 +++++++++++++++++++++++++++++++++ sound/firewire/dice/dice.c | 13 ++++++++++ sound/firewire/dice/dice.h | 1 + 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 sound/firewire/dice/dice-teac.c
sound/firewire/dice/Makefile +1 -1
@@ -2,5 +2,5 @@ snd-dice-y := dice-transaction.o dice-stream.o dice-proc.o dice-midi.o \ dice-pcm.o dice-hwdep.o dice.o dice-tcelectronic.o \ dice-alesis.o dice-extension.o dice-mytek.o dice-presonus.o \ - dice-harman.o dice-focusrite.o dice-weiss.o + dice-harman.o dice-focusrite.o dice-weiss.o dice-teac.o obj-$(CONFIG_SND_DICE) += snd-dice.o
sound/firewire/dice/dice-teac.c new file +43 -0
43 lines not on this page · raw message
sound/firewire/dice/dice.c +13 -0
@@ -22,6 +22,7 @@ MODULE_LICENSE("GPL");#define OUI_PRESONUS 0x000a92#define OUI_HARMAN 0x000fd7#define OUI_AVID 0x00a07e +#define OUI_TEAC 0x00022e#define DICE_CATEGORY_ID 0x04#define WEISS_CATEGORY_ID 0x00
@@ -458,6 +459,18 @@ static const struct ieee1394_device_id dice_id_table[] = { .match_flags = IEEE1394_MATCH_VERSION, .version = DICE_INTERFACE, }, +// Tascam IF-FW/DM MkII for DM-3200 and DM-4800. + { + .match_flags = IEEE1394_MATCH_VENDOR_ID | + IEEE1394_MATCH_MODEL_ID | + IEEE1394_MATCH_SPECIFIER_ID | + IEEE1394_MATCH_VERSION, + .vendor_id = OUI_TEAC, + .model_id = OUI_TEAC, + .specifier_id = OUI_TEAC, + .version = 0x800006, + .driver_data = (kernel_ulong_t)snd_dice_detect_teac_formats, + }, { } };MODULE_DEVICE_TABLE (ieee1394, dice_id_table);
sound/firewire/dice/dice.h +1 -0
@@ -233,5 +233,6 @@ int snd_dice_detect_presonus_formats(struct snd_dice *dice);int snd_dice_detect_harman_formats (struct snd_dice *dice);int snd_dice_detect_focusrite_pro40_tcd3070_formats (struct snd_dice *dice);int snd_dice_detect_weiss_formats (struct snd_dice *dice); +int snd_dice_detect_teac_formats (struct snd_dice *dice);#endif
base-commit: ec2e0fb07d789976c601bec19ecced7a501c3705
Signature · 1 line
2.51.0
Takashi Iwai
AppliedQuoted 23 lines · Takashi Sakamoto
TEAC Corporation launched IF-FW/DM MkII as an add-in card for TASCAM DM-3200 and DM-4800. This card uses TC Applied Technologies DICE II ASIC.
This commit supports the add-in card. The configuration ROM content includes some quirks:
- The category value stored in
chip_ID_hifield of bus information block is zero.
- The value of model in unit directory (0x00022e) is different from the one in root directory (0x000006).The hardware allows users to select the total number of audio data channels available for system from 16 and 32 channels for both input and output direction. In 16-channel mode, all audio data are transferred in a single isochronous packet stream, while in 32-channel mode, they are transferred across two streams. After the user changes the channel configuration on the hardware panel, the device temporarily disappears from the bus and reappears with the new stream formats. During device probing the ALSA dice driver checks the number of available isochronous packet streams to determine the active mode of the hardware.
Quoted 1 line
Signed-off-by Takashi Sakamoto <[email protected]>
Applied to for-next branch now. Thanks.
Takashi