Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sbin/devd/snd.conf
102456 views
1
# Audio redirection
2
notify 0 {
3
match "system" "SND";
4
match "subsystem" "CONN";
5
match "type" "IN";
6
match "cdev" "dsp[0-9]+";
7
8
# Other audio servers or device switching commands can be used here
9
# instead of virtual_oss(8).
10
#
11
# FIXME: We are hardcoding /dev/vdsp.ctl here, simply because it is a
12
# common virtual_oss control device name. Until we find a proper way to
13
# define control devices here, /dev/vdsp.ctl can be changed to the
14
# control device of choice.
15
action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -R /dev/$cdev";
16
};
17
18
notify 0 {
19
match "system" "SND";
20
match "subsystem" "CONN";
21
match "type" "OUT";
22
match "cdev" "dsp[0-9]+";
23
24
# See comment above.
25
action "/usr/sbin/virtual_oss_cmd /dev/vdsp.ctl -P /dev/$cdev";
26
};
27
28