OSDN Git Service

tegra: Add UCM for Nvidia Tegra HDMI Audio
[android-x86/external-alsa-ucm-conf.git] / ucm2 / bytcr-rt5651 / HiFi-Components.conf
1 If.spk {
2         Condition {
3                 Type String
4                 Haystack "${CardComponents}"
5                 Needle "cfg-spk:2"
6         }
7         True {
8                 Include.spk.File "/codecs/rt5651/Speaker.conf"
9         }
10 }
11
12 If.mono {
13         Condition {
14                 Type String
15                 Haystack "${CardComponents}"
16                 Needle "cfg-spk:1"
17         }
18         True {
19                 Include.mspk.File "/codecs/rt5651/MonoSpeaker.conf"
20         }
21 }
22
23 If.headphones {
24         Condition {
25                 Type String
26                 Haystack "${CardComponents}"
27                 Needle "cfg-hp:lrswap"
28         }
29         True {
30                 Include.hp.File "/codecs/rt5651/HeadPhones-swapped.conf"
31         }
32         False {
33                 Include.hp.File "/codecs/rt5651/HeadPhones.conf"
34         }
35 }
36
37 If.dmic {
38         Condition {
39                 Type String
40                 Haystack "${CardComponents}"
41                 Needle "cfg-mic:dmic"
42         }
43         True {
44                 Include.dmic.File "/codecs/rt5651/DigitalMic.conf"
45                 Include.hsmic.File "/codecs/rt5651/IN2-HeadsetMic.conf"
46                 SectionDevice."Mic".ConflictingDevice.0 "Headset"
47         }
48         False {
49                 Include.hsmic.File "/codecs/rt5651/IN3-HeadsetMic.conf"
50         }
51 }
52
53 If.in2 {
54         Condition {
55                 Type String
56                 Haystack "${CardComponents}"
57                 Needle "cfg-mic:in2"
58         }
59         True {
60                 Include.mic.File "/codecs/rt5651/IN2-InternalMic.conf"
61         }
62 }
63
64 If.in12 {
65         Condition {
66                 Type String
67                 Haystack "${CardComponents}"
68                 Needle "cfg-mic:in12"
69         }
70         True {
71                 Include.mic.File "/codecs/rt5651/IN12-InternalMic.conf"
72         }
73         False {
74                 If.in1 {
75                         Condition {
76                                 Type String
77                                 Haystack "${CardComponents}"
78                                 Needle "cfg-mic:in1"
79                         }
80                         True {
81                                 Include.mic.File "/codecs/rt5651/IN1-InternalMic.conf"
82                         }
83                 }
84         }
85 }