diff options
Diffstat (limited to 'sound/isa/wavefront/wavefront_fx.c')
-rw-r--r-- | sound/isa/wavefront/wavefront_fx.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sound/isa/wavefront/wavefront_fx.c b/sound/isa/wavefront/wavefront_fx.c index dfc449a2194e..a4345fc07561 100644 --- a/sound/isa/wavefront/wavefront_fx.c +++ b/sound/isa/wavefront/wavefront_fx.c | |||
@@ -34,14 +34,6 @@ | |||
34 | 34 | ||
35 | #define WAIT_IDLE 0xff | 35 | #define WAIT_IDLE 0xff |
36 | 36 | ||
37 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
38 | #include "yss225.c" | ||
39 | static const struct firmware yss225_registers_firmware = { | ||
40 | .data = (u8 *)yss225_registers, | ||
41 | .size = sizeof yss225_registers | ||
42 | }; | ||
43 | #endif | ||
44 | |||
45 | static int | 37 | static int |
46 | wavefront_fx_idle (snd_wavefront_t *dev) | 38 | wavefront_fx_idle (snd_wavefront_t *dev) |
47 | 39 | ||
@@ -260,16 +252,12 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
260 | if (dev->fx_initialized) | 252 | if (dev->fx_initialized) |
261 | return 0; | 253 | return 0; |
262 | 254 | ||
263 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
264 | firmware = &yss225_registers_firmware; | ||
265 | #else | ||
266 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", | 255 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", |
267 | dev->card->dev); | 256 | dev->card->dev); |
268 | if (err < 0) { | 257 | if (err < 0) { |
269 | err = -1; | 258 | err = -1; |
270 | goto out; | 259 | goto out; |
271 | } | 260 | } |
272 | #endif | ||
273 | 261 | ||
274 | for (i = 0; i + 1 < firmware->size; i += 2) { | 262 | for (i = 0; i + 1 < firmware->size; i += 2) { |
275 | if (firmware->data[i] >= 8 && firmware->data[i] < 16) { | 263 | if (firmware->data[i] >= 8 && firmware->data[i] < 16) { |
@@ -292,12 +280,8 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
292 | err = 0; | 280 | err = 0; |
293 | 281 | ||
294 | out: | 282 | out: |
295 | #ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
296 | release_firmware(firmware); | 283 | release_firmware(firmware); |
297 | #endif | ||
298 | return err; | 284 | return err; |
299 | } | 285 | } |
300 | 286 | ||
301 | #ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
302 | MODULE_FIRMWARE("yamaha/yss225_registers.bin"); | 287 | MODULE_FIRMWARE("yamaha/yss225_registers.bin"); |
303 | #endif | ||