Changeset View
Changeset View
Standalone View
Standalone View
sbin/devd/snd.conf
| # Audio redirection | # Audio redirection | ||||
| notify 0 { | notify 0 { | ||||
| match "system" "SND"; | match "system" "SND"; | ||||
| match "subsystem" "CONN"; | match "subsystem" "CONN"; | ||||
| match "type" "IN"; | match "type" "IN"; | ||||
| match "cdev" "dsp[0-9]+"; | match "cdev" "dsp[0-9]+"; | ||||
| # Other audio servers or device switching commands can be used here | # Other audio servers or device switching commands can be used here | ||||
| # instead of virtual_oss(8). | # instead of virtual_oss(8). | ||||
| # | action "/usr/sbin/virtual_oss_cmd \ | ||||
| # FIXME: We are hardcoding /dev/vdsp.ctl here, simply because it is a | /dev/$(sysrc virtual_oss_default_control_device) -R /dev/$cdev"; | ||||
| # 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"; | |||||
| }; | }; | ||||
| notify 0 { | notify 0 { | ||||
| match "system" "SND"; | match "system" "SND"; | ||||
| match "subsystem" "CONN"; | match "subsystem" "CONN"; | ||||
| match "type" "OUT"; | match "type" "OUT"; | ||||
| match "cdev" "dsp[0-9]+"; | match "cdev" "dsp[0-9]+"; | ||||
| # See comment above. | # 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 { | notify 0 { | ||||
| match "system" "SND"; | match "system" "SND"; | ||||
| match "subsystem" "CONN"; | match "subsystem" "CONN"; | ||||
| match "type" "NODEV"; | match "type" "NODEV"; | ||||
| # No connected devices. Disable both recording and playback to avoid | # No connected devices. Disable both recording and playback to avoid | ||||
| # repeated virtual_oss error messages. | # 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"; | |||||
| }; | }; | ||||