digi00x.c (9e8238020c5beba64e7ffafbb7ea0fb02fe68270) | digi00x.c (acd46a6b6de88569654567810acad2b0a0a25cea) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * digi00x.c - a part of driver for Digidesign Digi 002/003 family 4 * 5 * Copyright (c) 2014-2015 Takashi Sakamoto 6 */ 7 8#include "digi00x.h" 9 10MODULE_DESCRIPTION("Digidesign Digi 002/003 family Driver"); 11MODULE_AUTHOR("Takashi Sakamoto <o-takashi@sakamocchi.jp>"); 12MODULE_LICENSE("GPL v2"); 13 14#define VENDOR_DIGIDESIGN 0x00a07e 15#define MODEL_CONSOLE 0x000001 16#define MODEL_RACK 0x000002 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * digi00x.c - a part of driver for Digidesign Digi 002/003 family 4 * 5 * Copyright (c) 2014-2015 Takashi Sakamoto 6 */ 7 8#include "digi00x.h" 9 10MODULE_DESCRIPTION("Digidesign Digi 002/003 family Driver"); 11MODULE_AUTHOR("Takashi Sakamoto <o-takashi@sakamocchi.jp>"); 12MODULE_LICENSE("GPL v2"); 13 14#define VENDOR_DIGIDESIGN 0x00a07e 15#define MODEL_CONSOLE 0x000001 16#define MODEL_RACK 0x000002 |
17#define SPEC_VERSION 0x000001 |
|
17 18static int name_card(struct snd_dg00x *dg00x) 19{ 20 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); 21 char name[32] = {0}; 22 char *model; 23 int err; 24 --- 145 unchanged lines hidden (view full) --- 170 mutex_destroy(&dg00x->mutex); 171 fw_unit_put(dg00x->unit); 172} 173 174static const struct ieee1394_device_id snd_dg00x_id_table[] = { 175 /* Both of 002/003 use the same ID. */ 176 { 177 .match_flags = IEEE1394_MATCH_VENDOR_ID | | 18 19static int name_card(struct snd_dg00x *dg00x) 20{ 21 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); 22 char name[32] = {0}; 23 char *model; 24 int err; 25 --- 145 unchanged lines hidden (view full) --- 171 mutex_destroy(&dg00x->mutex); 172 fw_unit_put(dg00x->unit); 173} 174 175static const struct ieee1394_device_id snd_dg00x_id_table[] = { 176 /* Both of 002/003 use the same ID. */ 177 { 178 .match_flags = IEEE1394_MATCH_VENDOR_ID | |
179 IEEE1394_MATCH_VERSION | |
|
178 IEEE1394_MATCH_MODEL_ID, 179 .vendor_id = VENDOR_DIGIDESIGN, | 180 IEEE1394_MATCH_MODEL_ID, 181 .vendor_id = VENDOR_DIGIDESIGN, |
182 .version = SPEC_VERSION, |
|
180 .model_id = MODEL_CONSOLE, 181 }, 182 { 183 .match_flags = IEEE1394_MATCH_VENDOR_ID | | 183 .model_id = MODEL_CONSOLE, 184 }, 185 { 186 .match_flags = IEEE1394_MATCH_VENDOR_ID | |
187 IEEE1394_MATCH_VERSION | |
|
184 IEEE1394_MATCH_MODEL_ID, 185 .vendor_id = VENDOR_DIGIDESIGN, | 188 IEEE1394_MATCH_MODEL_ID, 189 .vendor_id = VENDOR_DIGIDESIGN, |
190 .version = SPEC_VERSION, |
|
186 .model_id = MODEL_RACK, 187 }, 188 {} 189}; 190MODULE_DEVICE_TABLE(ieee1394, snd_dg00x_id_table); 191 192static struct fw_driver dg00x_driver = { 193 .driver = { --- 22 unchanged lines hidden --- | 191 .model_id = MODEL_RACK, 192 }, 193 {} 194}; 195MODULE_DEVICE_TABLE(ieee1394, snd_dg00x_id_table); 196 197static struct fw_driver dg00x_driver = { 198 .driver = { --- 22 unchanged lines hidden --- |