aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd/snd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/devd/snd.conf')
-rw-r--r--sbin/devd/snd.conf14
1 files changed, 6 insertions, 8 deletions
diff --git a/sbin/devd/snd.conf b/sbin/devd/snd.conf
index 5ca0be86e246..e2dc6d94a299 100644
--- a/sbin/devd/snd.conf
+++ b/sbin/devd/snd.conf
@@ -7,12 +7,8 @@ notify 0 {
# Other audio servers or device switching commands can be used here
# instead of virtual_oss(8).
- #
- # FIXME: We are hardcoding /dev/vdsp.ctl here, simply because it is a
- # common virtual_oss control device name. Until we find a proper way to
- # define control devices here, /dev/vdsp.ctl can be changed to the
- # control device of choice.
- action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -R /dev/$cdev";
+ action "/usr/sbin/virtual_oss_cmd \
+ /dev/$(sysrc virtual_oss_default_control_device) -R /dev/$cdev";
};
notify 0 {
@@ -22,7 +18,8 @@ notify 0 {
match "cdev" "dsp[0-9]+";
# See comment above.
- action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -P /dev/$cdev";
+ action "/usr/sbin/virtual_oss_cmd \
+ /dev/$(sysrc virtual_oss_default_control_device) -P /dev/$cdev";
};
notify 0 {
@@ -32,5 +29,6 @@ notify 0 {
# No connected devices. Disable both recording and playback to avoid
# repeated virtual_oss error messages.
- action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -f /dev/null";
+ action "/usr/sbin/virtual_oss_cmd \
+ /dev/$(sysrc virtual_oss_default_control_device) -f /dev/null";
};