diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-10-01 16:02:12 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-02 19:17:00 +0300 |
commit | 6f81ba19ace2282f2560f5ec3a827ec5370825cb (patch) | |
tree | 24fb5eb0c58e5f9a365cf0a072a9b2bef07b54e7 /sound/firewire/tascam/tascam.h | |
parent | c0949b278515da948597b4a1a2726f42591ef385 (diff) | |
download | linux-6f81ba19ace2282f2560f5ec3a827ec5370825cb.tar.xz |
ALSA: firewire-tascam: add a structure for model-dependent parameters.
TASCAM FireWire series doesn't tell drivers their capabilities, thus
the drivers should have model-dependent parameters and apply it to
detected devices.
This commit adds a structure to represent such parameters.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/tascam/tascam.h')
-rw-r--r-- | sound/firewire/tascam/tascam.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/firewire/tascam/tascam.h b/sound/firewire/tascam/tascam.h index d2f4f67cf636..e12f8b55b8cd 100644 --- a/sound/firewire/tascam/tascam.h +++ b/sound/firewire/tascam/tascam.h @@ -23,11 +23,24 @@ #include "../lib.h" +struct snd_tscm_spec { + const char *const name; + bool has_adat; + bool has_spdif; + unsigned int pcm_capture_analog_channels; + unsigned int pcm_playback_analog_channels; + unsigned int midi_capture_ports; + unsigned int midi_playback_ports; + bool is_controller; +}; + struct snd_tscm { struct snd_card *card; struct fw_unit *unit; struct mutex mutex; + + const struct snd_tscm_spec *spec; }; #endif |