Skip to contentSkip to conversation

sound/arm: Remove pxa2xx-ac97.c and the defconfig reference

PATCH In review Peng Fan 3 participants 5 messages Sep 18, 2025 – Oct 25, 2025

Subsystems (3)
lore
Share & tools
lore

Peng Fan

author
#0 lore raw

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]>
author
#1 lore raw

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
index dea2c661b3537309d8ba0ab044640f15205bf29c..e4d7288d1e1e3e7c5d081a7bf474319693d5bff6 100644
@@ -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
index 899edb4bb278dad0e7dd90fd11703f4dca6c3cb1..99325a66cf771ad7a22df18b340221fa13e69a2d 100644
@@ -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
author
#4 lore raw

PATCH 2/2 ARM: defconfig: remove CONFIG_SND_PXA2XX_AC97 references

In reply to Peng Fan

The 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
index 134a559aba3dd535782942b1aeef94631ba231f4..9305db0b48f2ace7ececd826d06fa22b8ad3f1ff 100644
@@ -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
#2 lore raw

Re: [PATCH 1/2] ASoC: codec: Remove pxa2xx-ac97.c

In reply to Peng Fan
Quoted 11 lines · Peng Fan

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(-)

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

maintainer
#3 lore raw

Re: [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 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(-)

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.c and snd-pxa2xx-lib.c into the respective callers in the sound/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