ALSA: oxfw: add scs1x layer
[deliverable/linux.git] / sound / firewire / oxfw / oxfw-scs1x.c
1 /*
2 * oxfw-scs1x.c - a part of driver for OXFW970/971 based devices
3 *
4 * Copyright (c) Clemens Ladisch <clemens@ladisch.de>
5 * Copyright (c) 2015 Takashi Sakamoto <o-takashi@sakamocchi.jp>
6 *
7 * Licensed under the terms of the GNU General Public License, version 2.
8 */
9
10 #include "oxfw.h"
11
12 int snd_oxfw_scs1x_add(struct snd_oxfw *oxfw)
13 {
14 struct snd_rawmidi *rmidi;
15 int err;
16
17 /* Use unique name for backward compatibility to scs1x module. */
18 err = snd_rawmidi_new(oxfw->card, "SCS.1x", 0, 0, 0, &rmidi);
19 if (err < 0)
20 return err;
21
22 snprintf(rmidi->name, sizeof(rmidi->name),
23 "%s MIDI", oxfw->card->shortname);
24
25 return err;
26 }
This page took 0.033015 seconds and 5 git commands to generate.