diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-05 07:07:03 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-05 07:07:03 +0000 |
commit | a7d7562a9162219c57926fa90b34aad990222b7b (patch) | |
tree | a781c6152b088c4b5e148f084177a1b37ba8aa70 /sys/dev/sound/pcm/mixer.h | |
parent | c89c5ac184c8121ba8c76a673fa9099c1540dcdf (diff) | |
download | FreeBSD-src-a7d7562a9162219c57926fa90b34aad990222b7b.zip FreeBSD-src-a7d7562a9162219c57926fa90b34aad990222b7b.tar.gz |
- Make the 'hwvol_mixer' and 'hwvol_step' variables be specific to a
specific snd_mixer device rather than global across all mixers.
- Add per-mixer mute status and saved mute_level so that the mixer_hwmute()
function can now toggle the mute state when the mute button is pressed.
- Create a dynamic sysctl tree hw.snd.pcmX when a pcm device is registered.
- Move the hw.snd.hwvol_* sysctl's to hw.snd.pcmX.hwvol_* so that they
are now properly device-specific. Eventually when the mixers become
their own devices these sysctl's will move to live under a mixerX tree.
- Change the interface of the hwvol_mixer sysctl so that it reports the
name of the current mixer device instead of the number and is settable
with the name instead of the number.
- Add a new function mixer_hwinit() used to setup the dynamic sysctl's
needed for the hwvol support that can be called by drivers that support
hwvol.
Reviewed by: cg
Diffstat (limited to 'sys/dev/sound/pcm/mixer.h')
-rw-r--r-- | sys/dev/sound/pcm/mixer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/mixer.h b/sys/dev/sound/pcm/mixer.h index b29cc14..f7ad35c 100644 --- a/sys/dev/sound/pcm/mixer.h +++ b/sys/dev/sound/pcm/mixer.h @@ -33,6 +33,7 @@ extern int mixer_ioctl(snddev_info *d, u_long cmd, caddr_t arg); extern int mixer_busy(snd_mixer *m, int busy); extern int mixer_isbusy(snd_mixer *m); +int mixer_hwinit(device_t dev); void mixer_hwmute(device_t dev); void mixer_hwstep(device_t dev, int left_step, int right_step); |