diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-02-26 09:55:43 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-05-11 10:55:43 -0400 |
commit | 8ad2da1937168d48a84dcf6d5cc2001c0e4a6992 (patch) | |
tree | 6d3f73f922126c339532113a69b368e245d5c05a /sound/isa | |
parent | 8f7ba051d2abb3d3bde9b95e47246c60b704d2b4 (diff) |
[ALSA] Enable Kconfig options for external firmwares
Some drivers are already ifdefs for enabling external firmwares
but not defined in Kconfig. Now they appear as the kernel configs.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/Kconfig | 22 | ||||
-rw-r--r-- | sound/isa/sb/sb16_csp.c | 6 | ||||
-rw-r--r-- | sound/isa/wavefront/wavefront_fx.c | 8 |
3 files changed, 25 insertions, 11 deletions
diff --git a/sound/isa/Kconfig b/sound/isa/Kconfig index 4e3a9729f569..c855e350789a 100644 --- a/sound/isa/Kconfig +++ b/sound/isa/Kconfig | |||
@@ -358,12 +358,21 @@ config SND_SBAWE | |||
358 | config SND_SB16_CSP | 358 | config SND_SB16_CSP |
359 | bool "Sound Blaster 16/AWE CSP support" | 359 | bool "Sound Blaster 16/AWE CSP support" |
360 | depends on (SND_SB16 || SND_SBAWE) && (BROKEN || !PPC) | 360 | depends on (SND_SB16 || SND_SBAWE) && (BROKEN || !PPC) |
361 | select FW_LOADER | ||
362 | help | 361 | help |
363 | Say Y here to include support for the CSP core. This special | 362 | Say Y here to include support for the CSP core. This special |
364 | coprocessor can do variable tasks like various compression and | 363 | coprocessor can do variable tasks like various compression and |
365 | decompression algorithms. | 364 | decompression algorithms. |
366 | 365 | ||
366 | config SND_SB16_CSP_FIRMWARE_IN_KERNEL | ||
367 | bool "In-kernel firmware for SB16 CSP" | ||
368 | depends on SND_SB16_CSP | ||
369 | select FW_LOADER | ||
370 | default y | ||
371 | help | ||
372 | Say Y here to include the static firmware built in the kernel | ||
373 | for SB16 CSP controller. If you choose N here, the external | ||
374 | firmware files from alsa-plugins pacakge are necessary. | ||
375 | |||
367 | config SND_SGALAXY | 376 | config SND_SGALAXY |
368 | tristate "Aztech Sound Galaxy" | 377 | tristate "Aztech Sound Galaxy" |
369 | depends on SND | 378 | depends on SND |
@@ -391,7 +400,6 @@ config SND_SSCAPE | |||
391 | config SND_WAVEFRONT | 400 | config SND_WAVEFRONT |
392 | tristate "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)" | 401 | tristate "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)" |
393 | depends on SND | 402 | depends on SND |
394 | select FW_LOADER | ||
395 | select SND_OPL3_LIB | 403 | select SND_OPL3_LIB |
396 | select SND_MPU401_UART | 404 | select SND_MPU401_UART |
397 | select SND_CS4231_LIB | 405 | select SND_CS4231_LIB |
@@ -402,4 +410,14 @@ config SND_WAVEFRONT | |||
402 | To compile this driver as a module, choose M here: the module | 410 | To compile this driver as a module, choose M here: the module |
403 | will be called snd-wavefront. | 411 | will be called snd-wavefront. |
404 | 412 | ||
413 | config SND_WAVEFRONT_FIRMWARE_IN_KERNEL | ||
414 | bool "In-kernel firmware for Wavefront" | ||
415 | depends on SND_WAVEFRONT | ||
416 | select FW_LOADER | ||
417 | default y | ||
418 | help | ||
419 | Say Y here to include the static firmware built in the kernel | ||
420 | for Wavefront driver. If you choose N here, the external | ||
421 | firmware files from alsa-plugins pacakge are necessary. | ||
422 | |||
405 | endmenu | 423 | endmenu |
diff --git a/sound/isa/sb/sb16_csp.c b/sound/isa/sb/sb16_csp.c index 3d9d7e0107ca..ef71e50744e9 100644 --- a/sound/isa/sb/sb16_csp.c +++ b/sound/isa/sb/sb16_csp.c | |||
@@ -690,9 +690,7 @@ static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __use | |||
690 | return err; | 690 | return err; |
691 | } | 691 | } |
692 | 692 | ||
693 | #define FIRMWARE_IN_THE_KERNEL | 693 | #ifdef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL |
694 | |||
695 | #ifdef FIRMWARE_IN_THE_KERNEL | ||
696 | #include "sb16_csp_codecs.h" | 694 | #include "sb16_csp_codecs.h" |
697 | 695 | ||
698 | static const struct firmware snd_sb_csp_static_programs[] = { | 696 | static const struct firmware snd_sb_csp_static_programs[] = { |
@@ -724,7 +722,7 @@ static int snd_sb_csp_firmware_load(struct snd_sb_csp *p, int index, int flags) | |||
724 | if (err >= 0) | 722 | if (err >= 0) |
725 | p->csp_programs[index] = program; | 723 | p->csp_programs[index] = program; |
726 | else { | 724 | else { |
727 | #ifdef FIRMWARE_IN_THE_KERNEL | 725 | #ifdef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL |
728 | program = &snd_sb_csp_static_programs[index]; | 726 | program = &snd_sb_csp_static_programs[index]; |
729 | #else | 727 | #else |
730 | return err; | 728 | return err; |
diff --git a/sound/isa/wavefront/wavefront_fx.c b/sound/isa/wavefront/wavefront_fx.c index 15331ed88194..3a8c0565d676 100644 --- a/sound/isa/wavefront/wavefront_fx.c +++ b/sound/isa/wavefront/wavefront_fx.c | |||
@@ -35,9 +35,7 @@ | |||
35 | 35 | ||
36 | #define WAIT_IDLE 0xff | 36 | #define WAIT_IDLE 0xff |
37 | 37 | ||
38 | #define FIRMWARE_IN_THE_KERNEL | 38 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL |
39 | |||
40 | #ifdef FIRMWARE_IN_THE_KERNEL | ||
41 | #include "yss225.c" | 39 | #include "yss225.c" |
42 | static const struct firmware yss225_registers_firmware = { | 40 | static const struct firmware yss225_registers_firmware = { |
43 | .data = (u8 *)yss225_registers, | 41 | .data = (u8 *)yss225_registers, |
@@ -266,7 +264,7 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
266 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", | 264 | err = request_firmware(&firmware, "yamaha/yss225_registers.bin", |
267 | dev->card->dev); | 265 | dev->card->dev); |
268 | if (err < 0) { | 266 | if (err < 0) { |
269 | #ifdef FIRMWARE_IN_THE_KERNEL | 267 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL |
270 | firmware = &yss225_registers_firmware; | 268 | firmware = &yss225_registers_firmware; |
271 | #else | 269 | #else |
272 | err = -1; | 270 | err = -1; |
@@ -295,7 +293,7 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) | |||
295 | err = 0; | 293 | err = 0; |
296 | 294 | ||
297 | out: | 295 | out: |
298 | #ifdef FIRMWARE_IN_THE_KERNEL | 296 | #ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL |
299 | if (firmware != &yss225_registers_firmware) | 297 | if (firmware != &yss225_registers_firmware) |
300 | #endif | 298 | #endif |
301 | release_firmware(firmware); | 299 | release_firmware(firmware); |