summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/mixer.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-03 01:29:47 +0000
committerjhb <jhb@FreeBSD.org>2001-01-03 01:29:47 +0000
commit99e2a84a1fd86ed70eb2843ec743bc94f6d83dce (patch)
tree53f4078e7ea2c2bd06123c56aa9583b61d1002a9 /sys/dev/sound/pcm/mixer.h
parentaa1bf8b0b32c122e7edac62650ee078fd65e1d6d (diff)
downloadFreeBSD-src-99e2a84a1fd86ed70eb2843ec743bc94f6d83dce.zip
FreeBSD-src-99e2a84a1fd86ed70eb2843ec743bc94f6d83dce.tar.gz
Add a new API for soundcards that have hardware volume control:
- The mixer_hwmute() function can be called when a soundcard receives a mute request. - The mixer_hwstep() function can be used to adjust the volume of one or both channels. - The 'hw.snd.hwvol_step' sysctl determines the amount that mixer_hwstep() adjusts the volume by on each call. - The 'hw.snd.hwvol_mixer' sysctl specifies the mixer device to adjust the volume on for both functions. The values used correspond to the SOUNDCARD_MIXER_* constants.
Diffstat (limited to 'sys/dev/sound/pcm/mixer.h')
-rw-r--r--sys/dev/sound/pcm/mixer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/mixer.h b/sys/dev/sound/pcm/mixer.h
index 08824fc..b29cc14 100644
--- a/sys/dev/sound/pcm/mixer.h
+++ b/sys/dev/sound/pcm/mixer.h
@@ -33,6 +33,9 @@ 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);
+void mixer_hwmute(device_t dev);
+void mixer_hwstep(device_t dev, int left_step, int right_step);
+
extern void change_bits(mixer_tab *t, u_char *regval, int dev, int chn, int newval);
void mix_setdevs(snd_mixer *m, u_int32_t v);
OpenPOWER on IntegriCloud