Takashi Sakamoto | b5b0433 | 2014-04-25 22:45:00 +0900 | [diff] [blame^] | 1 | /* |
| 2 | * fireworks.h - a part of driver for Fireworks based devices |
| 3 | * |
| 4 | * Copyright (c) 2009-2010 Clemens Ladisch |
| 5 | * Copyright (c) 2013-2014 Takashi Sakamoto |
| 6 | * |
| 7 | * Licensed under the terms of the GNU General Public License, version 2. |
| 8 | */ |
| 9 | #ifndef SOUND_FIREWORKS_H_INCLUDED |
| 10 | #define SOUND_FIREWORKS_H_INCLUDED |
| 11 | |
| 12 | #include <linux/compat.h> |
| 13 | #include <linux/device.h> |
| 14 | #include <linux/firewire.h> |
| 15 | #include <linux/firewire-constants.h> |
| 16 | #include <linux/module.h> |
| 17 | #include <linux/mod_devicetable.h> |
| 18 | #include <linux/delay.h> |
| 19 | #include <linux/slab.h> |
| 20 | |
| 21 | #include <sound/core.h> |
| 22 | #include <sound/initval.h> |
| 23 | |
| 24 | struct snd_efw { |
| 25 | struct snd_card *card; |
| 26 | struct fw_unit *unit; |
| 27 | int card_index; |
| 28 | |
| 29 | struct mutex mutex; |
| 30 | spinlock_t lock; |
| 31 | }; |
| 32 | |
| 33 | #define SND_EFW_DEV_ENTRY(vendor, model) \ |
| 34 | { \ |
| 35 | .match_flags = IEEE1394_MATCH_VENDOR_ID | \ |
| 36 | IEEE1394_MATCH_MODEL_ID, \ |
| 37 | .vendor_id = vendor,\ |
| 38 | .model_id = model \ |
| 39 | } |
| 40 | |
| 41 | #endif |