all: beep
pcspeaker.o: pcspeaker.c
gcc -pipe -mpreferred-stack-boundary=2 -march=i386 -O2 -D__KERNEL__ -I../include -I/home/ilatypov/linux/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -DMODULE -DMODVERSIONS -include /home/ilatypov/linux/include/linux/modversions.h -c pcspeaker.c -o pcspeaker.o
clean:
rm -rf beep *.o *~ *.gdb
> Rather than porting it to Linux I chose a simple option of copying
> the ioctl PC speaker code into a skeleton misc character device
> driver. As a result I can issue ioctl "beep" calls against my
> /dev/pcspeaker (character device with major number 10, minor number
> 240). E.g., replacing "/dev/console" with "/dev/pcspeaker" in
> PCMCIA cardmgr.c will revive its sound effects.
Ug. I have thought about this problem as well. I plan to make it a
/dev/input driver. Especially since I plan to migrate the VT code over
to input api. This will allow use to the speaker with or without the
VT tty system.
Hi!
> I guess it is not easy to produce a series of sounds without
> waiting each note to finish. There is an 8 year old PC speaker
> driver for BSD kernel that performs the BASIC PLAY lines in kernel.
>
> Rather than porting it to Linux I chose a simple option of copying
> the ioctl PC speaker code into a skeleton misc character device
> driver. As a result I can issue ioctl "beep" calls against my
> /dev/pcspeaker (character device with major number 10, minor number
> 240). E.g., replacing "/dev/console" with "/dev/pcspeaker" in
> PCMCIA cardmgr.c will revive its sound effects.
Snip... There's driver enabling you to play mp3-s on pc speaker (etc, it
does full /dev/dsp).... Separate task but maybe you wanted to know...
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.
Am Sonntag, 23. Dezember 2001 02:30 schrieb Pavel Machek:
> Hi!
>
> > I guess it is not easy to produce a series of sounds without
> > waiting each note to finish. There is an 8 year old PC speaker
> > driver for BSD kernel that performs the BASIC PLAY lines in kernel.
> >
> > Rather than porting it to Linux I chose a simple option of copying
> > the ioctl PC speaker code into a skeleton misc character device
> > driver. As a result I can issue ioctl "beep" calls against my
> > /dev/pcspeaker (character device with major number 10, minor number
> > 240). E.g., replacing "/dev/console" with "/dev/pcspeaker" in
> > PCMCIA cardmgr.c will revive its sound effects.
>
> Snip... There's driver enabling you to play mp3-s on pc speaker (etc, it
> does full /dev/dsp).... Separate task but maybe you wanted to know...
Does anybody know, where this driver is? (Homepage)
Thanks in advance,
Johnny
Hans-Christian Armingeon <[email protected]>, on Mon Dec 24, 2001 [05:08:33 PM] said:
> Am Sonntag, 23. Dezember 2001 02:30 schrieb Pavel Machek:
> >
[...]
> > Snip... There's driver enabling you to play mp3-s on pc speaker (etc, it
> > does full /dev/dsp).... Separate task but maybe you wanted to know...
> Does anybody know, where this driver is? (Homepage)
>
> Thanks in advance,
>
> Johnny
Hi.
I last got it from here:
ftp://ftp.uk.linux.org/pub/people/dwmw2/pcsp/
David Woodhouse was maintaining it... given the
limitations of the pc speaker, it really is pretty amazing:)
Paul
[email protected]