aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-11-28 03:44:17 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-29 07:01:10 -0500
commit40216ce7aa88c2e70869723a0f5929fdbd4a91c5 (patch)
tree58591841674e312f96317621843b365b8fd9fed2
parent1db7c89c62b3c0a0ebf8c07975ae907fa404116a (diff)
ASoC: Move SigmaDSP firmware loader to ASoC
It has been pointed out previously, that the firmware subsystem is not the right place for the SigmaDSP firmware loader. Furthermore the SigmaDSP is currently only used in audio products and we are aiming for better integration into the ASoC framework in the future, with support for ALSA controls for firmware parameters and support dynamic power management as well. So the natural choice for the SigmaDSP firmware loader is the ASoC subsystem. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--MAINTAINERS1
-rw-r--r--drivers/firmware/Kconfig12
-rw-r--r--drivers/firmware/Makefile1
-rw-r--r--sound/soc/codecs/Kconfig6
-rw-r--r--sound/soc/codecs/Makefile2
-rw-r--r--sound/soc/codecs/adau1701.c2
-rw-r--r--sound/soc/codecs/sigmadsp.c (renamed from drivers/firmware/sigma.c)3
-rw-r--r--sound/soc/codecs/sigmadsp.h (renamed from include/linux/sigma.h)0
8 files changed, 11 insertions, 16 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index fd7e441b5ea7..6a93a930ec66 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -542,6 +542,7 @@ F: sound/soc/codecs/adau*
542F: sound/soc/codecs/adav* 542F: sound/soc/codecs/adav*
543F: sound/soc/codecs/ad1* 543F: sound/soc/codecs/ad1*
544F: sound/soc/codecs/ssm* 544F: sound/soc/codecs/ssm*
545F: sound/soc/codecs/sigmadsp.*
545 546
546ANALOG DEVICES INC ASOC DRIVERS 547ANALOG DEVICES INC ASOC DRIVERS
547L: uclinux-dist-devel@blackfin.uclinux.org 548L: uclinux-dist-devel@blackfin.uclinux.org
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index efba163595db..9b00072a020f 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -145,18 +145,6 @@ config ISCSI_IBFT
145 detect iSCSI boot parameters dynamically during system boot, say Y. 145 detect iSCSI boot parameters dynamically during system boot, say Y.
146 Otherwise, say N. 146 Otherwise, say N.
147 147
148config SIGMA
149 tristate "SigmaStudio firmware loader"
150 depends on I2C
151 select CRC32
152 default n
153 help
154 Enable helper functions for working with Analog Devices SigmaDSP
155 parts and binary firmwares produced by Analog Devices SigmaStudio.
156
157 If unsure, say N here. Drivers that need these helpers will select
158 this option automatically.
159
160source "drivers/firmware/google/Kconfig" 148source "drivers/firmware/google/Kconfig"
161 149
162endmenu 150endmenu
diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile
index 47338c979126..5a7e27399729 100644
--- a/drivers/firmware/Makefile
+++ b/drivers/firmware/Makefile
@@ -12,6 +12,5 @@ obj-$(CONFIG_DMIID) += dmi-id.o
12obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o 12obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o
13obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o 13obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o
14obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o 14obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
15obj-$(CONFIG_SIGMA) += sigma.o
16 15
17obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ 16obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 686f45a07f34..593174c78d7b 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -141,7 +141,7 @@ config SND_SOC_AD73311
141 tristate 141 tristate
142 142
143config SND_SOC_ADAU1701 143config SND_SOC_ADAU1701
144 select SIGMA 144 select SND_SOC_SIGMADSP
145 tristate 145 tristate
146 146
147config SND_SOC_ADAU1373 147config SND_SOC_ADAU1373
@@ -234,6 +234,10 @@ config SND_SOC_RT5631
234config SND_SOC_SGTL5000 234config SND_SOC_SGTL5000
235 tristate 235 tristate
236 236
237config SND_SOC_SIGMADSP
238 tristate
239 select CRC32
240
237config SND_SOC_SN95031 241config SND_SOC_SN95031
238 tristate 242 tristate
239 243
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile
index 62b01e4e7983..fa15006fcac5 100644
--- a/sound/soc/codecs/Makefile
+++ b/sound/soc/codecs/Makefile
@@ -33,6 +33,7 @@ snd-soc-rt5631-objs := rt5631.o
33snd-soc-sgtl5000-objs := sgtl5000.o 33snd-soc-sgtl5000-objs := sgtl5000.o
34snd-soc-alc5623-objs := alc5623.o 34snd-soc-alc5623-objs := alc5623.o
35snd-soc-alc5632-objs := alc5632.o 35snd-soc-alc5632-objs := alc5632.o
36snd-soc-sigmadsp-objs := sigmadsp.o
36snd-soc-sn95031-objs := sn95031.o 37snd-soc-sn95031-objs := sn95031.o
37snd-soc-spdif-objs := spdif_transciever.o 38snd-soc-spdif-objs := spdif_transciever.o
38snd-soc-ssm2602-objs := ssm2602.o 39snd-soc-ssm2602-objs := ssm2602.o
@@ -134,6 +135,7 @@ obj-$(CONFIG_SND_SOC_MAX9850) += snd-soc-max9850.o
134obj-$(CONFIG_SND_SOC_PCM3008) += snd-soc-pcm3008.o 135obj-$(CONFIG_SND_SOC_PCM3008) += snd-soc-pcm3008.o
135obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o 136obj-$(CONFIG_SND_SOC_RT5631) += snd-soc-rt5631.o
136obj-$(CONFIG_SND_SOC_SGTL5000) += snd-soc-sgtl5000.o 137obj-$(CONFIG_SND_SOC_SGTL5000) += snd-soc-sgtl5000.o
138obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
137obj-$(CONFIG_SND_SOC_SN95031) +=snd-soc-sn95031.o 139obj-$(CONFIG_SND_SOC_SN95031) +=snd-soc-sn95031.o
138obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif.o 140obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif.o
139obj-$(CONFIG_SND_SOC_SSM2602) += snd-soc-ssm2602.o 141obj-$(CONFIG_SND_SOC_SSM2602) += snd-soc-ssm2602.o
diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c
index 8b7e1c50d6e9..6a6af567f02a 100644
--- a/sound/soc/codecs/adau1701.c
+++ b/sound/soc/codecs/adau1701.c
@@ -12,13 +12,13 @@
12#include <linux/init.h> 12#include <linux/init.h>
13#include <linux/i2c.h> 13#include <linux/i2c.h>
14#include <linux/delay.h> 14#include <linux/delay.h>
15#include <linux/sigma.h>
16#include <linux/slab.h> 15#include <linux/slab.h>
17#include <sound/core.h> 16#include <sound/core.h>
18#include <sound/pcm.h> 17#include <sound/pcm.h>
19#include <sound/pcm_params.h> 18#include <sound/pcm_params.h>
20#include <sound/soc.h> 19#include <sound/soc.h>
21 20
21#include "sigmadsp.h"
22#include "adau1701.h" 22#include "adau1701.h"
23 23
24#define ADAU1701_DSPCTRL 0x1c 24#define ADAU1701_DSPCTRL 0x1c
diff --git a/drivers/firmware/sigma.c b/sound/soc/codecs/sigmadsp.c
index 1eedb6f7fdab..acb97a9834aa 100644
--- a/drivers/firmware/sigma.c
+++ b/sound/soc/codecs/sigmadsp.c
@@ -12,7 +12,8 @@
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13#include <linux/i2c.h> 13#include <linux/i2c.h>
14#include <linux/module.h> 14#include <linux/module.h>
15#include <linux/sigma.h> 15
16#include "sigmadsp.h"
16 17
17static size_t sigma_action_size(struct sigma_action *sa) 18static size_t sigma_action_size(struct sigma_action *sa)
18{ 19{
diff --git a/include/linux/sigma.h b/sound/soc/codecs/sigmadsp.h
index d0de882c0d96..d0de882c0d96 100644
--- a/include/linux/sigma.h
+++ b/sound/soc/codecs/sigmadsp.h