From: Takashi Iwai <tiwai@suse.de>
To: Tejun Heo <tj@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
alsa-devel@alsa-project.org, perex@perex.cz
Subject: Re: [PATCH RESEND] sound: make OSS sound core optional
Date: Wed, 27 Aug 2008 11:09:58 +0200 [thread overview]
Message-ID: <s5hprnubz89.wl%tiwai@suse.de> (raw)
In-Reply-To: <48B50E17.4020106@kernel.org>
At Wed, 27 Aug 2008 10:19:35 +0200,
Tejun Heo wrote:
>
> sound/sound_core.c implements soundcore.ko contains two parts -
> sound_class which is shared by both ALSA and OSS and device
> redirection support for OSS. It's always compiled when any sound
> support is enabled although it's necessary only when OSS (the actual
> one or emulation) is enabled. This is slightly wasteful and as device
> redirection always registers character device region for major 14, it
> prevents alternative implementation.
>
> This patch introduces a new config SOUND_OSS_CORE which is selected
> iff OSS support is actually necessary and build the OSS core part
> conditionally.
>
> If OSS is disabled, soundcore merely contains sound_class but leaving
> it that way seems to be the simplest approach as otherwise sound_class
> should be in ALSA core file if OSS is disabled but should be in
> soundcore if OSS is enabled and there's also the user confusion
> factor.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
Thanks for the patch. I like the idea.
> +config SOUND_OSS_CORE
> + bool
> + default n
> +
> source "sound/oss/dmasound/Kconfig"
This seems missing from the scope.
But, I think this should be rather in the block "if SOUND_PRIME" below.
> --- work.orig/sound/sound_core.c
> +++ work/sound/sound_core.c
(snip)
> +MODULE_ALIAS_CHARDEV_MAJOR(SOUND_MAJOR);
This alias should be in #ifdef CONFIG_SOUND_OSS_CORE.
The module doesn't provide that major without CONFIG_SOUND_OSS_CORE.
Takashi
next prev parent reply other threads:[~2008-08-27 9:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 8:19 [PATCH RESEND] sound: make OSS sound core optional Tejun Heo
2008-08-27 9:09 ` Takashi Iwai [this message]
2008-08-27 9:37 ` Tejun Heo
2008-08-27 9:45 ` Takashi Iwai
2008-08-27 9:57 ` Tejun Heo
2008-08-27 10:04 ` Takashi Iwai
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=s5hprnubz89.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tj@kernel.org \
/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