oxfw.c (05588d340a128ff5c7b768c517150e31842a78aa) oxfw.c (8985f4ac1c42bd25799f294f4e87fa73064673c7)
1/*
2 * oxfw.c - a part of driver for OXFW970/971 based devices
3 *
4 * Copyright (c) Clemens Ladisch <clemens@ladisch.de>
5 * Licensed under the terms of the GNU General Public License, version 2.
6 */
7
8#include "oxfw.h"

--- 125 unchanged lines hidden (view full) ---

134
135 card->private_free = oxfw_card_free;
136 oxfw = card->private_data;
137 oxfw->card = card;
138 mutex_init(&oxfw->mutex);
139 oxfw->unit = unit;
140 oxfw->device_info = (const struct device_info *)id->driver_data;
141 spin_lock_init(&oxfw->lock);
1/*
2 * oxfw.c - a part of driver for OXFW970/971 based devices
3 *
4 * Copyright (c) Clemens Ladisch <clemens@ladisch.de>
5 * Licensed under the terms of the GNU General Public License, version 2.
6 */
7
8#include "oxfw.h"

--- 125 unchanged lines hidden (view full) ---

134
135 card->private_free = oxfw_card_free;
136 oxfw = card->private_data;
137 oxfw->card = card;
138 mutex_init(&oxfw->mutex);
139 oxfw->unit = unit;
140 oxfw->device_info = (const struct device_info *)id->driver_data;
141 spin_lock_init(&oxfw->lock);
142 init_waitqueue_head(&oxfw->hwdep_wait);
142
143 err = snd_oxfw_stream_discover(oxfw);
144 if (err < 0)
145 goto error;
146
147 err = name_card(oxfw);
148 if (err < 0)
149 goto error;

--- 9 unchanged lines hidden (view full) ---

159 }
160
161 snd_oxfw_proc_init(oxfw);
162
163 err = snd_oxfw_create_midi(oxfw);
164 if (err < 0)
165 goto error;
166
143
144 err = snd_oxfw_stream_discover(oxfw);
145 if (err < 0)
146 goto error;
147
148 err = name_card(oxfw);
149 if (err < 0)
150 goto error;

--- 9 unchanged lines hidden (view full) ---

160 }
161
162 snd_oxfw_proc_init(oxfw);
163
164 err = snd_oxfw_create_midi(oxfw);
165 if (err < 0)
166 goto error;
167
168 err = snd_oxfw_create_hwdep(oxfw);
169 if (err < 0)
170 goto error;
171
167 err = snd_oxfw_stream_init_simplex(oxfw, &oxfw->rx_stream);
168 if (err < 0)
169 goto error;
170 if (oxfw->has_output) {
171 err = snd_oxfw_stream_init_simplex(oxfw, &oxfw->tx_stream);
172 if (err < 0)
173 goto error;
174 }

--- 138 unchanged lines hidden ---
172 err = snd_oxfw_stream_init_simplex(oxfw, &oxfw->rx_stream);
173 if (err < 0)
174 goto error;
175 if (oxfw->has_output) {
176 err = snd_oxfw_stream_init_simplex(oxfw, &oxfw->tx_stream);
177 if (err < 0)
178 goto error;
179 }

--- 138 unchanged lines hidden ---