Skip to contentSkip to conversation

ALSA: cs46xx: Move DSP blob out of kernel tree

PATCH New Takashi Iwai 1 participant 1 message Nov 26, 2013 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: cs46xx: Move DSP blob out of kernel tree

... and load from the external firmware files.

The firmware binary blobs in cs46xx driver have been in a gray zone regarding the license. It's most likely should be OK, but still unclear. And, the size isn't that small, too.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=10750

---
 sound/pci/Kconfig                  |    1 +
 sound/pci/cs46xx/cs46xx.h          |    5 +
 sound/pci/cs46xx/cs46xx_image.h    | 3468 ------------------------------------
 sound/pci/cs46xx/cs46xx_lib.c      |  265 ++-
 sound/pci/cs46xx/imgs/cwc4630.h    |  320 ----
 sound/pci/cs46xx/imgs/cwcasync.h   |  176 --
 sound/pci/cs46xx/imgs/cwcbinhack.h |   48 -
 sound/pci/cs46xx/imgs/cwcdma.asp   |  170 --
 sound/pci/cs46xx/imgs/cwcdma.h     |   68 -
 sound/pci/cs46xx/imgs/cwcsnoop.h   |   46 -
 10 files changed, 226 insertions(+), 4341 deletions(-)
 delete mode 100644 sound/pci/cs46xx/cs46xx_image.h
 delete mode 100644 sound/pci/cs46xx/imgs/cwc4630.h
 delete mode 100644 sound/pci/cs46xx/imgs/cwcasync.h
 delete mode 100644 sound/pci/cs46xx/imgs/cwcbinhack.h
 delete mode 100644 sound/pci/cs46xx/imgs/cwcdma.asp
 delete mode 100644 sound/pci/cs46xx/imgs/cwcdma.h
 delete mode 100644 sound/pci/cs46xx/imgs/cwcsnoop.h
sound/pci/Kconfig +1 -0
index 46ed9e8ae0fd..3a0504dfeb8a 100644
@@ -254,6 +254,7 @@ config SND_CS46XX
 	tristate "Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x"
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
+	select FW_LOADER
 	help
 	  Say Y here to include support for Cirrus Logic CS4610/CS4612/
 	  CS4614/CS4615/CS4622/CS4624/CS4630/CS4280 chips.
sound/pci/cs46xx/cs46xx.h +5 -0
index fc339ef0a0ae..c49a082c378b 100644
@@ -1716,9 +1716,14 @@ struct snd_cs46xx {
 	struct snd_pcm *pcm_rear;
 	struct snd_pcm *pcm_center_lfe;
 	struct snd_pcm *pcm_iec958;
+
+#define CS46XX_DSP_MODULES	5
+	struct dsp_module_desc *modules[CS46XX_DSP_MODULES];
 #else /* for compatibility */
 	struct snd_cs46xx_pcm *playback_pcm;
 	unsigned int play_ctl;
+
+	struct ba1_struct *ba1;
 #endif
 
 #ifdef CONFIG_PM_SLEEP
sound/pci/cs46xx/cs46xx_image.h deleted +0 -0
deleted file mode 100644
index dc93f62db2c2..000000000000
sound/pci/cs46xx/cs46xx_lib.c +220 -45

317 lines not on this page · raw message

sound/pci/cs46xx/imgs/cwc4630.h deleted +0 -0
deleted file mode 100644
index 37c4f1318dc5..000000000000
sound/pci/cs46xx/imgs/cwcasync.h deleted +0 -0
deleted file mode 100644
index 70e63e13c2b3..000000000000
sound/pci/cs46xx/imgs/cwcbinhack.h deleted +0 -0
deleted file mode 100644
index f4d93689cd49..000000000000
sound/pci/cs46xx/imgs/cwcdma.asp deleted +0 -0
deleted file mode 100644
index a65e1193c89a..000000000000
sound/pci/cs46xx/imgs/cwcdma.h deleted +0 -0
deleted file mode 100644
index 7ff0d4587161..000000000000
sound/pci/cs46xx/imgs/cwcsnoop.h deleted +0 -0
deleted file mode 100644
index 6929d0a5a3f3..000000000000
Signature · 1 line
1.8.4.3