• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Hardware output from 7.1 speakers
3#  Samples must be positioned:
4#    chn0 - front left
5#    chn1 - front right
6#    chn2 - rear left
7#    chn3 - rear right
8#    chn4 - center
9#    chn5 - lfe
10#    chn6 - side left
11#    chn7 - side right
12#
13
14pcm.!surround71 {
15	@args [ CARD DEV ]
16	@args.CARD {
17		type string
18		default {
19			@func getenv
20			vars [
21				ALSA_SURROUND71_CARD
22				ALSA_PCM_CARD
23				ALSA_CARD
24			]
25			default {
26				@func refer
27				name defaults.pcm.surround71.card
28			}
29		}
30	}
31	@args.DEV {
32		type integer
33		default {
34			@func igetenv
35			vars [
36				ALSA_SURROUND71_DEVICE
37			]
38			default {
39				@func refer
40				name defaults.pcm.surround71.device
41			}
42		}
43	}
44	type empty
45	slave.pcm {
46		@func refer
47		name {
48			@func concat
49			strings [
50				"cards."
51				{
52					@func card_inum
53					card $CARD
54				}
55				".pcm.surround71." $DEV ":CARD=" $CARD
56			]
57		}
58	}
59	hint {
60		description "7.1 Surround output to Front, Center, Side, Rear and Woofer speakers"
61		device_output $DEV
62		omit_noargs true
63	}
64}
65