diff options
| author | 2007-07-31 03:11:14 +0000 | |
|---|---|---|
| committer | 2007-07-31 03:11:14 +0000 | |
| commit | 6bf1764f739aa4d9710ce90a6117efd0253cae41 (patch) | |
| tree | 1b426c088bd1fd3eee0741699b6aed90cddcdeb2 /usr.bin/sendbug/sendbug.c | |
| parent | Adapted from DragonflyBSD revisions 1.10 and 1.11: warn when source (diff) | |
| download | wireguard-openbsd-6bf1764f739aa4d9710ce90a6117efd0253cae41.tar.xz wireguard-openbsd-6bf1764f739aa4d9710ce90a6117efd0253cae41.zip | |
always ignore attempts to set the record or play port to 0.
this interface to mixer functionality is very limited, and is only
used for recording. it only recognizes 'mic', 'cd', and 'line' as
valid recording inputs. many devices have other inputs. because of
the way AUDIO_INITINFO works, it is impossible to expand this API to
include all devices.
this fixes another common cause of audioctl(1) problems. AUDIO_GETINFO
returns 0 for record.port when the recording port is something other
than 'mic', 'cd', or 'line', and the subsequent AUDIO_SETINFO would
fail on this.
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
0 files changed, 0 insertions, 0 deletions
