Home
last modified time | relevance | path

Searched refs:dmic (Results 1 – 25 of 54) sorted by relevance

123

/sof-2.7.6/src/drivers/intel/dmic/
Ddmic.c63 struct dmic_pdata *dmic = dai_get_drvdata(dai); in dmic_work() local
80 dmic->startcount++; in dmic_work()
81 dmic->gain = q_multsr_sat_32x32(dmic->gain, dmic->gain_coef, Q_SHIFT_GAIN_X_GAIN_COEF); in dmic_work()
86 gval = dmic->gain >> 11; in dmic_work()
97 if (!dmic->enable[i]) in dmic_work()
100 if (dmic->startcount == DMIC_UNMUTE_CIC) in dmic_work()
104 if (dmic->startcount == DMIC_UNMUTE_FIR) { in dmic_work()
153 struct dmic_pdata *dmic = dai_get_drvdata(dai); in dmic_set_config() local
176 assert(dmic); in dmic_set_config()
185 if (config->dmic.driver_ipc_version != DMIC_IPC_VERSION) { in dmic_set_config()
[all …]
Ddmic_computed.c35 struct dmic_pdata *dmic = dai_get_drvdata(dai); in find_modes() local
67 if (dmic->global->prm[di].pdmclk_max < DMIC_HW_PDM_CLK_MIN || in find_modes()
68 dmic->global->prm[di].pdmclk_max > DMIC_HW_IOCLK / 2) { in find_modes()
72 if (dmic->global->prm[di].pdmclk_min < DMIC_HW_PDM_CLK_MIN || in find_modes()
73 dmic->global->prm[di].pdmclk_min > dmic->global->prm[di].pdmclk_max) { in find_modes()
79 if (dmic->global->prm[di].duty_min > dmic->global->prm[di].duty_max) { in find_modes()
83 if (dmic->global->prm[di].duty_min < DMIC_HW_DUTY_MIN || in find_modes()
84 dmic->global->prm[di].duty_min > DMIC_HW_DUTY_MAX) { in find_modes()
88 if (dmic->global->prm[di].duty_max < DMIC_HW_DUTY_MIN || in find_modes()
89 dmic->global->prm[di].duty_max > DMIC_HW_DUTY_MAX) { in find_modes()
[all …]
Ddmic_nhlt.c25 struct dmic_pdata *dmic = dai_get_drvdata(dai); in nhlt_dmic_dai_params_get() local
32 dmic->dai_format = SOF_IPC_FRAME_S16_LE; in nhlt_dmic_dai_params_get()
35 dmic->dai_format = SOF_IPC_FRAME_S32_LE; in nhlt_dmic_dai_params_get()
45 dmic->dai_channels = 2; in nhlt_dmic_dai_params_get()
46 dmic->enable[0] = 0x3; /* PDM0 MIC A and B */ in nhlt_dmic_dai_params_get()
47 dmic->enable[1] = 0x0; /* PDM1 none */ in nhlt_dmic_dai_params_get()
50 dmic->dai_channels = 1; in nhlt_dmic_dai_params_get()
52 dmic->enable[0] = mic_swap ? 0x2 : 0x1; /* PDM0 MIC B or MIC A */ in nhlt_dmic_dai_params_get()
53 dmic->enable[1] = 0x0; /* PDM1 */ in nhlt_dmic_dai_params_get()
58 dmic->dai_channels = 2; in nhlt_dmic_dai_params_get()
[all …]
DCMakeLists.txt3 add_local_sources(sof dmic.c)
/sof-2.7.6/tools/topology/topology1/platform/intel/
Dintel-generic-dmic-kwd.m45 include(`platform/intel/dmic.m4')
14 ifdef(`CHANNELS',`',`fatal_error(note: Need to define channel number for intel-generic-dmic-kwd
16 ifdef(`KFBM_TYPE',`',`fatal_error(note: Need to define kfbm type for intel-generic-dmic-kwd, availa…
18 ifdef(`DMIC_PCM_48k_ID',`',`fatal_error(note: Need to define dmic48k pcm id for intel-generic-dmic-…
20 …IPELINE_48k_ID',`',`fatal_error(note: Need to define dmic48k pipeline id for intel-generic-dmic-kwd
22 …MIC_DAI_LINK_48k_ID',`',`fatal_error(note: Need to define dmic48k dai id for intel-generic-dmic-kwd
25 ifdef(`DMIC_PCM_16k_ID',`',`fatal_error(note: Need to define dmic16k pcm id for intel-generic-dmic-…
27 …IPELINE_16k_ID',`',`fatal_error(note: Need to define dmic16k pipeline id for intel-generic-dmic-kwd
29 …IC_PIPELINE_KWD_ID',`',`fatal_error(note: Need to define kwd pipeline id for intel-generic-dmic-kwd
31 …MIC_DAI_LINK_16k_ID',`',`fatal_error(note: Need to define dmic16k dai id for intel-generic-dmic-kwd
[all …]
Dintel-generic-dmic.m45 include(`platform/intel/dmic.m4')
14 ifdef(`CHANNELS',`',`fatal_error(note: Need to define channel number for intel-generic-dmic
16 ifdef(`DMIC_PCM_48k_ID',`',`fatal_error(note: Need to define dmic48k pcm id for intel-generic-dmic
18 …IC_PIPELINE_48k_ID',`',`fatal_error(note: Need to define dmic48k pipeline id for intel-generic-dmic
20 …f(`DMIC_DAI_LINK_48k_ID',`',`fatal_error(note: Need to define dmic48k dai id for intel-generic-dmic
23 ifdef(`DMIC_PCM_16k_ID',`',`fatal_error(note: Need to define dmic16k pcm id for intel-generic-dmic
25 …IC_PIPELINE_16k_ID',`',`fatal_error(note: Need to define dmic16k pipeline id for intel-generic-dmic
27 …f(`DMIC_DAI_LINK_16k_ID',`',`fatal_error(note: Need to define dmic16k dai id for intel-generic-dmic
Dapl-dmic-a2b2.m41 # apl dmic settings for A2-B2
Dapl-dmic-a2b4.m41 # apl dmic settings for A2-B4
Dapl-dmic-a4b2.m41 # apl dmic settings for A4-B2
/sof-2.7.6/tools/topology/topology1/development/
DCMakeLists.txt6 "sof-apl-dmic-a96k-b16k\;sof-apl-dmic-a96k-b16k"
7 "sof-apl-dmic-asymmetric\;sof-apl-dmic-a2ch-b2ch\;-DDMICSETTING=apl-dmic-a2b2"
8 "sof-apl-dmic-asymmetric\;sof-apl-dmic-a2ch-b4ch\;-DDMICSETTING=apl-dmic-a2b4"
9 "sof-apl-dmic-asymmetric\;sof-apl-dmic-a4ch-b2ch\;-DDMICSETTING=apl-dmic-a4b2"
10 "sof-apl-dmic\;sof-apl-dmic-2ch\;-DCHANNELS=2\;-DCPROC=volume"
11 "sof-apl-dmic\;sof-apl-dmic-4ch\;-DCHANNELS=4\;-DCPROC=volume"
Dsof-apl-dmic-asymmetric.m45 ifdef(`DMICSETTING', , `apl-dmic-a2b4')
24 include(`platform/intel/dmic.m4')
/sof-2.7.6/src/platform/intel/cavs/lib/
Ddai.c34 static SHARED_DATA struct dai dmic[2] = { variable
101 .dai_array = cache_to_uncache_init((struct dai *)dmic),
102 .num_dais = ARRAY_SIZE(dmic)
169 dai = cache_to_uncache((struct dai *)dmic); in dai_init()
172 for (i = 0; i < ARRAY_SIZE(dmic); i++) in dai_init()
/sof-2.7.6/tools/topology/topology1/
Dsof-jsl-da7219.m423 # Define pipeline id for intel-generic-dmic-kwd.m4
24 # to generate dmic setting with kwd when we have dmic
40 # include the generic dmic with kwd
41 include(`platform/intel/intel-generic-dmic-kwd.m4')
48 # PCM5 <---- DMIC0 (pipe 3) <----- dmic (DMIC01 - BE link 2)
Dsof-tgl-max98373-rt5682.m420 include(`platform/intel/dmic.m4')
38 # PCM99 <---- volume <---- DMIC01 (dmic 48k capture)
39 # PCM100 <---- kpb <---- DMIC16K (dmic 16k capture)
69 # Define pipeline id for intel-generic-dmic-kwd.m4
70 # to generate dmic setting with kwd when we have dmic
87 # include the generic dmic with kwd
88 include(`platform/intel/intel-generic-dmic-kwd.m4')
Dsof-tgl-sdw-max98373-rt5682.m420 include(`platform/intel/dmic.m4')
41 # PCM10 <---- volume <---- DMIC01 (dmic 48k capture)
42 # PCM12 <---- kpb <---- DMIC16k (dmic 16k capture)
112 # Define pipeline id for intel-generic-dmic-kwd.m4
113 # to generate dmic setting with kwd when we have dmic
129 # include the generic dmic with kwd
130 include(`platform/intel/intel-generic-dmic-kwd.m4')
Dsof-jsl-rt5682.m431 # PCM5 <---- volume <---- DMIC01 (dmic 48k capture)
32 # PCM6 <---- kpb <---- DMIC16K (dmic 16k capture)
35 # to generate dmic setting with kwd when we have dmic
51 # include the generic dmic with kwd
52 include(`platform/intel/intel-generic-dmic-kwd.m4')
Dsof-tgl-max98357a-rt5682.m421 include(`platform/intel/dmic.m4')
69 # PCM99 <---- volume <---- DMIC01 (dmic 48k capture)
70 # PCM100 <---- kpb <---- DMIC16K (dmic 16k capture)
85 # to generate dmic setting with kwd when we have dmic
104 # include the generic dmic if RTNR is defined, else include generic dmic with kwd
105 include(ifdef(`RTNR', platform/intel/intel-generic-dmic.m4, platform/intel/intel-generic-dmic-kwd.m…
Dsof-hda-generic-idisp.m424 # Define pipeline id for intel-generic-dmic.m4
25 # to generate dmic setting
36 include(`platform/intel/intel-generic-dmic.m4')
Dsof-cml-rt700.m415 include(`platform/intel/dmic.m4')
26 # Define pipeline id for intel-generic-dmic.m4
27 # to generate dmic setting
39 include(`platform/intel/intel-generic-dmic.m4')
Dsof-icl-rt700.m415 include(`platform/intel/dmic.m4')
26 # Define pipeline id for intel-generic-dmic.m4
27 # to generate dmic setting
39 include(`platform/intel/intel-generic-dmic.m4')
Dsof-tgl-max98357a-rt5682-rtnr-16kHz.m421 include(`platform/intel/dmic.m4')
29 # PCM1 <---- volume <----- DMIC01 (dmic 48k capture)
30 # PCM2 <---- RTNR <----- DMIC16K (dmic 16k capture)
54 # include the generic dmic
55 include(`platform/intel/intel-generic-dmic.m4')
Dsof-hda-generic-kwd.m435 # Define pipeline id for intel-generic-dmic-kwd.m4
36 # to generate dmic setting with kwd when we have dmic
51 include(`platform/intel/intel-generic-dmic-kwd.m4')
/sof-2.7.6/zephyr/
DCMakeLists.txt166 ${SOF_DRIVERS_PATH}/intel/dmic/dmic.c
170 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_computed.c
174 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_nhlt.c
232 ${SOF_DRIVERS_PATH}/intel/dmic/dmic.c
236 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_computed.c
240 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_nhlt.c
300 ${SOF_DRIVERS_PATH}/intel/dmic/dmic.c
304 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_computed.c
308 ${SOF_DRIVERS_PATH}/intel/dmic/dmic_nhlt.c
370 ${SOF_DRIVERS_PATH}/intel/dmic/dmic.c
[all …]
/sof-2.7.6/src/drivers/intel/
DCMakeLists.txt25 add_subdirectory(dmic)
/sof-2.7.6/src/include/ipc/
Ddai.h93 struct sof_ipc_dai_dmic_params dmic; member

123