diff --git a/sbin/devd/snd.conf b/sbin/devd/snd.conf index e2dc6d94a299..3fc1cb9f0b0e 100644 --- a/sbin/devd/snd.conf +++ b/sbin/devd/snd.conf @@ -8,7 +8,7 @@ notify 0 { # Other audio servers or device switching commands can be used here # instead of virtual_oss(8). action "/usr/sbin/virtual_oss_cmd \ - /dev/$(sysrc virtual_oss_default_control_device) -R /dev/$cdev"; + /dev/$(sysrc -n virtual_oss_default_control_device) -R /dev/$cdev"; }; notify 0 { @@ -19,7 +19,7 @@ notify 0 { # See comment above. action "/usr/sbin/virtual_oss_cmd \ - /dev/$(sysrc virtual_oss_default_control_device) -P /dev/$cdev"; + /dev/$(sysrc -n virtual_oss_default_control_device) -P /dev/$cdev"; }; notify 0 { @@ -30,5 +30,5 @@ notify 0 { # No connected devices. Disable both recording and playback to avoid # repeated virtual_oss error messages. action "/usr/sbin/virtual_oss_cmd \ - /dev/$(sysrc virtual_oss_default_control_device) -f /dev/null"; + /dev/$(sysrc -n virtual_oss_default_control_device) -f /dev/null"; };