Skip to contentSkip to conversation

sound: Disable the build of OSS drivers

PATCH In review Takashi Iwai 3 participants 3 messages May 11, 2017 – May 12, 2017 Sound

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sound: Disable the build of OSS drivers

OSS drivers are left as badly unmaintained, and now we're facing a problem to clean up the hackish set_fs() usage in their codes. Since most of drivers have been covered by ALSA, and the others are dead old and inactive, let's leave them RIP.

This patch is the first step: disable the build of OSS drivers. We'll eventually drop the whole codes and clean up later.

---

v1->v2: Smaller changes, as Linus and Randy suggested.
The first dmasound Kconfig inclusion is still commented out since it's shorter/simpler in the end.

 sound/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/Kconfig +2 -1
index ee2e69a9ecd1..de23fc39cec8 100644
@@ -54,7 +54,7 @@ config SOUND_OSS_CORE_PRECLAIM
 
 	  If unsure, say Y.
 
-source "sound/oss/dmasound/Kconfig"
+# source "sound/oss/dmasound/Kconfig"
 
 if !M68K && !UML
 
@@ -115,6 +115,7 @@ endif # SND
 menuconfig SOUND_PRIME
 	tristate "Open Sound System (DEPRECATED)"
 	select SOUND_OSS_CORE
+	depends on BROKEN
 	help
 	  Say 'Y' or 'M' to enable Open Sound System drivers.
 
Signature · 1 line
2.12.2
Tested-by on v2 1/1
#1 lore raw
Quoted 9 lines · Takashi Iwai

OSS drivers are left as badly unmaintained, and now we're facing a problem to clean up the hackish set_fs() usage in their codes. Since most of drivers have been covered by ALSA, and the others are dead old and inactive, let's leave them RIP.

This patch is the first step: disable the build of OSS drivers. We'll eventually drop the whole codes and clean up later.

Quoted 31 lines

---

v1->v2: Smaller changes, as Linus and Randy suggested.
The first dmasound Kconfig inclusion is still commented out since it's shorter/simpler in the end.

 sound/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/Kconfig +2 -1
index ee2e69a9ecd1..de23fc39cec8 100644
@@ -54,7 +54,7 @@ config SOUND_OSS_CORE_PRECLAIM
 
 	  If unsure, say Y.
 
-source "sound/oss/dmasound/Kconfig"
+# source "sound/oss/dmasound/Kconfig"
 
 if !M68K && !UML
 
@@ -115,6 +115,7 @@ endif # SND
 menuconfig SOUND_PRIME
 	tristate "Open Sound System (DEPRECATED)"
 	select SOUND_OSS_CORE
+	depends on BROKEN
 	help
 	  Say 'Y' or 'M' to enable Open Sound System drivers.
 
Signature · 1 line
~Randy
#2 lore raw
In reply to Takashi Iwai

Hi Iwai-san,

Quoted 13 lines · Takashi Iwai

OSS drivers are left as badly unmaintained, and now we're facing a problem to clean up the hackish set_fs() usage in their codes. Since most of drivers have been covered by ALSA, and the others are dead old and inactive, let's leave them RIP.

This patch is the first step: disable the build of OSS drivers. We'll eventually drop the whole codes and clean up later.

sound/Kconfig config SOUND_OSS_CORE_PRECLAIM · line 57

Quoted 5 lines
sound/Kconfig +1 -1
@@ -54,7 +54,7 @@ config SOUND_OSS_CORE_PRECLAIM
 
          If unsure, say Y.
 
-source "sound/oss/dmasound/Kconfig"
+# source "sound/oss/dmasound/Kconfig"

Please note the dmasound drivers do not have ALSA equivalents.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds