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/pci/maestro3.c | |
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/pci/maestro3.c')
-rw-r--r-- | sound/pci/maestro3.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 4526904e3f86..9badbb3bfbd1 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2101,9 +2101,7 @@ static int __devinit snd_m3_mixer(struct snd_m3 *chip) | |||
2101 | } | 2101 | } |
2102 | 2102 | ||
2103 | 2103 | ||
2104 | #define FIRMWARE_IN_THE_KERNEL | 2104 | #ifdef CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL |
2105 | |||
2106 | #ifdef FIRMWARE_IN_THE_KERNEL | ||
2107 | 2105 | ||
2108 | /* | 2106 | /* |
2109 | * DSP Code images | 2107 | * DSP Code images |
@@ -2242,7 +2240,7 @@ static const struct firmware assp_minisrc = { | |||
2242 | .size = sizeof assp_minisrc_image | 2240 | .size = sizeof assp_minisrc_image |
2243 | }; | 2241 | }; |
2244 | 2242 | ||
2245 | #endif /* FIRMWARE_IN_THE_KERNEL */ | 2243 | #endif /* CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL */ |
2246 | 2244 | ||
2247 | #ifdef __LITTLE_ENDIAN | 2245 | #ifdef __LITTLE_ENDIAN |
2248 | static inline void snd_m3_convert_from_le(const struct firmware *fw) { } | 2246 | static inline void snd_m3_convert_from_le(const struct firmware *fw) { } |
@@ -2550,11 +2548,11 @@ static int snd_m3_free(struct snd_m3 *chip) | |||
2550 | if (chip->iobase) | 2548 | if (chip->iobase) |
2551 | pci_release_regions(chip->pci); | 2549 | pci_release_regions(chip->pci); |
2552 | 2550 | ||
2553 | #ifdef FIRMWARE_IN_THE_KERNEL | 2551 | #ifdef CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL |
2554 | if (chip->assp_kernel_image != &assp_kernel) | 2552 | if (chip->assp_kernel_image != &assp_kernel) |
2555 | #endif | 2553 | #endif |
2556 | release_firmware(chip->assp_kernel_image); | 2554 | release_firmware(chip->assp_kernel_image); |
2557 | #ifdef FIRMWARE_IN_THE_KERNEL | 2555 | #ifdef CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL |
2558 | if (chip->assp_minisrc_image != &assp_minisrc) | 2556 | if (chip->assp_minisrc_image != &assp_minisrc) |
2559 | #endif | 2557 | #endif |
2560 | release_firmware(chip->assp_minisrc_image); | 2558 | release_firmware(chip->assp_minisrc_image); |
@@ -2750,7 +2748,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci, | |||
2750 | err = request_firmware(&chip->assp_kernel_image, | 2748 | err = request_firmware(&chip->assp_kernel_image, |
2751 | "ess/maestro3_assp_kernel.fw", &pci->dev); | 2749 | "ess/maestro3_assp_kernel.fw", &pci->dev); |
2752 | if (err < 0) { | 2750 | if (err < 0) { |
2753 | #ifdef FIRMWARE_IN_THE_KERNEL | 2751 | #ifdef CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL |
2754 | chip->assp_kernel_image = &assp_kernel; | 2752 | chip->assp_kernel_image = &assp_kernel; |
2755 | #else | 2753 | #else |
2756 | snd_m3_free(chip); | 2754 | snd_m3_free(chip); |
@@ -2762,7 +2760,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci, | |||
2762 | err = request_firmware(&chip->assp_minisrc_image, | 2760 | err = request_firmware(&chip->assp_minisrc_image, |
2763 | "ess/maestro3_assp_minisrc.fw", &pci->dev); | 2761 | "ess/maestro3_assp_minisrc.fw", &pci->dev); |
2764 | if (err < 0) { | 2762 | if (err < 0) { |
2765 | #ifdef FIRMWARE_IN_THE_KERNEL | 2763 | #ifdef CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL |
2766 | chip->assp_minisrc_image = &assp_minisrc; | 2764 | chip->assp_minisrc_image = &assp_minisrc; |
2767 | #else | 2765 | #else |
2768 | snd_m3_free(chip); | 2766 | snd_m3_free(chip); |