summaryrefslogtreecommitdiff
path: root/sound/firewire/fireface/ff.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/firewire/fireface/ff.c')
-rw-r--r--sound/firewire/fireface/ff.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/sound/firewire/fireface/ff.c b/sound/firewire/fireface/ff.c
index c09a4875aa86..a2a9fd82f27d 100644
--- a/sound/firewire/fireface/ff.c
+++ b/sound/firewire/fireface/ff.c
@@ -32,8 +32,7 @@ static void ff_card_free(struct snd_card *card)
struct snd_ff *ff = card->private_data;
snd_ff_stream_destroy_duplex(ff);
- if (ff->spec->midi_high_addr > 0)
- snd_ff_transaction_unregister(ff);
+ snd_ff_transaction_unregister(ff);
}
static void do_registration(struct work_struct *work)
@@ -51,11 +50,9 @@ static void do_registration(struct work_struct *work)
ff->card->private_free = ff_card_free;
ff->card->private_data = ff;
- if (ff->spec->midi_high_addr > 0) {
- err = snd_ff_transaction_register(ff);
- if (err < 0)
- goto error;
- }
+ err = snd_ff_transaction_register(ff);
+ if (err < 0)
+ goto error;
name_card(ff);
@@ -65,11 +62,9 @@ static void do_registration(struct work_struct *work)
snd_ff_proc_init(ff);
- if (ff->spec->midi_in_ports > 0 || ff->spec->midi_out_ports > 0) {
- err = snd_ff_create_midi_devices(ff);
- if (err < 0)
- goto error;
- }
+ err = snd_ff_create_midi_devices(ff);
+ if (err < 0)
+ goto error;
err = snd_ff_create_pcm_devices(ff);
if (err < 0)
@@ -124,8 +119,7 @@ static void snd_ff_update(struct fw_unit *unit)
if (!ff->registered)
snd_fw_schedule_registration(unit, &ff->dwork);
- if (ff->spec->midi_high_addr > 0)
- snd_ff_transaction_reregister(ff);
+ snd_ff_transaction_reregister(ff);
if (ff->registered)
snd_ff_stream_update_duplex(ff);
@@ -177,7 +171,10 @@ static const struct snd_ff_spec spec_ucx = {
.name = "FirefaceUCX",
.pcm_capture_channels = {18, 14, 12},
.pcm_playback_channels = {18, 14, 12},
+ .midi_in_ports = 2,
.protocol = &snd_ff_protocol_latter,
+ .midi_high_addr = 0xffff00000034ull,
+ .midi_addr_range = 0x80,
};
static const struct ieee1394_device_id snd_ff_id_table[] = {