firmware: convert sb16_csp driver to use firmware loader exclusively
Subsystems (2)
PATCH 1/1 firmware: convert sb16_csp driver to use firmware loader exclusively
Signed-off-by Jaswinder Singh <[email protected]>
--- firmware/Makefile | 4 + firmware/WHENCE | 18 + firmware/sb16/alaw_main.csp.ihex | 87 +++ firmware/sb16/ima_adpcm_capture.csp.ihex | 121 ++++ firmware/sb16/ima_adpcm_init.csp.ihex | 70 +++ firmware/sb16/ima_adpcm_playback.csp.ihex | 122 ++++ firmware/sb16/mulaw_main.csp.ihex | 84 +++ sound/isa/Kconfig | 9 - sound/isa/sb/sb16_csp.c | 22 - sound/isa/sb/sb16_csp_codecs.h | 949 ----------------------------- 10 files changed, 506 insertions(+), 980 deletions(-) create mode 100644 firmware/sb16/alaw_main.csp.ihex create mode 100644 firmware/sb16/ima_adpcm_capture.csp.ihex create mode 100644 firmware/sb16/ima_adpcm_init.csp.ihex create mode 100644 firmware/sb16/ima_adpcm_playback.csp.ihex create mode 100644 firmware/sb16/mulaw_main.csp.ihex delete mode 100644 sound/isa/sb/sb16_csp_codecs.h
firmware/Makefile +4 -0
@@ -24,6 +24,10 @@ fw-shipped-$(CONFIG_SMCTR) += tr_smctr.bin fw-shipped-$(CONFIG_SND_KORG1212) += korg/k1212.dsp fw-shipped-$(CONFIG_SND_MAESTRO3) += ess/maestro3_assp_kernel.fw \ ess/maestro3_assp_minisrc.fw +fw-shipped-$(CONFIG_SND_SB16_CSP) += sb16/mulaw_main.csp sb16/alaw_main.csp \ + sb16/ima_adpcm_init.csp \ + sb16/ima_adpcm_playback.csp \ + sb16/ima_adpcm_capture.csp fw-shipped-$(CONFIG_SND_YMFPCI) += yamaha/ds1_ctrl.fw yamaha/ds1_dsp.fw \ yamaha/ds1e_ctrl.fw fw-shipped-$(CONFIG_TIGON3) += tigon/tg3.bin tigon/tg3_tso.bin \
firmware/WHENCE +18 -0
@@ -372,3 +372,21 @@ Licence: Unknown Found in hex form in kernel source. -------------------------------------------------------------------------- + +Driver: SND_SB16_CSP - Sound Blaster 16/AWE CSP support + +File: sb16/mulaw_main.csp +File: sb16/alaw_main.csp +File: sb16/ima_adpcm_init.csp +File: sb16/ima_adpcm_playback.csp +File: sb16/ima_adpcm_capture.csp + +Licence: Allegedly GPLv2+, but no source visible. Marked: +/* + * Copyright (c) 1994 Creative Technology Ltd. + * Microcode files for SB16 Advanced Signal Processor + */ + +Found in hex form in kernel source. + +--------------------------------------------------------------------------
firmware/sb16/alaw_main.csp.ihex new file +87 -0
87 lines not on this page · raw message
firmware/sb16/ima_adpcm_capture.csp.ihex new file +121 -0
121 lines not on this page · raw message
firmware/sb16/ima_adpcm_init.csp.ihex new file +70 -0
70 lines not on this page · raw message
firmware/sb16/ima_adpcm_playback.csp.ihex new file +122 -0
122 lines not on this page · raw message
firmware/sb16/mulaw_main.csp.ihex new file +84 -0
84 lines not on this page · raw message
sound/isa/Kconfig +0 -9
@@ -391,15 +391,6 @@ config SND_SB16_CSP coprocessor can do variable tasks like various compression and decompression algorithms. -config SND_SB16_CSP_FIRMWARE_IN_KERNEL - bool "In-kernel firmware for SB16 CSP" - depends on SND_SB16_CSP - default y - help - Say Y here to include the static firmware built in the kernel - for the SB16 CSP controller. If you choose N here, you need - to install the firmware files from the alsa-firmware package. - config SND_SGALAXY tristate "Aztech Sound Galaxy" depends on SND
sound/isa/sb/sb16_csp.c +0 -22
@@ -35,13 +35,11 @@MODULE_AUTHOR ("Uros Bizjak <[email protected]>" );MODULE_DESCRIPTION ("ALSA driver for SB16 Creative Signal Processor" );MODULE_LICENSE ("GPL" ); -#ifndef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL MODULE_FIRMWARE ("sb16/mulaw_main.csp" );MODULE_FIRMWARE ("sb16/alaw_main.csp" );MODULE_FIRMWARE ("sb16/ima_adpcm_init.csp" );MODULE_FIRMWARE ("sb16/ima_adpcm_playback.csp" );MODULE_FIRMWARE ("sb16/ima_adpcm_capture.csp" ); -#endif #ifdef SNDRV_LITTLE_ENDIAN #define CSP_HDR_VALUE (a,b,c,d) ((a) | ((b)<<8) | ((c)<<16) | ((d)<<24))
@@ -168,17 +166,13 @@ int snd_sb_csp_new(struct snd_sb *chip, int device, struct snd_hwdep ** rhwdep)*/ static void snd_sb_csp_free (struct snd_hwdep *hwdep) { -#ifndef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL int i; -#endif struct snd_sb_csp *p = hwdep->private_data;if (p) {if (p->running &SNDRV_SB_CSP_ST_RUNNING )snd_sb_csp_stop (p); -#ifndef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL for (i =0 ; i <ARRAY_SIZE (p->csp_programs); ++i)release_firmware (p->csp_programs[i]); -#endif kfree (p); } }
@@ -701,18 +695,6 @@ static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __usereturn err; } -#ifdef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL -#include "sb16_csp_codecs.h" - -static const struct firmware snd_sb_csp_static_programs[] = { - { .data = mulaw_main, .size =sizeof mulaw_main }, - { .data = alaw_main, .size =sizeof alaw_main }, - { .data = ima_adpcm_init, .size =sizeof ima_adpcm_init }, - { .data = ima_adpcm_playback, .size =sizeof ima_adpcm_playback }, - { .data = ima_adpcm_capture, .size =sizeof ima_adpcm_capture }, -}; -#endif -static int snd_sb_csp_firmware_load (struct snd_sb_csp *p,int index,int flags) {static const char *const names[] = {
@@ -727,14 +709,10 @@ static int snd_sb_csp_firmware_load(struct snd_sb_csp *p, int index, int flags)BUILD_BUG_ON (ARRAY_SIZE (names) !=CSP_PROGRAM_COUNT ); program = p->csp_programs[index];if (!program) { -#ifdef CONFIG_SND_SB16_CSP_FIRMWARE_IN_KERNEL - program = &snd_sb_csp_static_programs[index]; -#else int err =request_firmware (&program, names[index], p->chip->card->dev);if (err <0 )return err; -#endif p->csp_programs[index] = program; }return snd_sb_csp_load (p, program->data, program->size, flags);
sound/isa/sb/sb16_csp_codecs.h deleted +0 -949
949 lines not on this page · raw message
Signature · 1 line
1.5.5.1