<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/speaker, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2009-06-25T18:46:30Z</updated>
<entry>
<title>Change the type of uio_resid member of struct uio from int to ssize_t.</title>
<updated>2009-06-25T18:46:30Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2009-06-25T18:46:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f80ce043db0c82b6f341ab58bb8b840c0dfd69e'/>
<id>urn:sha1:9f80ce043db0c82b6f341ab58bb8b840c0dfd69e</id>
<content type='text'>
Note that this does not actually enable full-range i/o requests for
64 architectures, and is done now to update KBI only.

Tested by:	pho
Reviewed by:	jhb, bde (as part of the review of the bigger patch)
</content>
</entry>
<entry>
<title>Remove unneeded checks of device unit number from speaker(4).</title>
<updated>2009-01-25T09:20:59Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-01-25T09:20:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d456252aa78001624aba124b269801a30128116'/>
<id>urn:sha1:8d456252aa78001624aba124b269801a30128116</id>
<content type='text'>
Calls on the cdev can only be made on existing devices. This means we
don't have to check the value of dev2unit().
</content>
</entry>
<entry>
<title>Replace all calls to minor() with dev2unit().</title>
<updated>2008-09-27T08:51:18Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-09-27T08:51:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6bfa9a2d66dd0e00182017d6741d44e54d0b2cca'/>
<id>urn:sha1:6bfa9a2d66dd0e00182017d6741d44e54d0b2cca</id>
<content type='text'>
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
</content>
</entry>
<entry>
<title>Move speaker a lot closer to style(9)</title>
<updated>2008-05-15T01:22:48Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-05-15T01:22:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=338c585e38c1bb047f6febb2ce98c78e0cc02788'/>
<id>urn:sha1:338c585e38c1bb047f6febb2ce98c78e0cc02788</id>
<content type='text'>
Submitted by:	Martin Voros &lt;martin_voros@yahoo.com&gt;
</content>
</entry>
<entry>
<title>Make speaker a pseudo device driver instead of attaching to a PnP id.</title>
<updated>2008-03-26T21:33:41Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-03-26T21:33:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=93f5134aaf829826dbcbea457bfeb27389761854'/>
<id>urn:sha1:93f5134aaf829826dbcbea457bfeb27389761854</id>
<content type='text'>
If somebody cleaned this code up to proper style(9), it could become
a great educational starting point for aspiring kernel hackers.
</content>
</entry>
<entry>
<title>The "free-lance" timer in the i8254 is only used for the speaker</title>
<updated>2008-03-26T20:09:21Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-03-26T20:09:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e46598588587b4897f6604489364f83fffd4d033'/>
<id>urn:sha1:e46598588587b4897f6604489364f83fffd4d033</id>
<content type='text'>
these days, so de-generalize the acquire_timer/release_timer api
to just deal with speakers.

The new (optional) MD functions are:
	timer_spkr_acquire()
	timer_spkr_release()
and
	timer_spkr_setfreq()

the last of which configures the timer to generate a tone of a given
frequency, in Hz instead of 1/1193182th of seconds.

Drop entirely timer2 on pc98, it is not used anywhere at all.

Move sysbeep() to kern/tty_cons.c and use the timer_spkr*() if
they exist, and do nothing otherwise.

Remove prototypes and empty acquire-/release-timer() and sysbeep()
functions from the non-beeping archs.

This eliminate the need for the speaker driver to know about
i8254frequency at all.  In theory this makes the speaker driver MI,
contingent on the timer_spkr_*() functions existing but the driver
does not know this yet and still attaches to the ISA bus.

Syscons is more tricky, in one function, sc_tone(), it knows the hz
and things are just fine.

In the other function, sc_bell() it seems to get the period from
the KDMKTONE ioctl in terms if 1/1193182th second, so we hardcode
the 1193182 and leave it at that.  It's probably not important.

Change a few other sysbeep() uses which obviously knew that the
argument was in terms of i8254 frequency, and leave alone those
that look like people thought sysbeep() took frequency in hertz.

This eliminates the knowledge of i8254_freq from all but the actual
clock.c code and the prof_machdep.c on amd64 and i386, where I think
it would be smart to ask for help from the timecounters anyway [TBD].
</content>
</entry>
<entry>
<title>Rename timer0_max_count to i8254_max_count.</title>
<updated>2008-03-26T15:03:24Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-03-26T15:03:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ebfbcd612ac0c9fb83ba3b0c57ef40124cdd8187'/>
<id>urn:sha1:ebfbcd612ac0c9fb83ba3b0c57ef40124cdd8187</id>
<content type='text'>
Rename timer0_real_max_count to i8254_real_max_count and make it static.
Rename timer_freq to i8254_freq and make it a loader tunable.
</content>
</entry>
<entry>
<title>Now that tone &amp; delay times are correct (independent of hz), adjust</title>
<updated>2007-06-04T09:27:13Z</updated>
<author>
<name>Brian Somers</name>
<email>brian@FreeBSD.org</email>
</author>
<published>2007-06-04T09:27:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7344a290dc7026c36e2eab8402a4d1547be6104f'/>
<id>urn:sha1:7344a290dc7026c36e2eab8402a4d1547be6104f</id>
<content type='text'>
playtone() so that it uses times of 1/100ths of a second.

Now 'time echo T60ABC &gt;/dev/speaker' takes ~3 seconds.

MFC after:		2 weeks
Problem noted by:	dwmalone
</content>
</entry>
<entry>
<title>Speaker durations are specified in 1/100ths of a second according to</title>
<updated>2007-06-04T08:33:18Z</updated>
<author>
<name>Brian Somers</name>
<email>brian@FreeBSD.org</email>
</author>
<published>2007-06-04T08:33:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b2424ac045492b7c57c7bfea7356617921ca48aa'/>
<id>urn:sha1:b2424ac045492b7c57c7bfea7356617921ca48aa</id>
<content type='text'>
spkr(4).

PR:		70610, 67995
Submitted by:	dada at sbox dot tugraz dot at (modulo one fix)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Add /dev/speaker support to amd64.</title>
<updated>2005-11-11T09:57:32Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-11-11T09:57:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d8200ff0c1e1847fd90a969ae8dcf86feb4c28c'/>
<id>urn:sha1:6d8200ff0c1e1847fd90a969ae8dcf86feb4c28c</id>
<content type='text'>
The following repo-copies were made (by Mark Murray):

sys/i386/isa/spkr.c -&gt; sys/dev/speaker/spkr.c
sys/i386/include/speaker.h -&gt; sys/dev/speaker/speaker.h
share/man/man4/man4.i386/spkr.4 -&gt; share/man/man4/spkr.4
</content>
</entry>
</feed>
