mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
Sponsored by: The FreeBSD Foundation MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D53175
26 lines
751 B
Text
26 lines
751 B
Text
# Audio redirection
|
|
notify 0 {
|
|
match "system" "SND";
|
|
match "subsystem" "CONN";
|
|
match "type" "IN";
|
|
match "cdev" "dsp[0-9]+";
|
|
|
|
# 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";
|
|
};
|
|
|
|
notify 0 {
|
|
match "system" "SND";
|
|
match "subsystem" "CONN";
|
|
match "type" "OUT";
|
|
match "cdev" "dsp[0-9]+";
|
|
|
|
# See comment above.
|
|
action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -P /dev/$cdev";
|
|
};
|