Commit Graph

70 Commits

Author SHA1 Message Date
sborrill
21e3c4b6e7 Add support for playback- or capture-only devices by adding
AUDIO_PROP_PLAYBACK and AUDIO_PROP_CAPTURE properties.

From jmcneill@.

Fixes PR#42050
2009-09-29 15:58:54 +00:00
christos
30173a3005 remove siisata and esl. (KIYOHARA Takashi) 2009-01-03 17:44:20 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
wiz
b2d2e8fa61 Whitespace nits. 2007-06-13 00:00:23 +00:00
joerg
5ccf1c578a Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.

This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.

Review and comments from jmcneill@
2007-06-11 13:05:46 +00:00
wiz
8e0f8a9308 Bump date for previous. 2006-03-28 21:43:06 +00:00
kleink
944c7fb436 Make <sys/audioio.h> include prerequisite headers; audio(4) was incomplete
with regard to required headers, and besides that it also matches Solaris.
2006-03-28 21:12:04 +00:00
kent
d5bd8c269f add references to auixp(4) and azalia(4) 2005-06-28 09:21:03 +00:00
wiz
72b7daedb3 Also remove references to sp(4) (same as pss(4)). 2005-06-28 08:43:22 +00:00
wiz
dce48280aa Remove references to removed pss(4). 2005-06-28 08:42:32 +00:00
augustss
8ada967637 Add auacer. 2004-10-10 16:39:36 +00:00
wiz
d173e8655e Various fixes from Sergey Svishchev svs at ropnet ru in private mail.
Some additional "new sentence, new line" changes while I was there.
2004-05-11 22:42:47 +00:00
wiz
8c3f91e23f Bump date for previous. 2004-01-31 21:30:09 +00:00
fredb
7f674884ad Fix a couple of long-standing bugs in the volume control(s) part of the
audio device interface:

1) When attempting to match the appropriate mixer control, we weren't
checking the class label, but only the second level label, so for
devices that had both an "inputs.cd" and a "record.cd", for example,
we could never do the right thing except by chance. For this reason,
evidently, all the record masters were labeled (by the underlying
drivers) either "record.record" or "record.volume", to distinguish
from "outputs.master". We'll now accept "record.master", and document
that as the the new preferred way.

2) More importantly, the model was deficient. Selecting a port on many
chips completely disables most of the level controls, which doesn't play
nice with other applications which are trying to use the interface. Now,
selecting a port simply sets which mixer input control shall be changed,
setting state in the audio layer. In other words, the "mixerout" port
is really selected all the time, enabling the final stage mixer, and
setting "gain" sets the level of the appropriate input. It should be
possible for separate applications to each control the mic, dac, and cd
inputs at the same time using this interface, simply by reiterating their
port selections with each change, but applications that don't bother to
do that aren't any worse off than they were before.

The user is expected to set the master output with another application,
dedicated to that task. Though it is now meaningful to select "no port"
with the audio device interface, to manipulate the master output, there's
no particular reason for an audio device consumer to do that. (I added
the capability in order to restore the initial state of the audio device,
for testing purposes. It might also be useful to users of broken binary-
only applications.)

Observe that the mixer device interface (and so, "mixerctl") still
retains all capabilities, including the ability to set the actual input
port on the chip, overriding the level controls. No change is being made
to the mixer device interface. The mixer device simply presents all the
controls on the chip, with no attempt at abstraction, so there are no
bugs there.

The upshot is, that applications that have been trying to use the audio
device interface to change the volume, such as mplayer, now "just work".

I've tested these changes extensively with "eso" and "eap" since first
proposing them on tech-kern last January, and somewhat with "esm" and a
few others. This closes both PR kern/10221, and PR kern/17159.
2004-01-31 00:07:56 +00:00
wiz
bd46fc1aae Complete typedef of struct audio_info to audio_info_t.
From Jared Yanovich via jmc@openbsd.
2004-01-26 18:17:08 +00:00
wiz
da5b681f33 There is no als(4). 2003-07-04 12:16:05 +00:00
wiz
57526f6563 .Li Dv -> .Dv. 2003-06-26 10:14:07 +00:00
fair
41e36370a8 Update the SEE ALSO list with drivers that have been added since
1997 (when this man page was updated?). Change an ugly .br hack
into .Ss macros. Add paragraph breaks in a few places to improve
readability.
2003-06-11 04:41:17 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
uwe
62acda31f9 Use .Dv for AudioN* and AudioC* 2002-03-13 00:55:02 +00:00
wiz
1ed983bdc8 Fix capitalization error, noted by uwe.
Minor mandoc improvements while I'm here.
2002-03-13 00:18:40 +00:00
uwe
1a318cdecc Fix typo. 2002-02-22 03:03:54 +00:00
ross
4fa402f116 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-13 08:17:26 +00:00
wiz
ace586ad17 Drop trailing whitespace. 2002-02-02 11:11:20 +00:00
augustss
9ce3f751cb A number of small fixes from Sergey Svishchev. 2002-02-02 11:07:36 +00:00
he
7366cfbf4c Add a cross reference to esa(4). 2002-01-23 20:58:20 +00:00
augustss
94a6eb942b Xref. 2001-10-22 22:23:44 +00:00
wiz
f98dcf7b4d Remove a 'the'. 2001-09-30 00:04:29 +00:00
augustss
45a83b31a6 Xref esl(4). 2001-09-29 19:39:51 +00:00
wiz
2cf03896ac Whitespace&punctuation fixes, sort SEE ALSO, sort sections, drop .Pp's,
swap empty lines for .Pp's.
2001-09-11 17:39:00 +00:00
wiz
33e277929f Typos/whitespace. 2001-06-12 14:54:19 +00:00
minoura
c5f4c05d10 Manual page for Yamaha YMF724/740/744/754 PCI audio driver. 2001-03-30 14:34:27 +00:00
augustss
26efb9351b Add clct(4) man page. 2001-01-22 01:28:53 +00:00
rh
ad95c5fc9b Add reference to esm(4) 2001-01-08 20:12:51 +00:00
mycroft
3c20f768a7 Fix formatting glitches. 2000-05-13 15:20:35 +00:00
augustss
425a1525a7 Fix typo. 2000-05-01 09:32:59 +00:00
augustss
afc55c0adf Xref cmpci(4). 2000-04-30 23:51:51 +00:00
tsarna
3fcc80b868 Man page for auvia(4). Also xref fms(4) from audio(4). 2000-03-31 05:49:59 +00:00
soren
874c2bbe49 Fix doubled 'the's. 2000-03-13 22:37:10 +00:00
kleink
5434e486cd Xref clcs(4). 2000-03-06 18:49:11 +00:00
is
13102092c6 Add missing "that" in WSEEK description. By wiz@danbala.ifoer.tuwien.ac.at
in PR 8684.
1999-10-28 09:53:22 +00:00
augustss
ce0a4eadcb Mention uaudio(4). 1999-09-09 12:35:53 +00:00
tron
d57a6fa9e5 Fix typo noted by "Wiz" in PR misc/8061. 1999-07-24 15:06:57 +00:00
kleink
a97e2eb258 Xref eso(4). 1999-07-12 15:20:54 +00:00
kleink
2b0484a3b1 Pasto. 1999-06-16 14:24:11 +00:00
garbled
c1d21e28ed More and more of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-16 01:19:14 +00:00
mycroft
70d4fd76d1 Fix minor formatting error. 1999-03-06 22:40:08 +00:00
augustss
106f74598b Minor touchup and add sv man page. 1998-12-08 14:15:27 +00:00
augustss
8601edec8b Add a midi(4) man page. 1998-08-06 20:45:44 +00:00