ASoC: sunxi: rename SND_SUN8I_ADDA_PR_REGMAP
Subsystems (3)
PATCH 1/1 ASoC: sunxi: rename SND_SUN8I_ADDA_PR_REGMAP
The newly added SND_SUN50I_CODEC_ANALOG driver selects a nonexisting symbol SND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replace SND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In function `sun50i_codec_analog_probe':
sun50i-codec-analog.c:(.text+0x62): undefined reference to `sun8i_adda_pr_regmap_init'
The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
--- sound/soc/sunxi/Kconfig | 4 ++-- sound/soc/sunxi/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/sunxi/Kconfig +2 -2
@@ -23,7 +23,7 @@ config SND_SUN8I_CODEC config SND_SUN8I_CODEC_ANALOG tristate "Allwinner sun8i Codec Analog Controls Support" depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST - select SND_SUN8I_ADDA_PR_REGMAP + select SND_SUNXI_ADDA_PR_REGMAP help Say Y or M if you want to add support for the analog controls for the codec embedded in newer Allwinner SoCs.
@@ -54,7 +54,7 @@ config SND_SUN4I_SPDIF Say Y or M to add support for the S/PDIF audio block in the Allwinner A10 and affiliated SoCs. -config SND_SUN8I_ADDA_PR_REGMAP +config SND_SUNXI_ADDA_PR_REGMAP tristate select REGMAP
sound/soc/sunxi/Makefile +1 -1
@@ -5,4 +5,4 @@ obj-$(CONFIG_SND_SUN4I_SPDIF) += sun4i-spdif.o obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o obj-$(CONFIG_SND_SUN50I_CODEC_ANALOG) += sun50i-codec-analog.o obj-$(CONFIG_SND_SUN8I_CODEC) += sun8i-codec.o -obj-$(CONFIG_SND_SUN8I_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o +obj-$(CONFIG_SND_SUNXI_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o
Signature · 1 line
2.18.0
Quoted 11 lines · PDT Arnd Bergmann
The newly added
SND_SUN50I_CODEC_ANALOGdriver selects a nonexisting symbolSND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replaceSND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In functionsun50i_codec_analog_probe': sun50i-codec-analog.c:(.text+0x62): undefined reference tosun8i_adda_pr_regmap_init'The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
Maxime asked it to be SND_SUN8I_ADDA_PR_REGMAP, and also it would be easier to fix it my renaming last remaining SND_SUNXI_ADDA_PR_REGMAP to SND_SUN8I_ADDA_PR_REGMAP.
Quoted 39 lines
Fixes 42371f327df0 ("ASoC: sunxi: Add new driver for Allwinner A64 codec'sanalog path controls") Signed-off-by: Arnd Bergmann <[email protected]>
--- sound/soc/sunxi/Kconfig | 4 ++-- sound/soc/sunxi/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)sound/soc/sunxi/Kconfig +2
-2@@ -23,7 +23,7 @@ config SND_SUN8I_CODEC config SND_SUN8I_CODEC_ANALOG tristate "Allwinner sun8i Codec Analog Controls Support" depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST - select SND_SUN8I_ADDA_PR_REGMAP + select SND_SUNXI_ADDA_PR_REGMAP help Say Y or M if you want to add support for the analog controls for the codec embedded in newer Allwinner SoCs.@@ -54,7 +54,7 @@ config SND_SUN4I_SPDIF Say Y or M to add support for the S/PDIF audio block in the Allwinner A10 and affiliated SoCs. -config SND_SUN8I_ADDA_PR_REGMAP +config SND_SUNXI_ADDA_PR_REGMAP tristate select REGMAPsound/soc/sunxi/Makefile +1
-1@@ -5,4 +5,4 @@ obj-$(CONFIG_SND_SUN4I_SPDIF) += sun4i-spdif.o obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o obj-$(CONFIG_SND_SUN50I_CODEC_ANALOG) += sun50i-codec-analog.o obj-$(CONFIG_SND_SUN8I_CODEC) += sun8i-codec.o -obj-$(CONFIG_SND_SUN8I_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o +obj-$(CONFIG_SND_SUNXI_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o
Quoted 11 lines · Vasily Khoruzhick
Quoted 10 lines · PDT Arnd Bergmann
The newly added
SND_SUN50I_CODEC_ANALOGdriver selects a nonexisting symbolSND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replaceSND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In function `sun50i_codec_analog_probe': sun50i-codec-analog.c:(.text+0x62):
undefined
reference to `sun8i_adda_pr_regmap_init'
Quoted 7 lines
Quoted 2 lines
The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
Maxime asked it to be
SND_SUN8I_ADDA_PR_REGMAP, and also it would be easier to
fix it my renaming last remainingSND_SUNXI_ADDA_PR_REGMAPtoSND_SUN8I_ADDA_PR_REGMAP.
Sure, I don't care either way. Please send a patch to do that then.
Arnd
Quoted 16 lines · Arnd Bergmann
Quoted 14 lines · Vasily Khoruzhick
Quoted 12 lines · PDT Arnd Bergmann
The newly added
SND_SUN50I_CODEC_ANALOGdriver selects a nonexisting symbolSND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replaceSND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In function `sun50i_codec_analog_probe': sun50i-codec-analog.c:(.text+0x62):
undefined
reference to `sun8i_adda_pr_regmap_init'The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
Quoted 6 lines
Quoted 4 lines
Maxime asked it to be
SND_SUN8I_ADDA_PR_REGMAP, and also it would be easier to
fix it my renaming last remainingSND_SUNXI_ADDA_PR_REGMAPtoSND_SUN8I_ADDA_PR_REGMAP.Sure, I don't care either way. Please send a patch to do that then.
Will do tonight.
Quoted 2 lines
Arnd
Quoted 17 lines · Vasily Khoruzhick
Quoted 16 lines · Arnd Bergmann
Quoted 14 lines · Vasily Khoruzhick
Quoted 12 lines · PDT Arnd Bergmann
The newly added
SND_SUN50I_CODEC_ANALOGdriver selects a nonexisting symbolSND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replaceSND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In function `sun50i_codec_analog_probe': sun50i-codec-analog.c:(.text+0x62):
undefined
reference to `sun8i_adda_pr_regmap_init'The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Maxime asked it to be
SND_SUN8I_ADDA_PR_REGMAP, and also it would be easier to
fix it my renaming last remainingSND_SUNXI_ADDA_PR_REGMAPtoSND_SUN8I_ADDA_PR_REGMAP.Sure, I don't care either way. Please send a patch to do that then.
Will do tonight.
Is that patch coming up or on its way somewhere?
I still hit randconfig build failures:
ERROR: "sun8i_adda_pr_regmap_init" [sound/soc/sunxi/sun50i-codec-analog.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Quoted 28 lines · Borislav Petkov
Quoted 17 lines · Vasily Khoruzhick
Quoted 16 lines · Arnd Bergmann
Quoted 14 lines · Vasily Khoruzhick
Quoted 12 lines · PDT Arnd Bergmann
The newly added
SND_SUN50I_CODEC_ANALOGdriver selects a nonexisting symbolSND_SUNXI_ADDA_PR_REGMAP, which was evidently intended to replaceSND_SUN8I_ADDA_PR_REGMAP, but since they are now mismatched, we can run into link errors for some configurations:
sound/soc/sunxi/sun50i-codec-analog.o: In function `sun50i_codec_analog_probe': sun50i-codec-analog.c:(.text+0x62):
undefined
reference to `sun8i_adda_pr_regmap_init'The new name appears to be more sensible, and as the symbol is hidden, there are no downsides in the rename, so use that consistently now.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Maxime asked it to be
SND_SUN8I_ADDA_PR_REGMAP, and also it would be easier to
fix it my renaming last remainingSND_SUNXI_ADDA_PR_REGMAPtoSND_SUN8I_ADDA_PR_REGMAP.Sure, I don't care either way. Please send a patch to do that then.
Will do tonight.
Quoted 7 lines
Is that patch coming up or on its way somewhere?
I still hit randconfig build failures:
ERROR: "
sun8i_adda_pr_regmap_init" [sound/soc/sunxi/sun50i-codec-analog.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
It's been in Mark's asoc tree.
Mark, could you send a pull request? It might be too late for rc4, but sooner, better.
thanks,
Takashi