aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd/snd.conf
blob: a45f427f6c79fa0f5cef4b5ab6fdb4b034730f74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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";
};