login
Header Space

 
 

Re: patch driver-core-warn-about-duplicate-driver-names-on-the-same-bus.patch added to gregkh-2.6 tree

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stas Sergeev <stsp@...>
Cc: Linux kernel <linux-kernel@...>, Dmitry Torokhov <dmitry.torokhov@...>
Date: Friday, May 2, 2008 - 10:07 am

At Wed, 30 Apr 2008 21:45:59 +0400,
Stas Sergeev wrote:

But, they are *not* seperate right now.  snd-pcsp contains pcspkr
functionality.


And this won't work in most cases.  People don't want to replace the
existing pcspkr driver with snd-pcsp.  They don't want to load the
sound subsystem on their systems just because of beep.


If you compare pcspkr.c and pcsp_input.c, it's found that the only
essential difference is the additional check at the head of the event
handler:

	if (atomic_read(&pcsp_chip.timer_active) || !pcsp_chip.pcspkr)
		return 0;

If this can be added dynamically to input pcspkr.c, no big point to
have duped codes.


Distros usually make input-pcspkr as built-in, not as module.
So, snd-pcsp is practically unusable on standard kernels of major
distros as is, unfortunately...


Takashi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: patch driver-core-warn-about-duplicate-driver-names-on-t..., Takashi Iwai, (Fri May 2, 10:07 am)
speck-geostationary