summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDeanna Phillips <deanna@cvs.openbsd.org>2007-07-31 16:14:27 +0000
committerDeanna Phillips <deanna@cvs.openbsd.org>2007-07-31 16:14:27 +0000
commit7a3c4ca27908ce3f8cf4c61564b300fd9646a8cc (patch)
tree5ac695acb9166dba6119d8718269e966ba1221bc /usr.sbin
parentf88c2e020d5aa16672d42f95d7d87f8e64d86e13 (diff)
In the mixer to device level conversions, round down to the nearest
valid step, and keep them in sync. This lets audio(4) set exact gain levels based on the mixer delta, and unbreaks volume up/down buttons in wscons. This also avoids a divide by zero that could occur if the generic mixer init found an amplifier with zero steps. Problem noticed and tested by jmc@, similar diff tested by krw@
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions