Repository navigation
Expand file tree
/
Copy pathKconfig
More file actions
206 lines (177 loc) · 5.96 KB
/
Copy pathKconfig
File metadata and controls
206 lines (177 loc) · 5.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# SPDX-License-Identifier: BSD-3-Clause
config INTEL_HDA
bool "Intel HDA driver"
depends on CAVS
default n
help
Select this to enable Intel HDA driver. The HDA driver provides
interface for host and HD-Audio data transfers.
config INTEL_MN
bool
depends on CAVS
select NUMBERS_GCD
default n
help
Select this if the platform supports M/N dividers.
config INTEL_MCLK
bool
depends on CAVS
default n
help
Select this to enable driver for Intel MCLK and M/N dividers.
config INTEL_SSP
bool "Intel SSP driver"
depends on CAVS
select INTEL_MCLK
default n
help
Select this to enable Intel Synchronous Serial Port (SSP) driver.
config INTEL_ALH
bool "Intel ALH driver"
depends on CAVS
default n
help
Select this to enable Intel ALH driver.
The ALH is an intermediary device, which acts as a hub and provides an
abstracted support for numerous sound interfaces (e.g. SoundWire).
config INTEL_DMIC
bool "Intel DMIC driver"
depends on CAVS
select NUMBERS_GCD
select NUMBERS_NORM
select NUMBERS_VECTOR_FIND
select MATH_DECIBELS
default n
help
Select this to enable Intel DMIC driver. The DMIC driver provides
as DAI the SoC direct attach digital microphones interface.
if INTEL_DMIC
choice
prompt "Driver operation mode"
default INTEL_DMIC_TPLG_PARAMS
help
The driver can support two operation modes.
- A HW registers dump blob that is passed via IPC
- DAI tokens those describe the use case PCM format
and PDM bus and microphone parameters
config INTEL_DMIC_NHLT
bool "Use NHLT DMIC blob"
help
All registers configuration is retrieved from blob. The
number of channels, sample rate, and PCM format are
defined in the blob and there are no runtime made
configuration choices.
config INTEL_DMIC_TPLG_PARAMS
bool "Use parameters from topology"
help
All registers confifguration is computed on the fly
based on use case and microphone datasheet parameters
and topology defined PCM format. The parameters are
easy to to customize in the topology.
endchoice
if INTEL_DMIC_TPLG_PARAMS
choice
prompt "FIR decimation coefficients set"
default INTEL_DMIC_FIR_FULL
config INTEL_DMIC_FIR_FULL
bool "Full set"
select INTEL_DMIC_FIR_DECIMATE_BY_2
select INTEL_DMIC_FIR_DECIMATE_BY_3
select INTEL_DMIC_FIR_DECIMATE_BY_4
select INTEL_DMIC_FIR_DECIMATE_BY_5
select INTEL_DMIC_FIR_DECIMATE_BY_6
select INTEL_DMIC_FIR_DECIMATE_BY_8
select INTEL_DMIC_FIR_DECIMATE_BY_10
select INTEL_DMIC_FIR_DECIMATE_BY_12
help
This option adds to previous all currently defined FIR
coefficients sets to support sample rates 8 - 96 kHz with
several microphone clock rates. The tables increase the size
of the driver so this option should not be used in minimal
systems.
config INTEL_DMIC_FIR_LOW_MEMORY
bool "Small set"
select INTEL_DMIC_FIR_DECIMATE_BY_2
select INTEL_DMIC_FIR_DECIMATE_BY_6
help
This option is used to minimize driver footprint but
preserve support for 48 kHz and 16 kHz sample rates
at typical 2.4 MHz microphone clock rate. The option
enables decimation factors 2 and 6.
config INTEL_DMIC_FIR_CUSTOM
bool "Custom set"
help
This option is used to select each supported decimation
factor.
endchoice
menu "Decimation factors"
visible if INTEL_DMIC_FIR_CUSTOM
config INTEL_DMIC_FIR_DECIMATE_BY_2
bool "FIR decimate by 2"
default n
help
This includes FIR coefficients to decimate by 2 into the build. It
is commonly used for 48 kHz capture with 2.4 MHz microphone clock.
Decimate by 2 in FIR gives good bandwidth vs. Nyquist and narrow
transition region due to lower FIR order need compared to higher
decimation factors.
config INTEL_DMIC_FIR_DECIMATE_BY_3
bool "FIR decimate by 3"
default n
help
This includes FIR coefficients to decimate by 3 into the build.
Decimation by 3 in FIR is useful with microphone clock and sample
rate combinations where a 3 is the lowest factor of the oversampling
ratio. Having this low prime decimation factor for FIR enabled is
useful when decimation by 2 is not possible.
config INTEL_DMIC_FIR_DECIMATE_BY_4
bool "FIR decimate by 4"
default n
help
This includes FIR coefficients to decimate by 4 into the build.
Decimation by 4 in FIR is useful in some cases with high microphone
clock rates due to max. decimation factor limit of CIC. In such
cases decimation by 2 may not be usable.
config INTEL_DMIC_FIR_DECIMATE_BY_5
bool "FIR decimate by 5"
default n
help
This includes FIR coefficients to decimate by 5 into the build.
Decimation by 5 in FIR is useful with microphone clock and sample
rate combinations where a 5 is the lowest factor of the oversampling
ratio.
config INTEL_DMIC_FIR_DECIMATE_BY_6
bool "FIR decimate by 6"
default n
help
This includes FIR coefficients to decimate by 6 into the build. It
is commonly used for 16 kHz capture from secondary FIFO while
primary FIFO is configured for 48 kHz rate.
config INTEL_DMIC_FIR_DECIMATE_BY_8
bool "FIR decimate by 8"
default n
help
This includes FIR coefficients to decimate by 8 into the build.
The high FIR decimation factors are needed for high microphone clock
rates due to max. decimation factor limitation of CIC. Also dual
FIFO configurations may need for one FIR decimation such high
decimation factor.
config INTEL_DMIC_FIR_DECIMATE_BY_10
bool "FIR decimate by 10"
default n
help
This includes FIR coefficients to decimate by 10 into the build.
The high FIR decimation factors are needed for high microphone clock
rates due to max. decimation factor limitation of CIC. Also dual
FIFO configurations may need for one FIR decimation such high
decimation factor.
config INTEL_DMIC_FIR_DECIMATE_BY_12
bool "FIR decimate by 12"
default n
help
This includes FIR coefficients to decimate by 12 into the build. It
is used for 16 kHz capture for secondary FIFO while the primary
FIFO is configured for 96 kHz.
endmenu # "Decimation factors"
endif
endif # INTEL_DMIC