public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: Linux kernel <linux-kernel@vger.kernel.org>
Cc: Dmitry Torokhov <dtor-oss@comcast.net>, Takashi Iwai <tiwai@suse.de>
Subject: [patch][rfc] depend pcspkr on CONFIG_EMBEDDED
Date: Sun, 18 Oct 2009 01:22:27 +0400	[thread overview]
Message-ID: <4ADA3593.4010607@aknet.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

Hello.

As most of the problems with snd-pcsp
are now settled and the major distros
are starting to unblacklist it and use
instead of pcspkr:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539767
I'd like to do that sneaky thing.
The major argument for keeping pcspkr
I've heard, was that it doesn't require
the entire ALSA stack, and in this
case I think it is usefull only with
CONFIG_EMBEDDED. Right now it is a common
situation when the both modules are
built, and whichever gets loaded first,
works.
So can something like the attached
patch be applied?

---
Depend pcspkr on CONFIG_EMBEDDED to reduce
the chances of both the pcspkr and snd-pcsp
being built together. pcspkr is good only
by not requiring ALSA; apart from that,
snd-pcsp does everything.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>

[-- Attachment #2: pcspkr_dep.diff --]
[-- Type: text/x-patch, Size: 711 bytes --]

diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
index 02f4f8f..3571569 100644
--- a/drivers/input/misc/Kconfig
+++ b/drivers/input/misc/Kconfig
@@ -14,10 +14,14 @@ if INPUT_MISC
 
 config INPUT_PCSPKR
 	tristate "PC Speaker support"
-	depends on PCSPKR_PLATFORM
+	depends on PCSPKR_PLATFORM && EMBEDDED
 	help
 	  Say Y here if you want the standard PC Speaker to be used for
-	  bells and whistles.
+	  bells and whistles. This driver is small and is good when you
+	  do not need any other sounds from your machine.
+	  There is another driver that does the same and also has the
+	  PCM capabilities, called snd-pcsp, but it requires the entire
+	  ALSA stack.
 
 	  If unsure, say Y.
 

             reply	other threads:[~2009-10-17 21:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-17 21:22 Stas Sergeev [this message]
2009-10-18  7:57 ` [patch][rfc] depend pcspkr on CONFIG_EMBEDDED Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ADA3593.4010607@aknet.ru \
    --to=stsp@aknet.ru \
    --cc=dtor-oss@comcast.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox