linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-14 16:58 Stas Sergeev
  2002-08-14 22:44 ` Andrew Rodland
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-08-14 16:58 UTC (permalink / raw)
  To: Denis Vlasenko; +Cc: linux-kernel

Hello.

Denis Vlasenko wrote:
>> The latest patch for 2.4.18 kernel
>> is available here:
>> http://www.geocities.com/stssppnn/pcsp.html
> Tested. Works for playing MP3s.
Thanks for your testing, indeed my primary
goal was to make the sound quality acceptable
even for playing MP3s.
With the motherboard's output attached to an
external speakers the quality is definitely
acceptable, but for the internal beeper I am not
shure if it is possible to really enjoy MP3s however:)


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-31 13:28 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-08-31 13:28 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

Hello.

Pavel Machek wrote:
> What problems does Jaroslav have with the driver?
This one:
http://www.alsa-project.org/archive/alsa-user/msg04284.html
But this is 2 years old so it may be obsolete:)


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-16 16:19 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-08-16 16:19 UTC (permalink / raw)
  To: Albert D. Cahalan; +Cc: Andrew Rodland, linux-kernel

Hello.

Albert D. Cahalan wrote:
>> as it's opened it starts generating some horrible clicks and a
>> high-pitched whine.
>> Do I blame my motherboard (actually, a laptop)? Is there any way to 
>> fix this, or at least improve it?
> Adding a capacitor is supposed to help a PC speaker
> sound driver.
Ah, of course, that's what Denis Vlasenko was talking
about, now I see.
Clicks are caused by disabled ints, but whine is another
problem.
Recalling my old 386 board where I tried similar driver
under DOS and it also produced high pitched tone so I
ended up adding a capacitor, which solved the problem.
Now I think that the better solution is to add an option
to use higher modulation rates.
I have added an option to use 36KHz instead of 18.5KHz.
I beleive that this is far above the frequency range of
any motherboard and can solve the problem.

Andrew Rodland, could you please test the new patch from
my page and see if enabling the high freq modulation fixes
your problem, at least whine, not clicks?


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-15 14:34 Stas Sergeev
  2002-08-26 11:21 ` Pavel Machek
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-08-15 14:34 UTC (permalink / raw)
  To: Denis Vlasenko; +Cc: linux-kernel

Hello.

Denis Vlasenko wrote:
 > I'm afraid I'll disappoint you guys but chances of
 > getting this into mainline
Well, I not counting on that too much myself too,
but only because the code is currently not ready.

 > 1.New motherboards have built-in sound,
Not all af them (my K7M doesn't) and there are a
lot of old ones. Note that linux still supports 386.

 > it may be crappy but definitely
 >   better than PC speaker.
Of course but they require an external speakers while
the speaker is always present:)

 > Since they may
 >   be wired differently, you can't be sure which way you
 > can force maximum amplitude
 >   on a particular mobo (there are 2 or 3 ways to reach 
 > max on different mobos.
Hmm, that sounds strange to me... Could you provide
some details?

 > 3.It loads CPU enormously.
Hmm, but it shouldn't. It used to work on my 486DX4-120
without loading CPU too much (not more than 3% - 5%) and
on my Athlon700 the load is not noticeable absolutely.
Yes, it speeds up the timer ints from 100Hz to 18.5KHz,
but the handler is very lightweight, what it does it
mainly just restarts the timer. What is this CPU you
have there that gets overloaded?

 > In short: making it work right on wide variety of 
 > hardware is next to impossible
And I think quite opposite: it works already on most
hardware and with trivial workarounds like disabling
APM idle calls, it can work on even more. What it really
doesn't like is when interrupts are disabled for too long,
but, as noted by Daniel Phillips, this is a bad condition
for many other things as well.

 > and even then results are mediocre (low volume, radio
 > quality).
Yep, that's the tradeoff for getting 6-bit sound from
a single-bit device:)

 > Maybe ALSA team have some member
 > crazy enough to join you.
The main problem with ALSA, which can also be a final
problem of getting that in, is that Jaroslav doesn't
like the whole idea of a pc-speaker driver. But I have
a hope that if the driver works well and the code is
also good, he may reconsider:)

 > It won't work well for everybody, then it won't live in
 > mainline.
Hey, how many drivers are marked Absolete, Experemental
or even Dangerous? This driver can be marked Experemental
at the end.

 > Because newcomers will enable it, be pissed off with crap 
 > sound etc...
Guess what the most newcomers does with the
CONFIG_EXPEREMENTAL option? :)

 > Keeping it as a separate patch is completely sane thing 
 > to do.
... at least for the near future, yes. But probably not forever
as there appears to be some demand, even more than I 
initially expected. After all I think that user's demand is 
rather strong argument for having any particular feature 
when the contrary arguments is only that it won't work in
some rare cases (but won't break anything either).


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-14 23:28 Stas Sergeev
  2002-08-15 10:46 ` Daniel Phillips
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-08-14 23:28 UTC (permalink / raw)
  To: Andrew Rodland; +Cc: linux-kernel

Hello.

Andrew Rodland wrote:
> I can get some pretty decent sound out of it, but I also get some
> horrible noise. Even if I send the driver a stream of zeroes, as soon
> as it's opened it starts generating some horrible clicks and a
> high-pitched whine.
> Do I blame my motherboard (actually, a laptop)?
Yes because for most people it works pretty
fine:)

> Is there any way to fix this, or at least improve it?
Well, it was reported that CONFIG_APM_CPU_IDLE
causes such noises on some machines and even
CONFIG_APM_ALLOW_INTS doesn't fix the problem.
I have included a workaround that disables idle calls
during a playback. Are you using the latest patch from
my page (for 2.4.19 now)?
Also try disabling APM manually. If this doesn't
help then this is another problem but anyway someone is
disabling interrups for the large periods, (hopefully)
only this can cause such an effect. Make sure that
the hard drive is not active during a playback
because it also distorts sound by disabling interrupts
for too long.


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [ANNOUNCE] New PC-Speaker driver
@ 2002-08-14 16:46 Stas Sergeev
  0 siblings, 0 replies; 26+ messages in thread
From: Stas Sergeev @ 2002-08-14 16:46 UTC (permalink / raw)
  To: Michael Knigge; +Cc: linux-kernel

Hello.

Michael Knigge wrote:
 > Oh, I would love to see that thing in the Standard-Kernel....
Yes, I'd also like to see it there, but
for now I don't know if/when this can be
achieved.
As pointed by David Woodhouse (from whom
I've stolen the code just because I felt
it was not updated for tooo long:) the main
problem is that this driver, dispite no longer
touching irq.c (the latest patch doesn't touch
it) still speeds up the timer (this is
unavoidable). Well, as in 2.5 HZ is configurable,
this is probably a way to go (but I haven't
yet played with 2.5).
However, since 2.5 uses ALSA rather than OSS, I
think I have to make an ALSA port before thinking
about an integration. But even if this is done,
somehow this must be dealt with:
http://www.alsa-project.org/archive/alsa-user/msg04284.html

So there are anough of long-term issues and for
2.4 solving them is not possible.
My goal for 2.4 is to get rid of the native fops
and use OSS fops instead (USE_OSS_FOPS in pcsp.h
must be set to 1) but even this doesn't work very
well: when CPU load is high, my output routines
are called with the sound buffer entirely zeroed
out! I don't know who wipes out the buffer on a
high CPU load and as the problem is deeply buried
in the OSS internals (not in my driver) I don't
know how to deal with that.

 > Thanks for your work! This is something I was missing for
 > years!
Thanks:) I'll try to make this driver acceptable
for inclusion, but this will take *a lot* of time.


^ permalink raw reply	[flat|nested] 26+ messages in thread
* [ANNOUNCE] New PC-Speaker driver
@ 2002-07-29  9:29 Stas Sergeev
  2002-08-14 16:06 ` Denis Vlasenko
  0 siblings, 1 reply; 26+ messages in thread
From: Stas Sergeev @ 2002-07-29  9:29 UTC (permalink / raw)
  To: linux-kernel

Hello.

For all those people who still
don't have a sound card I want to
introduce a pc-speaker driver.
There were some other pc-speaker
drivers floating over the net, but
AFAIK no one is really finished and
usable.
My driver is originally based on
Michael Beck and David Woodhouse
driver, but it is havily reworked
and pretends to be 100% OSS compatible
producing nearly the best sound
one can ever get from pc-speaker.
Well, there is (currently) no
intention to get it into the mainstream
kernel so don't treat it too seriously.
However any comments or bugreports are
appreciated.

The latest patch for 2.4.18 kernel
is available here:
http://www.geocities.com/stssppnn/pcsp.html


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2002-08-31 13:32 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-14 16:58 [ANNOUNCE] New PC-Speaker driver Stas Sergeev
2002-08-14 22:44 ` Andrew Rodland
2002-08-15 13:18   ` Denis Vlasenko
2002-08-15 10:42     ` Daniel Phillips
2001-11-02  1:25       ` Pavel Machek
2002-08-15 10:57       ` Alan Cox
2002-08-15 11:28         ` Daniel Phillips
2002-08-15 16:34       ` Denis Vlasenko
2002-08-15 11:55         ` Daniel Phillips
2002-08-15 14:34         ` Helge Hafting
2002-08-18  8:49           ` Daniel Phillips
2002-08-16  7:30   ` Albert D. Cahalan
  -- strict thread matches above, loose matches on Subject: below --
2002-08-31 13:28 Stas Sergeev
2002-08-16 16:19 Stas Sergeev
2002-08-15 14:34 Stas Sergeev
2002-08-26 11:21 ` Pavel Machek
2002-08-26 18:33   ` Thunder from the hill
2002-08-14 23:28 Stas Sergeev
2002-08-15 10:46 ` Daniel Phillips
2002-08-14 16:46 Stas Sergeev
2002-07-29  9:29 Stas Sergeev
2002-08-14 16:06 ` Denis Vlasenko
2002-08-14 11:33   ` Michael Knigge
2002-08-14 12:24     ` David Woodhouse
2002-08-14 23:14       ` Daniel Phillips
2002-08-14 23:19         ` Daniel Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).