OSDN Git Service

9fe532c3c528274268a3b694400a7347584214c2
[android-x86/external-alsa-ucm-conf.git] / ucm2 / sof-soundwire / RT700.conf
1 # Use case Configuration for sof-soundwire card
2
3 If.RT700 {
4         Condition {
5                 Type String
6                 Haystack "${CardComponents}"
7                 Needle "hs:rt700" 
8         }
9         True {
10
11                 SectionDevice."Headphones" {
12                         Comment "Headphones"
13
14                         ConflictingDevice [
15                                 "Speaker"
16                         ]
17
18                         EnableSequence [
19                                 cset "name='Headphones Switch' on"
20                         ]
21
22                         DisableSequence [
23                                 cset "name='Headphones Switch' off"
24                         ]
25
26                         Value {
27                               PlaybackPriority 200
28                               PlaybackPCM "hw:${CardId},0"
29                               PlaybackChannels "2"
30                               JackControl "Headphone Jack"
31                         }
32                 }
33
34                 SectionDevice."Speaker" {
35                         Comment "Speaker"
36                         
37                         ConflictingDevice [
38                                 "Headphones"
39                         ]
40
41                         EnableSequence [
42                                 cset "name='Speaker Switch' on"
43                         ]
44
45                         DisableSequence [
46                                 cset "name='Speaker Switch' off"
47                         ]
48
49                         Value {
50                               PlaybackPriority 100
51                               PlaybackPCM "hw:${CardId},0"
52                               PlaybackChannels "2"
53                         }
54                 }
55
56                 SectionDevice."Headset" {
57                         Comment "Headset Microphone"
58
59                         EnableSequence [
60                                 cset "name='ADC 09 Capture Switch' 1"
61                         ]
62
63                         DisableSequence [
64                                 cset "name='ADC 09 Capture Switch' 0"
65                         ]
66
67                         Value {
68                                 CapturePriority 200
69                                 CapturePCM "hw:${CardId},1"
70                                 CaptureChannels "2"
71                                 JackControl "Headset Mic Jack"
72                         }
73                 }
74         }
75 }