Skip to contentSkip to conversation

sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML

PATCH In review Julian Vetter 2 participants 4 messages Oct 10, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML

When building for the UM arch and neither INDIRECT_IOMEM=y, nor HAS_IOMEM=y is selected, it will fall back to the implementations from asm-generic/io.h for IO memcpy. But these fall-back functions just do a memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM || INDIRECT_IOMEM'.

---
 sound/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/Kconfig +1 -1
index 4c036a9a420a..8b40205394fe 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig SOUND
 	tristate "Sound card support"
-	depends on HAS_IOMEM || UML
+	depends on HAS_IOMEM || INDIRECT_IOMEM
 	help
 	  If you have a sound card in your computer, i.e. if it can say more
 	  than an occasional beep, say Y.
Signature · 1 line
2.34.1
#1 lore raw
Quoted 10 lines · Julian Vetter

When building for the UM arch and neither INDIRECT_IOMEM=y, nor HAS_IOMEM=y is selected, it will fall back to the implementations from asm-generic/io.h for IO memcpy. But these fall-back functions just do a memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM || INDIRECT_IOMEM'.

This is expected to be applied via sound.git tree? Then I'll happily take it.

thanks,

Takashi

Quoted 24 lines
---
 sound/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/Kconfig +1 -1
index 4c036a9a420a..8b40205394fe 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig SOUND
 	tristate "Sound card support"
-	depends on HAS_IOMEM || UML
+	depends on HAS_IOMEM || INDIRECT_IOMEM
 	help
 	  If you have a sound card in your computer, i.e. if it can say more
 	  than an occasional beep, say Y.
Signature · 1 line
2.34.1
#2 lore raw
Quoted 9 lines · Takashi Iwai
Quoted 7 lines · Julian Vetter

When building for the UM arch and neither INDIRECT_IOMEM=y, nor HAS_IOMEM=y is selected, it will fall back to the implementations from asm-generic/io.h for IO memcpy. But these fall-back functions just do a memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM || INDIRECT_IOMEM'.

Quoted 5 lines
Quoted 3 lines

This is expected to be applied via sound.git tree?

Yes. At least I have abandoned this patch as part of my big patchset for the IO memcpy. Instead I try to integrate the different parts piece by piece in the different subsystems and archs. I thinks this is better, as suggested by Arnd.

Quoted 2 lines

Then I'll happily take it.

Thank you!

Quoted 33 lines

thanks,

Takashi

Quoted 24 lines
---
  sound/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/Kconfig +1 -1
index 4c036a9a420a..8b40205394fe 100644
@@ -1,7 +1,7 @@
  # SPDX-License-Identifier: GPL-2.0-only
  menuconfig SOUND
  	tristate "Sound card support"
-	depends on HAS_IOMEM || UML
+	depends on HAS_IOMEM || INDIRECT_IOMEM
  	help
  	  If you have a sound card in your computer, i.e. if it can say more
  	  than an occasional beep, say Y.
Signature · 1 line
2.34.1
#3 lore raw
Quoted 17 lines · Julian Vetter
Quoted 13 lines · Takashi Iwai
Quoted 10 lines · Julian Vetter

When building for the UM arch and neither INDIRECT_IOMEM=y, nor HAS_IOMEM=y is selected, it will fall back to the implementations from asm-generic/io.h for IO memcpy. But these fall-back functions just do a memcpy. So, instead of depending on UML, add dependency on 'HAS_IOMEM || INDIRECT_IOMEM'.

Quoted 6 lines
Quoted 1 line

This is expected to be applied via sound.git tree?

Yes. At least I have abandoned this patch as part of my big patchset for the IO memcpy. Instead I try to integrate the different parts piece by piece in the different subsystems and archs. I thinks this is better, as suggested by Arnd.

OK, now applied to for-linus branch.

thanks,

Takashi