[lkml]   [2009]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] sound: make OSS device number claiming optional
'Twas brillig, and Alan Cox at 05/08/09 10:15 did gyre and gimble:
> On Wed, 05 Aug 2009 15:40:42 +0900
> Tejun Heo <> wrote:
>> If any OSS support is enabled, regardless of built-in or module,
>> sound_core claims full OSS major number (that is, the old 0-255
>> region) to trap open attempts and request sound module automatically.
>> This feature is redundant as chrdev already has such mechanism and no
>> longer used by modern distros. This preemptive claiming prevents
>> alternative OSS implementation.
>> This patch makes the preclaiming optional and adds a config option
>> SOUND_OSS_CORE_PRECLAIM and kernel parameter soundcore.preclaim_oss to
>> control whether preclaim is enabled or not. This allows distros and
>> developers to try new things without rebuilding kernel.
> This looks like a random private devel hack sand I don't see why it's
> appropriate for mainstream, especially as these "new things" don't exist
> mainstream either.

While I'm not familiar enough with the kernel itself to comment on *how*
the patch works, the principle is quite important here.

As far as I know most distros enable snd-*-oss module loading via a
modprobe trick (e.g. in user space) so the change here shouldn't affect
this approach.

However, I certainly want to experiment with osspd and while I hope it's
going to be a good solution generally, it'll only make sense if the user
chooses to use pulseaudio.

If the user decided they want to use pure alsa, then they'll have to
drop back to using snd-*-oss for that instead.

This is all something I'd like to enable without making the user change
kernels based on a preference.

So if this patch is not accepted, I'd still like to see the kernel not
claim this device number, and leave it up to userspace to load the modules.

Sorry if this is not all factually accurate, but I think i've got the
gist right! :)


Colin Guthrie

Day Job:
Tribalogic Limited []
Open Source:
Mandriva Linux Contributor []
PulseAudio Hacker []
Trac Hacker []

 \ /
  Last update: 2009-08-05 11:35    [W:0.093 / U:1.688 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site