sound/arm: Remove pxa2xx-ac97.c and the defconfig reference
Subsystems (3)
cover sound/arm: Remove pxa2xx-ac97.c and the defconfig reference
With commit ce79f3a1ad5f ("ARM: pxa: prune unused device support") and commit 2548e6c76ebf ("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource"), there is no 'pxa2xx-ac97' platform device created by machine level code, so this driver could be removed. And also remove the CONFIG reference in defconfig.
DT platforms could use sound/soc/pxa/pxa2xx-ac97.c
---
Peng Fan (2):
ASoC: codec: Remove pxa2xx-ac97.c
ARM: defconfig: remove CONFIG_SND_PXA2XX_AC97 references
arch/arm/configs/am200epdkit_defconfig | 1 - sound/arm/Kconfig | 10 -- sound/arm/Makefile | 3 - sound/arm/pxa2xx-ac97.c | 286 --------------------------------- 4 files changed, 300 deletions(-)
---
base-commit: ae2d20002576d2893ecaff25db3d7ef9190ac0b6
change-id: 20250918-audio-8532a5344681
Best regards,
Signature · 1 line
Peng Fan <[email protected]>
PATCH 1/2 ASoC: codec: Remove pxa2xx-ac97.c
With commit ce79f3a1ad5f ("ARM: pxa: prune unused device support") and commit 2548e6c76ebf ("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource"), there is no 'pxa2xx-ac97' platform device created by machine level code, so this driver could be removed.
--- sound/arm/Kconfig | 10 -- sound/arm/Makefile | 3 - sound/arm/pxa2xx-ac97.c | 286 ------------------------------------------------ 3 files changed, 299 deletions(-)
sound/arm/Kconfig +0 -10
@@ -18,16 +18,6 @@ config SND_ARMAACI select SND_PCM select SND_AC97_CODEC -config SND_PXA2XX_AC97 - tristate "AC97 driver for the Intel PXA2xx chip" - depends on ARCH_PXA - select SND_AC97_CODEC - select SND_PXA2XX_LIB - select SND_PXA2XX_LIB_AC97 - help - Say Y or M if you want to support any AC97 codec attached to - the PXA2xx AC97 interface. - endif # SND_ARM config SND_PXA2XX_LIB
sound/arm/Makefile +0 -3
@@ -9,6 +9,3 @@ snd-aaci-y := aaci.o obj-$(CONFIG_SND_PXA2XX_LIB) += snd-pxa2xx-lib.o snd-pxa2xx-lib-y := pxa2xx-pcm-lib.o snd-pxa2xx-lib-$(CONFIG_SND_PXA2XX_LIB_AC97) += pxa2xx-ac97-lib.o - -obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o -snd-pxa2xx-ac97-y := pxa2xx-ac97.o
sound/arm/pxa2xx-ac97.c deleted +0 -286
286 lines not on this page · raw message
Signature · 1 line
2.37.1
PATCH 2/2 ARM: defconfig: remove CONFIG_SND_PXA2XX_AC97 references
In reply to Peng FanThe pxa2xx-ac97 non-DT supported driver was removed, so remove the reference to the config.
--- arch/arm/configs/am200epdkit_defconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/configs/am200epdkit_defconfig +0 -1
@@ -70,7 +70,6 @@ CONFIG_SND_MIXER_OSS=m CONFIG_SND_PCM_OSS=m # CONFIG_SND_SUPPORT_OLD_API is not set # CONFIG_SND_VERBOSE_PROCFS is not set -CONFIG_SND_PXA2XX_AC97=m CONFIG_USB_GADGET=y CONFIG_USB_ETH=m CONFIG_MMC=y
Signature · 1 line
2.37.1
Re: [PATCH 1/2] ASoC: codec: Remove pxa2xx-ac97.c
In reply to Peng FanQuoted 11 lines · Peng Fan
With commit
ce79f3a1ad5f("ARM: pxa: prune unused device support") and commit2548e6c76ebf("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource"), there is no 'pxa2xx-ac97' platform device created by machine level code, so this driver could be removed.Signed-off-by Peng Fan <[email protected]>--- sound/arm/Kconfig | 10 -- sound/arm/Makefile | 3 - sound/arm/pxa2xx-ac97.c | 286 ------------------------------------------------ 3 files changed, 299 deletions(-)
I think you are right, I was sure there was still a way to use this driver either as part of sound/soc/pxa/*, or as an alternative, but now I don't see how.
If we do this, I think we should just merge pxa2xx-pcm-lib.c and snd-pxa2xx-lib.c into the respective callers in the sound/soc/pxa/ driver.
Robert, can you confirm?
Arnd
Robert Jarzmik
maintainerRe: [PATCH 1/2] ASoC: codec: Remove pxa2xx-ac97.c
Quoted 17 lines · Arnd Bergmann
Quoted 11 lines · Peng Fan
With commit
ce79f3a1ad5f("ARM: pxa: prune unused device support") and commit2548e6c76ebf("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource"), there is no 'pxa2xx-ac97' platform device created by machine level code, so this driver could be removed.Signed-off-by Peng Fan <[email protected]>--- sound/arm/Kconfig | 10 -- sound/arm/Makefile | 3 - sound/arm/pxa2xx-ac97.c | 286 ------------------------------------------------ 3 files changed, 299 deletions(-)I think you are right, I was sure there was still a way to use this driver either as part of
sound/soc/pxa/*, or as an alternative, but now I don't see how.
Quoted 5 lines
If we do this, I think we should just merge
pxa2xx-pcm-lib.candsnd-pxa2xx-lib.cinto the respective callers in thesound/soc/pxa/driver.Robert, can you confirm?
Hi Arnd,
That'a a way of doing it, yet I would have chosen another path. I would have taken all the code out of sound/arm/pxa2xx-pcm-lib.c, and injected it into sound/soc/pxa2xx-pcm.c The reason is that the PCM code is used across AC97, I2S and SSP. You would have to duplicate that if you were to inject it to its callers.
I would also see with a keen eye the removal of sound/arm/*. Unless I'm mistaken, this code only works in platform_data environments. And if you want to leave only DT code, well ... the long term should be to remove this part.
The code in sound/soc/pxa provides another access to the same functionality (ie. sound on pxa platforms), and is DT compliant.
On a personal note, I only ever used sound/soc/pxa/* in all my boards, and never arm/pxa/*. I'm not aware of any remaining users of sound/arm/*.
Cheers.
--
Robert