/sof-2.7.6/src/drivers/intel/dmic/ |
D | dmic.c | 63 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 …]
|
D | dmic_computed.c | 35 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 …]
|
D | dmic_nhlt.c | 25 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 …]
|
D | CMakeLists.txt | 3 add_local_sources(sof dmic.c)
|
/sof-2.7.6/tools/topology/topology1/platform/intel/ |
D | intel-generic-dmic-kwd.m4 | 5 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 …]
|
D | intel-generic-dmic.m4 | 5 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
|
D | apl-dmic-a2b2.m4 | 1 # apl dmic settings for A2-B2
|
D | apl-dmic-a2b4.m4 | 1 # apl dmic settings for A2-B4
|
D | apl-dmic-a4b2.m4 | 1 # apl dmic settings for A4-B2
|
/sof-2.7.6/tools/topology/topology1/development/ |
D | CMakeLists.txt | 6 "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"
|
D | sof-apl-dmic-asymmetric.m4 | 5 ifdef(`DMICSETTING', , `apl-dmic-a2b4') 24 include(`platform/intel/dmic.m4')
|
/sof-2.7.6/src/platform/intel/cavs/lib/ |
D | dai.c | 34 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/ |
D | sof-jsl-da7219.m4 | 23 # 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)
|
D | sof-tgl-max98373-rt5682.m4 | 20 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')
|
D | sof-tgl-sdw-max98373-rt5682.m4 | 20 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')
|
D | sof-jsl-rt5682.m4 | 31 # 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')
|
D | sof-tgl-max98357a-rt5682.m4 | 21 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…
|
D | sof-hda-generic-idisp.m4 | 24 # Define pipeline id for intel-generic-dmic.m4 25 # to generate dmic setting 36 include(`platform/intel/intel-generic-dmic.m4')
|
D | sof-cml-rt700.m4 | 15 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')
|
D | sof-icl-rt700.m4 | 15 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')
|
D | sof-tgl-max98357a-rt5682-rtnr-16kHz.m4 | 21 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')
|
D | sof-hda-generic-kwd.m4 | 35 # 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/ |
D | CMakeLists.txt | 166 ${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/ |
D | CMakeLists.txt | 25 add_subdirectory(dmic)
|
/sof-2.7.6/src/include/ipc/ |
D | dai.h | 93 struct sof_ipc_dai_dmic_params dmic; member
|