ASoC: Fix ADAU1701 build in SND_SOC_ALL_CODECS
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
@@ -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
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
@@ -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
Quoted 4 lines · Mark Brown
Since select doesn't obey dependencies we need
ALL_CODECSto select SIGMA directly.Signed-off-by Mark Brown <[email protected]>
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.
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
@@ -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
@@ -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
@@ -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
@@ -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
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
Re: [Device-drivers-devel] [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns
In reply to Mark Brownif you dont want to run this through your tree, i can do it via mine. just lemme know.
-mike
Re: [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns
In reply to Mark BrownQuoted 10 lines · Mark Brown
Signed-off-by Mark Brown <[email protected]>--- MAINTAINERS | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)MAINTAINERS +0
-0
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*
Re: [PATCH] firmware: Make firmware drivers generally available
In reply to Clemens LadischQuoted 3 lines · Clemens Ladisch
It looks as if
sigma.cdoesn't actually belong intodrivers/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
Re: [PATCH] firmware: Make firmware drivers generally available
In reply to Lars-Peter ClausenQuoted 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
Re: [PATCH] firmware: Make firmware drivers generally available
In reply to Mike FrysingerQuoted 6 lines · Mike Frysinger
Quoted 3 lines · Clemens Ladisch
It looks as if
sigma.cdoesn't actually belong intodrivers/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
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.cdoesn't actually belong intodrivers/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
-EMISSINGBETTERSUGGESTIONI *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
Re: [Device-drivers-devel] [PATCH 2/2] ASoC: Add adau* drivers to the Analog Devices file patterns
In reply to Mike FrysingerQuoted 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.
Re: [PATCH] firmware: Make firmware drivers generally available
In reply to Mike FrysingerQuoted 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.
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