• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Hardware output from front speakers
3#
4
5pcm.!front {
6	@args [ CARD DEV ]
7	@args.CARD {
8		type string
9		default {
10			@func getenv
11			vars [
12				ALSA_FRONT_CARD
13				ALSA_PCM_CARD
14				ALSA_CARD
15			]
16			default {
17				@func refer
18				name defaults.pcm.front.card
19			}
20		}
21	}
22	@args.DEV {
23		type integer
24		default {
25			@func igetenv
26			vars [
27				ALSA_FRONT_DEVICE
28			]
29			default {
30				@func refer
31				name defaults.pcm.front.device
32			}
33		}
34	}
35	type empty
36	slave.pcm {
37		@func refer
38		name {
39			@func concat
40			strings [
41				"cards."
42				{
43					@func card_inum
44					card $CARD
45				}
46				".pcm.front." $DEV ":CARD=" $CARD
47			]
48		}
49	}
50	hint {
51		show {
52			@func refer
53			name defaults.namehint.basic
54		}
55		description "Front output / input"
56		device_output $DEV
57		device_input $DEV
58		omit_noargs true
59	}
60}
61