• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Configuration for the ENS1370 chip
3#
4
5<confdir:pcm/front.conf>
6
7ENS1370.pcm.front.0 {
8	@args [ CARD ]
9	@args.CARD {
10		type string
11	}
12	type hw
13	card $CARD
14	device 1
15}
16
17# default with dmix/dsnoop
18ENS1370.pcm.default {
19	@args [ CARD ]
20	@args.CARD {
21		type string
22	}
23	type asym
24	playback.pcm {
25		type plug
26		slave.pcm {
27			@func concat
28			strings [ "dmix:" $CARD ]
29		}
30	}
31	capture.pcm {
32		type plug
33		slave.pcm {
34			@func concat
35			strings [ "dsnoop:" $CARD ]
36		}
37	}
38}
39
40<confdir:pcm/rear.conf>
41
42ENS1370.pcm.rear.0 {
43	@args [ CARD ]
44	@args.CARD {
45		type string
46	}
47	type hooks
48	slave.pcm {
49		type hw
50		card $CARD
51	}
52	hooks.0 {
53		type ctl_elems
54		hook_args [
55			{
56				interface CARD
57				name "PCM 0 Output also on Line-In Jack"
58				preserve true
59				lock true
60				value true
61			}
62			{
63				name "PCM Switch"
64				preserve true
65				lock true
66				value [ false false ]
67			}
68		]
69	}
70}
71
72<confdir:pcm/surround40.conf>
73
74ENS1370.pcm.surround40.0 {
75	@args [ CARD ]
76	@args.CARD {
77		type string
78	}
79	type multi
80	master 1
81	slaves [
82		{
83			pcm {
84				@func concat
85				strings [
86					"cards.ENS1370.pcm.front.0:CARD=" $CARD
87				]
88			}
89			channels 2
90		}
91		{
92			pcm {
93				@func concat
94				strings [
95					"cards.ENS1370.pcm.rear.0:CARD=" $CARD
96				]
97			}
98			channels 2
99		}
100	]
101	bindings [
102		{ slave 0 channel 0 }
103		{ slave 0 channel 1 }
104		{ slave 1 channel 0 }
105		{ slave 1 channel 1 }
106	]
107}
108