Skip to contentSkip to conversation

ASoC: Fix ADAU1701 build in SND_SOC_ALL_CODECS

PATCH In review Mark Brown 5 participants 14 messages Jun 17, 2011 – Jun 21, 2011

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 ASoC: Fix ADAU1701 build in SND_SOC_ALL_CODECS

Since select doesn't obey dependencies we need ALL_CODECS to select SIGMA directly.

---
 sound/soc/codecs/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/codecs/Kconfig +1 -0
index bb90642..33ceb06 100644
@@ -10,6 +10,7 @@ config SND_SOC_I2C_AND_SPI
 
 config SND_SOC_ALL_CODECS
 	tristate "Build all ASoC CODEC drivers"
+	select SIGMA if I2C   # Analog devices DSP
 	select SND_SOC_88PM860X if MFD_88PM860X
 	select SND_SOC_L3
 	select SND_SOC_AC97_CODEC if SND_SOC_AC97_BUS
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 2/2 ASoC: Add adau* drivers to the Analog Devices file patterns

---
 MAINTAINERS |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
MAINTAINERS +1 -0
index 7da0089..ecc44e6 100644
@@ -533,6 +533,7 @@ L:	[email protected]
 L:	[email protected] (moderated for non-subscribers)
 W:	http://wiki.analog.com/
 S:	Supported
+F:	sound/soc/codecs/adau*
 F:	sound/soc/codecs/ad1*
 F:	sound/soc/codecs/ssm*
 
Signature · 1 line
1.7.5.4
Acked-by on v1 2/2
#2 lore raw

Re: [Device-drivers-devel] [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns

if you dont want to run this through your tree, i can do it via mine. just lemme know.
-mike

author
#3 lore raw

Re: [Device-drivers-devel] [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns

Quoted 2 lines · Mike Frysinger

if you dont want to run this through your tree, i can do it via mine. just lemme know.

No need, I'm happy to carry it.

Acked-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns

In reply to Mark Brown
Quoted 10 lines · Mark Brown
---
 MAINTAINERS |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
MAINTAINERS +0 -0
index 7da0089..ecc44e6 100644

MAINTAINERS L: [email protected] · line 539

Quoted 7 lines
MAINTAINERS +1 -0
@@ -533,6 +533,7 @@ L:	[email protected]
 L:	[email protected] (moderated for non-subscribers)
 W:	http://wiki.analog.com/
 S:	Supported
+F:	sound/soc/codecs/adau*
 F:	sound/soc/codecs/ad1*
 F:	sound/soc/codecs/ssm*
 
author
#5 lore raw
In reply to Mark Brown
Quoted 4 lines · Mark Brown

Since select doesn't obey dependencies we need ALL_CODECS to select SIGMA directly.

Hrm, actually the drivers/firmware Kconfig isn't even included on any architectures except ia64, x86 and blackfin so this is going to be a general failure. We also need a patch or patches adding firmware to the build for all architectures.

#6 lore raw

PATCH 1/1 firmware: Make firmware drivers generally available

Currently only x86, ia64 and blackfin architectures include drivers/firmware/Kconfig, as a result firmware drivers are only available on these platforms. This has not been a problem historically, because all of the firmware drivers were architecture specific.

But this has changed with the addition of the SigmaStudio firmware loader (commit e359dc24 "sigma-firmware: loader for Analog Devices' SigmaStudio"), which is used to parse and load firmware files for Analog Devices' SigmaDSP processors. These DSPs are usually embedded in for example audio codecs, which use the I2C or SPI bus for communication and are not architecture specific. Thus make the firmware drivers generally available, so it can be used on all architectures.

Note that this moves the Kconfig "Firmware Drivers" entry from the top-level to the "Device Drivers" submenu for architectures which had it already available.

---
 arch/blackfin/Kconfig |    2 --
 arch/ia64/Kconfig     |    2 --
 arch/x86/Kconfig      |    2 --
 drivers/Kconfig       |    2 ++
 4 files changed, 2 insertions(+), 6 deletions(-)
arch/blackfin/Kconfig +0 -2
index d619b17..a7c1efa 100644
@@ -1283,8 +1283,6 @@ source "net/Kconfig"
 
 source "drivers/Kconfig"
 
-source "drivers/firmware/Kconfig"
-
 source "fs/Kconfig"
 
 source "arch/blackfin/Kconfig.debug"
arch/ia64/Kconfig +0 -2
index 38280ef..34be81e 100644
@@ -583,8 +583,6 @@ config CRASH_DUMP
 	  help
 	    Generate crash dump after being started by kexec.
 
-source "drivers/firmware/Kconfig"
-
 source "fs/Kconfig.binfmt"
 
 endmenu
arch/x86/Kconfig +0 -2
index da34972..e112693 100644
@@ -2153,8 +2153,6 @@ source "net/Kconfig"
 
 source "drivers/Kconfig"
 
-source "drivers/firmware/Kconfig"
-
 source "fs/Kconfig"
 
 source "arch/x86/Kconfig.debug"
drivers/Kconfig +2 -0
index 3bb154d..6b2c238 100644
@@ -32,6 +32,8 @@ source "drivers/message/fusion/Kconfig"
 
 source "drivers/firewire/Kconfig"
 
+source "drivers/firmware/Kconfig"
+
 source "drivers/message/i2o/Kconfig"
 
 source "drivers/macintosh/Kconfig"
Signature · 1 line
1.7.2.5
#7 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

Quoted 9 lines · Lars-Peter Clausen

Currently only x86, ia64 and blackfin architectures include drivers/firmware/Kconfig, as a result firmware drivers are only available on these platforms. This has not been a problem historically, because all of the firmware drivers were architecture specific.

But this has changed with the addition of the SigmaStudio firmware loader (commit e359dc24 "sigma-firmware: loader for Analog Devices' SigmaStudio"), which is used to parse and load firmware files for Analog Devices' SigmaDSP processors.

It looks as if sigma.c doesn't actually belong into drivers/firmware. That directory is for code that lets the kernel access the firmware of the platform that the kernel itself runs on.

The request_firmware() stuff is usually part of the actual driver that needs it.

Regards,
Clemens

#8 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

Quoted 3 lines · Clemens Ladisch

It looks as if sigma.c doesn't actually belong into drivers/firmware. That directory is for code that lets the kernel access the firmware of the platform that the kernel itself runs on.

-EMISSINGBETTERSUGGESTION

Quoted 2 lines

The request_firmware() stuff is usually part of the actual driver that needs it.

except for when the firmware format is the same across many drivers because it has a unified format (by design)
-mike

#9 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

Quoted 6 lines · Mike Frysinger
Quoted 3 lines · Clemens Ladisch

It looks as if sigma.c doesn't actually belong into drivers/firmware. That directory is for code that lets the kernel access the firmware of the platform that the kernel itself runs on.

-EMISSINGBETTERSUGGESTION

I *knew* somebody would ask. :)

"drivers/firmware" is the obvious name for both, but that makes it ambiguous. I'd suggest to split the two subsystems into "drivers/host-firmware" and "drivers/device-firmware".

Regards,
Clemens

#10 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

Quoted 6 lines · Clemens Ladisch
Quoted 5 lines · Mike Frysinger
Quoted 3 lines · Clemens Ladisch

It looks as if sigma.c doesn't actually belong into drivers/firmware. That directory is for code that lets the kernel access the firmware of the platform that the kernel itself runs on.

Quoted 7 lines
Quoted 1 line

-EMISSINGBETTERSUGGESTION

I *knew* somebody would ask.  :)

"drivers/firmware" is the obvious name for both, but that makes it ambiguous.  I'd suggest to split the two subsystems into "drivers/host-firmware" and "drivers/device-firmware".

i honestly dont see how this is better. the drivers/firmware/ isnt exactly overflowing, and differentiating between the two modes doesnt seem to gain us anything.
-mike

author
#11 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

Quoted 9 lines · Mike Frysinger
Quoted 3 lines · Clemens Ladisch

"drivers/firmware" is the obvious name for both, but that makes it ambiguous.  I'd suggest to split the two subsystems into "drivers/host-firmware" and "drivers/device-firmware".

i honestly dont see how this is better. the drivers/firmware/ isnt exactly overflowing, and differentiating between the two modes doesnt seem to gain us anything.

Do we have anything like an actual subsystem in firmware? If we do and it's sensible to do things that affect all firmwares then splitting seems reasonable but if not then it's less clear.

#12 lore raw

Re: [uclinux-dist-devel] [PATCH] firmware: Make firmware drivers generally available

Quoted 6 lines · Mark Brown
Quoted 4 lines · Mike Frysinger
Quoted 3 lines · Clemens Ladisch

"drivers/firmware" is the obvious name for both, but that makes it ambiguous.  I'd suggest to split the two subsystems into "drivers/host-firmware" and "drivers/device-firmware".

Quoted 7 lines
Quoted 3 lines

i honestly dont see how this is better.  the drivers/firmware/ isnt exactly overflowing, and differentiating between the two modes doesnt seem to gain us anything.

Do we have anything like an actual subsystem in firmware?  If we do and it's sensible to do things that affect all firmwares then splitting seems reasonable but if not then it's less clear.

i dont think there is. we havent hit enough critical mass yet to warrant it. -mike

Acked-by on v1 1/1
#13 lore raw

Re: [PATCH] firmware: Make firmware drivers generally available

In reply to Lars-Peter Clausen
Quoted 13 lines · Lars-Peter Clausen

Currently only x86, ia64 and blackfin architectures include drivers/firmware/Kconfig, as a result firmware drivers are only available on these platforms. This has not been a problem historically, because all of the firmware drivers were architecture specific.

But this has changed with the addition of the SigmaStudio firmware loader (commit e359dc24 "sigma-firmware: loader for Analog Devices' SigmaStudio"), which is used to parse and load firmware files for Analog Devices' SigmaDSP processors. These DSPs are usually embedded in for example audio codecs, which use the I2C or SPI bus for communication and are not architecture specific. Thus make the firmware drivers generally available, so it can be used on all architectures.

Quoted 2 lines

Note that this moves the Kconfig "Firmware Drivers" entry from the top-level to the "Device Drivers" submenu for architectures which had it already available.

-mike