Skip to contentSkip to conversation

PC speaker dead in 2.5.40?

DISCUSSION Steve Dover 6 participants 8 messages Oct 7, 2002 Input drivers

lore
Share & tools
lore
#0 lore raw

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

#1 lore raw
Quoted 3 lines · Steve Dover

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

Look under all the submenus in the Input section of "menuconfig" for the speaker entry and enable it.

There's a good technical reason why the speaker is an input device, but hiding it in the menus is *bad*.

Quoted 5 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 4 lines
Joseph Fannin
[email protected]

"Anyone who quotes me in their sig is an idiot." -- Rusty Russell.
#2 lore raw
Quoted 9 lines · Joseph Fannin
Quoted 3 lines

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

Look under all the submenus in the Input section of "menuconfig" for the speaker entry and enable it.

There's a good technical reason why the speaker is an input device, but hiding it in the menus is *bad*.

Send me a patch that fixes this - if you know how.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs
#3 lore raw
Quoted 6 lines · Vojtech Pavlik

On Mon, Oct 07, 2002 at 03:08:57AM -0400, Joseph Fannin wrote:
...

Quoted 2 lines

There's a good technical reason why the speaker is an input device, but hiding it in the menus is *bad*.

Send me a patch that fixes this - if you know how.

IMHO the problem istn't to make a patch, it's more a "policy" question:
The problem is that from the point of view of a _user_ it's quite surprising to see the speaker support at the input devices - and if the speaker doesn't work you wouldn't search for an option under "Input device support". From a programmers point of view "Input device support" might be the best place but it will produce much confusion among many users. Is it perhaps possible to move the speaker support to "Character devices"?

TIA
Adrian

Signature · 3 lines
You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox
#4 lore raw
Quoted 2 lines · Adrian Bunk

Is it
perhaps possible to move the speaker support to "Character devices"?

Or how about putting it under "Sound"? Seems logical to me.

Chris

#5 lore raw
In reply to Vojtech Pavlik
Quoted 6 lines · Vojtech Pavlik
Quoted 4 lines · Joseph Fannin
Quoted 3 lines

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

Quoted 7 lines
Quoted 5 lines

Look under all the submenus in the Input section of "menuconfig" for the speaker entry and enable it.

There's a good technical reason why the speaker is an input device, but hiding it in the menus is *bad*.

Send me a patch that fixes this - if you know how.

Okay, find the attached patch against 2.5.40 which creates a new "PC Speaker" submenu -- it's clearly labeled, and higher up on the screen when running make menuconfig.

Signature · 2 lines
Joseph Fannin
[email protected]
drivers/input/Config.in +1 -0
diff -urN linux-2.5.40/drivers/input/Config.in linux-2.5.40-new/drivers/input/Config.in
@@ -32,6 +32,7 @@
 if [ "$CONFIG_INPUT" != "n" ]; then
    source drivers/input/keyboard/Config.in
    source drivers/input/mouse/Config.in
+   source drivers/input/speaker/Config.in
    source drivers/input/joystick/Config.in
    source drivers/input/touchscreen/Config.in
    source drivers/input/misc/Config.in
drivers/input/Makefile +1 -0
diff -urN linux-2.5.40/drivers/input/Makefile linux-2.5.40-new/drivers/input/Makefile
@@ -20,6 +20,7 @@
 obj-$(CONFIG_INPUT_MOUSE)	+= mouse/
 obj-$(CONFIG_INPUT_JOYSTICK)	+= joystick/
 obj-$(CONFIG_INPUT_TOUCHSCREEN)	+= touchscreen/
+obj-$(CONFIG_INPUT_SPEAKER)	+= speaker/
 obj-$(CONFIG_INPUT_MISC)	+= misc/
 
 # The global Rules.make.
drivers/input/misc/Config.help +0 -23
diff -urN linux-2.5.40/drivers/input/misc/Config.help linux-2.5.40-new/drivers/input/misc/Config.help
@@ -6,29 +6,6 @@
 
   If unsure, say Y.
 
-CONFIG_INPUT_PCSPKR
-  Say Y here if you want the standard PC Speaker to be used for
-  bells and whistles.
-
-  If unsure, say Y.
-
-  This driver is also available as a module ( = code which can be
-  inserted in and removed from the running kernel whenever you want).
-  The module will be called pcspkr.o. If you want to compile it as a
-  module, say M here and read <file:Documentation/modules.txt>.
-
-CONFIG_INPUT_SPARCSPKR
-  Say Y here if you want the standard Speaker on Sparc PCI systems
-  to be used for bells and whistles.
-
-  If unsure, say Y.
-
-  This driver is also available as a module ( = code which can be
-  inserted in and removed from the running kernel whenever you want).
-  The module will be called pcspkr.o. If you want to compile it as a
-  module, say M here and read <file:Documentation/modules.txt>.
-
-
 CONFIG_INPUT_UINPUT
   Say Y here if you want to support user level drivers for input
   subsystem accessible under char device 10:223 - /dev/input/uinput.
drivers/input/misc/Config.in +0 -4
diff -urN linux-2.5.40/drivers/input/misc/Config.in linux-2.5.40-new/drivers/input/misc/Config.in
@@ -4,8 +4,4 @@
 
 bool 'Misc' CONFIG_INPUT_MISC
 
-dep_tristate '  PC Speaker support' CONFIG_INPUT_PCSPKR $CONFIG_INPUT $CONFIG_INPUT_MISC
-if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
-   dep_tristate '  SPARC Speaker support' CONFIG_INPUT_SPARCSPKR $CONFIG_INPUT $CONFIG_INPUT_MISC
-fi
 dep_tristate '  User level driver support' CONFIG_INPUT_UINPUT $CONFIG_INPUT $CONFIG_INPUT_MISC
drivers/input/misc/Makefile +0 -2
diff -urN linux-2.5.40/drivers/input/misc/Makefile linux-2.5.40-new/drivers/input/misc/Makefile
@@ -4,8 +4,6 @@
 
 # Each configuration option enables a list of files.
 
-obj-$(CONFIG_INPUT_SPARCSPKR)		+= sparcspkr.o
-obj-$(CONFIG_INPUT_PCSPKR)		+= pcspkr.o
 obj-$(CONFIG_INPUT_UINPUT)		+= uinput.o
 
 # The global Rules.make.
drivers/input/misc/pcspkr.c +0 -94

94 lines not on this page · raw message

drivers/input/misc/sparcspkr.c +0 -189

189 lines not on this page · raw message

drivers/input/speaker/Config.help +29 -0
diff -urN linux-2.5.40/drivers/input/speaker/Config.help linux-2.5.40-new/drivers/input/speaker/Config.help
@@ -0,0 +1,29 @@
+CONFIG_INPUT_SPEAKER
+  Say Y here, and a list available PC speaker drivers will be
+  displayed. These are not drivers for soundcards but for the
+  simple PC speaker "beeps". This option doesn't affect the kernel.
+
+  If unsure, say Y.
+
+CONFIG_INPUT_PCSPKR
+  Say Y here if you want the standard PC Speaker to be used for
+  bells and whistles.
+
+  If unsure, say Y.
+
+  This driver is also available as a module ( = code which can be
+  inserted in and removed from the running kernel whenever you want).
+  The module will be called pcspkr.o. If you want to compile it as a
+  module, say M here and read <file:Documentation/modules.txt>.
+
+CONFIG_INPUT_SPARCSPKR
+  Say Y here if you want the standard Speaker on Sparc PCI systems
+  to be used for bells and whistles.
+
+  If unsure, say Y.
+
+  This driver is also available as a module ( = code which can be
+  inserted in and removed from the running kernel whenever you want).
+  The module will be called pcspkr.o. If you want to compile it as a
+  module, say M here and read <file:Documentation/modules.txt>.
+
drivers/input/speaker/Config.in +11 -0
diff -urN linux-2.5.40/drivers/input/speaker/Config.in linux-2.5.40-new/drivers/input/speaker/Config.in
@@ -0,0 +1,11 @@
+#
+# Input misc drivers configuration
+#
+
+bool 'PC speakers' CONFIG_INPUT_SPEAKER
+
+dep_tristate '  PC Speaker support' CONFIG_INPUT_PCSPKR $CONFIG_INPUT $CONFIG_INPUT_SPEAKER
+if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
+   dep_tristate '  SPARC Speaker support' CONFIG_INPUT_SPARCSPKR $CONFIG_INPUT $CONFIG_INPUT_SPEAKER
+fi
+
drivers/input/speaker/Makefile +12 -0
diff -urN linux-2.5.40/drivers/input/speaker/Makefile linux-2.5.40-new/drivers/input/speaker/Makefile
@@ -0,0 +1,12 @@
+#
+# Makefile for the input speaker drivers.
+#
+
+# Each configuration option enables a list of files.
+
+obj-$(CONFIG_INPUT_SPARCSPKR)		+= sparcspkr.o
+obj-$(CONFIG_INPUT_PCSPKR)		+= pcspkr.o
+
+# The global Rules.make.
+
+include $(TOPDIR)/Rules.make
drivers/input/speaker/pcspkr.c +94 -0

94 lines not on this page · raw message

drivers/input/speaker/sparcspkr.c +189 -0

189 lines not on this page · raw message

#6 lore raw

Re: PC speaker dead in 2.5.40? (resend)

In reply to Vojtech Pavlik
Quoted 6 lines · Vojtech Pavlik
Quoted 4 lines · Joseph Fannin
Quoted 3 lines

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

Quoted 7 lines
Quoted 5 lines

Look under all the submenus in the Input section of "menuconfig" for the speaker entry and enable it.

There's a good technical reason why the speaker is an input device, but hiding it in the menus is *bad*.

Send me a patch that fixes this - if you know how.

Resend of this little patch -- vger didn't like the last one, I think. This creates a new "PC Speaker" submenu -- it's clearly marked and higher up on the "make menuconfig" screen rather than hidden away under "misc".

Signature · 4 lines
Joseph Fannin
[email protected]

"Anyone who quotes me in their sig is an idiot." -- Rusty Russell.
drivers/input/Config.in +1 -0
diff -urN linux-2.5.40/drivers/input/Config.in linux-2.5.40-new/drivers/input/Config.in
@@ -32,6 +32,7 @@
 if [ "$CONFIG_INPUT" != "n" ]; then
    source drivers/input/keyboard/Config.in
    source drivers/input/mouse/Config.in
+   source drivers/input/speaker/Config.in
    source drivers/input/joystick/Config.in
    source drivers/input/touchscreen/Config.in
    source drivers/input/misc/Config.in
drivers/input/Makefile +1 -0
diff -urN linux-2.5.40/drivers/input/Makefile linux-2.5.40-new/drivers/input/Makefile
@@ -20,6 +20,7 @@
 obj-$(CONFIG_INPUT_MOUSE)	+= mouse/
 obj-$(CONFIG_INPUT_JOYSTICK)	+= joystick/
 obj-$(CONFIG_INPUT_TOUCHSCREEN)	+= touchscreen/
+obj-$(CONFIG_INPUT_SPEAKER)	+= speaker/
 obj-$(CONFIG_INPUT_MISC)	+= misc/
 
 # The global Rules.make.
drivers/input/misc/Config.help +0 -23
diff -urN linux-2.5.40/drivers/input/misc/Config.help linux-2.5.40-new/drivers/input/misc/Config.help
@@ -6,29 +6,6 @@
 
   If unsure, say Y.
 
-CONFIG_INPUT_PCSPKR
-  Say Y here if you want the standard PC Speaker to be used for
-  bells and whistles.
-
-  If unsure, say Y.
-
-  This driver is also available as a module ( = code which can be
-  inserted in and removed from the running kernel whenever you want).
-  The module will be called pcspkr.o. If you want to compile it as a
-  module, say M here and read <file:Documentation/modules.txt>.
-
-CONFIG_INPUT_SPARCSPKR
-  Say Y here if you want the standard Speaker on Sparc PCI systems
-  to be used for bells and whistles.
-
-  If unsure, say Y.
-
-  This driver is also available as a module ( = code which can be
-  inserted in and removed from the running kernel whenever you want).
-  The module will be called pcspkr.o. If you want to compile it as a
-  module, say M here and read <file:Documentation/modules.txt>.
-
-
 CONFIG_INPUT_UINPUT
   Say Y here if you want to support user level drivers for input
   subsystem accessible under char device 10:223 - /dev/input/uinput.
drivers/input/misc/Config.in +0 -4
diff -urN linux-2.5.40/drivers/input/misc/Config.in linux-2.5.40-new/drivers/input/misc/Config.in
@@ -4,8 +4,4 @@
 
 bool 'Misc' CONFIG_INPUT_MISC
 
-dep_tristate '  PC Speaker support' CONFIG_INPUT_PCSPKR $CONFIG_INPUT $CONFIG_INPUT_MISC
-if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
-   dep_tristate '  SPARC Speaker support' CONFIG_INPUT_SPARCSPKR $CONFIG_INPUT $CONFIG_INPUT_MISC
-fi
 dep_tristate '  User level driver support' CONFIG_INPUT_UINPUT $CONFIG_INPUT $CONFIG_INPUT_MISC
drivers/input/misc/Makefile +0 -2
diff -urN linux-2.5.40/drivers/input/misc/Makefile linux-2.5.40-new/drivers/input/misc/Makefile
@@ -4,8 +4,6 @@
 
 # Each configuration option enables a list of files.
 
-obj-$(CONFIG_INPUT_SPARCSPKR)		+= sparcspkr.o
-obj-$(CONFIG_INPUT_PCSPKR)		+= pcspkr.o
 obj-$(CONFIG_INPUT_UINPUT)		+= uinput.o
 
 # The global Rules.make.
drivers/input/misc/pcspkr.c +0 -94

94 lines not on this page · raw message

drivers/input/misc/sparcspkr.c +0 -189

189 lines not on this page · raw message

drivers/input/speaker/Config.help +29 -0
diff -urN linux-2.5.40/drivers/input/speaker/Config.help linux-2.5.40-new/drivers/input/speaker/Config.help
@@ -0,0 +1,29 @@
+CONFIG_INPUT_SPEAKER
+  Say Y here, and a list available PC speaker drivers will be
+  displayed. These are not drivers for soundcards but for the
+  simple PC speaker "beeps". This option doesn't affect the kernel.
+
+  If unsure, say Y.
+
+CONFIG_INPUT_PCSPKR
+  Say Y here if you want the standard PC Speaker to be used for
+  bells and whistles.
+
+  If unsure, say Y.
+
+  This driver is also available as a module ( = code which can be
+  inserted in and removed from the running kernel whenever you want).
+  The module will be called pcspkr.o. If you want to compile it as a
+  module, say M here and read <file:Documentation/modules.txt>.
+
+CONFIG_INPUT_SPARCSPKR
+  Say Y here if you want the standard Speaker on Sparc PCI systems
+  to be used for bells and whistles.
+
+  If unsure, say Y.
+
+  This driver is also available as a module ( = code which can be
+  inserted in and removed from the running kernel whenever you want).
+  The module will be called pcspkr.o. If you want to compile it as a
+  module, say M here and read <file:Documentation/modules.txt>.
+
drivers/input/speaker/Config.in +11 -0
diff -urN linux-2.5.40/drivers/input/speaker/Config.in linux-2.5.40-new/drivers/input/speaker/Config.in
@@ -0,0 +1,11 @@
+#
+# Input misc drivers configuration
+#
+
+bool 'PC speakers' CONFIG_INPUT_SPEAKER
+
+dep_tristate '  PC Speaker support' CONFIG_INPUT_PCSPKR $CONFIG_INPUT $CONFIG_INPUT_SPEAKER
+if [ "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC64" = "y" ]; then
+   dep_tristate '  SPARC Speaker support' CONFIG_INPUT_SPARCSPKR $CONFIG_INPUT $CONFIG_INPUT_SPEAKER
+fi
+
drivers/input/speaker/Makefile +12 -0
diff -urN linux-2.5.40/drivers/input/speaker/Makefile linux-2.5.40-new/drivers/input/speaker/Makefile
@@ -0,0 +1,12 @@
+#
+# Makefile for the input speaker drivers.
+#
+
+# Each configuration option enables a list of files.
+
+obj-$(CONFIG_INPUT_SPARCSPKR)		+= sparcspkr.o
+obj-$(CONFIG_INPUT_PCSPKR)		+= pcspkr.o
+
+# The global Rules.make.
+
+include $(TOPDIR)/Rules.make
drivers/input/speaker/pcspkr.c +94 -0

94 lines not on this page · raw message

drivers/input/speaker/sparcspkr.c +189 -0

189 lines not on this page · raw message

#7 lore raw
In reply to Steve Dover
Quoted 3 lines · Steve Dover

Configuring a kernel with Sound support with either OSS or ALSA, I still get nothing from my PC speaker. Works fine under 2.4.18.

make menuconfig

input_device_support->misc->pc_speaker_support.

Switch it on.

Rob