• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Configuration for PS3
3#
4
5<confdir:pcm/front.conf>
6
7PS3.pcm.front.0 {
8	@args [ CARD ]
9	@args.CARD {
10		type string
11	}
12	type softvol
13	slave.pcm {
14		type hw
15		card $CARD
16		device 0
17	}
18	control {
19		name "PCM Playback Volume"
20		card $CARD
21	}
22}
23
24# default with dmix+softvol
25PS3.pcm.default {
26	@args [ CARD ]
27	@args.CARD {
28		type string
29	}
30	type asym
31	playback.pcm {
32		type plug
33		slave.pcm {
34			type softvol
35			slave.pcm {
36				@func concat
37                                #strings [ "dmix:CARD=" $CARD ]
38                                strings [ "dmix:CARD=" $CARD ",FORMAT=S16" ]
39			}
40			control {
41				name "PCM Playback Volume"
42				card $CARD
43			}
44		}
45	}
46}
47
48<confdir:pcm/iec958.conf>
49
50PS3.pcm.iec958.0 {
51	@args [ CARD AES0 AES1 AES2 AES3 ]
52	@args.CARD {
53		type string
54	}
55	@args.AES0 {
56		type integer
57	}
58	@args.AES1 {
59		type integer
60	}
61	@args.AES2 {
62		type integer
63	}
64	@args.AES3 {
65		type integer
66	}
67	type hooks
68	slave.pcm {
69		type hw
70		card $CARD
71	}
72	hooks.0 {
73		type ctl_elems
74		hook_args [
75			{
76				interface PCM
77				name "IEC958 Playback Default"
78				lock true
79				preserve true
80				optional true
81				value [ $AES0 $AES1 $AES2 $AES3 ]
82			}
83		]
84	}
85}
86