Skip to content

Commit 1f65e66

Browse files
takaswietiwai
authored andcommitted
ALSA: fireface: add support for RME Fireface UFX (untested)
Fireface UFX was shipped by RME GmbH in 2010, and now discontinued. Although this model has some enhanced feature which Fireface 802 doesn't have (e.g. on-board USB mass storage device class, configuration interface with color display), the functionality relevant to packet communication on IEEE 1394 bus seems to be the same as Fireface 802 (e.g. available number of channels for PCM frame in each sampling transfer frequency). With the assumption, this commit adds support for Fireface UFX. In ALSA fireface driver, these two models are handled as the same one. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20200510074301.116224-7-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 062bb45 commit 1f65e66

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎sound/firewire/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ config SND_FIREFACE
164164
Say Y here to include support for RME fireface series.
165165
* Fireface 400
166166
* Fireface 800
167+
* Fireface UFX
167168
* Fireface UCX
168169
* Fireface 802
169170

‎sound/firewire/fireface/ff-protocol-latter.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static int latter_begin_session(struct snd_ff *ff, unsigned int rate)
199199
else
200200
return -EINVAL;
201201
} else {
202-
// For Fireface 802. Due to bandwidth limitation on
202+
// For Fireface UFX and 802. Due to bandwidth limitation on
203203
// IEEE 1394a (400 Mbps), Analog 1-12 and AES are available
204204
// without any ADAT at quadruple speed.
205205
if (rate >= 32000 && rate <= 48000)

‎sound/firewire/fireface/ff.c‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static void name_card(struct snd_ff *ff)
1919
const char *const names[] = {
2020
[SND_FF_UNIT_VERSION_FF800] = "Fireface800",
2121
[SND_FF_UNIT_VERSION_FF400] = "Fireface400",
22+
[SND_FF_UNIT_VERSION_UFX] = "FirefaceUFX",
2223
[SND_FF_UNIT_VERSION_UCX] = "FirefaceUCX",
2324
[SND_FF_UNIT_VERSION_802] = "Fireface802",
2425
};
@@ -187,7 +188,7 @@ static const struct snd_ff_spec spec_ucx = {
187188
.midi_rx_addrs = {0xffff00000030ull, 0xffff00000030ull},
188189
};
189190

190-
static const struct snd_ff_spec spec_802 = {
191+
static const struct snd_ff_spec spec_ufx_802 = {
191192
.pcm_capture_channels = {30, 22, 14},
192193
.pcm_playback_channels = {30, 22, 14},
193194
.midi_in_ports = 1,
@@ -223,6 +224,18 @@ static const struct ieee1394_device_id snd_ff_id_table[] = {
223224
.model_id = 0x101800,
224225
.driver_data = (kernel_ulong_t)&spec_ff400,
225226
},
227+
// Fireface UFX.
228+
{
229+
.match_flags = IEEE1394_MATCH_VENDOR_ID |
230+
IEEE1394_MATCH_SPECIFIER_ID |
231+
IEEE1394_MATCH_VERSION |
232+
IEEE1394_MATCH_MODEL_ID,
233+
.vendor_id = OUI_RME,
234+
.specifier_id = OUI_RME,
235+
.version = SND_FF_UNIT_VERSION_UFX,
236+
.model_id = 0x101800,
237+
.driver_data = (kernel_ulong_t)&spec_ufx_802,
238+
},
226239
// Fireface UCX.
227240
{
228241
.match_flags = IEEE1394_MATCH_VENDOR_ID |
@@ -245,7 +258,7 @@ static const struct ieee1394_device_id snd_ff_id_table[] = {
245258
.specifier_id = OUI_RME,
246259
.version = SND_FF_UNIT_VERSION_802,
247260
.model_id = 0x101800,
248-
.driver_data = (kernel_ulong_t)&spec_802,
261+
.driver_data = (kernel_ulong_t)&spec_ufx_802,
249262
},
250263
{}
251264
};

‎sound/firewire/fireface/ff.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
enum snd_ff_unit_version {
3838
SND_FF_UNIT_VERSION_FF800 = 0x000001,
3939
SND_FF_UNIT_VERSION_FF400 = 0x000002,
40+
SND_FF_UNIT_VERSION_UFX = 0x000003,
4041
SND_FF_UNIT_VERSION_UCX = 0x000004,
4142
SND_FF_UNIT_VERSION_802 = 0x000005,
4243
};

0 commit comments

Comments
 (0)