Skip to content

Commit 3ccee69

Browse files
Stas Sergeevtiwai
authored andcommitted
snd-pcsp: adjust help texts to frighten users
Added the warning text to the help of snd-pcsp about the possible problem with this driver so that user can know of the problem in advance. Also, removed the obsoleted text about ancient pc-speaker patch in CONFIG_SOUND help. Signed-off-by: Stas Sergeev <stsp@aknet.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b8291ad commit 3ccee69

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎sound/Kconfig‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ config SOUND
2828
and read <file:Documentation/sound/oss/README.modules>; the module
2929
will be called soundcore.
3030

31-
I'm told that even without a sound card, you can make your computer
32-
say more than an occasional beep, by programming the PC speaker.
33-
Kernel patches and supporting utilities to do that are in the pcsp
34-
package, available at <ftp://ftp.infradead.org/pub/pcsp/>.
35-
3631
source "sound/oss/dmasound/Kconfig"
3732

3833
if !M68K

‎sound/drivers/Kconfig‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ menu "Generic devices"
55

66

77
config SND_PCSP
8-
tristate "PC-Speaker support"
8+
tristate "PC-Speaker support (READ HELP!)"
99
depends on PCSPKR_PLATFORM && X86_PC && HIGH_RES_TIMERS
1010
depends on INPUT
1111
depends on SND
@@ -18,11 +18,21 @@ config SND_PCSP
1818

1919
You can compile this as a module which will be called snd-pcsp.
2020

21+
WARNING: if you already have a soundcard, enabling this
22+
driver may lead to a problem. Namely, it may get loaded
23+
before the other sound driver of yours, making the
24+
pc-speaker a default sound device. Which is likely not
25+
what you want. To make this driver play nicely with other
26+
sound driver, you can add this into your /etc/modprobe.conf:
27+
options snd-pcsp index=2
28+
2129
You don't need this driver if you only want your pc-speaker to beep.
2230
You don't need this driver if you have a tablet piezo beeper
2331
in your PC instead of the real speaker.
2432

25-
It should not hurt to say Y or M here in all other cases.
33+
Say N if you have a sound card.
34+
Say M if you don't.
35+
Say Y only if you really know what you do.
2636

2737
config SND_MPU401_UART
2838
tristate

0 commit comments

Comments
 (0)