File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ int PCMClass::Stop()
238238
239239__attribute__ ((weak)) int pcm_lowlevel_init(uint32_t sampleRate)
240240{
241+ (void )sampleRate;
241242 return PCM_ERROR ;
242243}
243244
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ int pcm_lowlevel_stop()
159159 ret = PCM_ERROR ;
160160 }
161161
162- return PCM_OK ;
162+ return ret ;
163163}
164164
165165/* *
@@ -232,7 +232,8 @@ void HAL_MDF_MspInit(MDF_HandleTypeDef *hmdf)
232232
233233 if (hmdf->Instance == DMIC_ONBOARD_FILTER ) {
234234 /* * Initializes the peripherals clock */
235- RCC_PeriphCLKInitTypeDef PeriphClkInit = {0 };
235+ RCC_PeriphCLKInitTypeDef PeriphClkInit;
236+ memset (&PeriphClkInit, 0x0 , sizeof (RCC_PeriphCLKInitTypeDef));
236237 PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADF1 ;
237238 PeriphClkInit.Adf1ClockSelection = RCC_ADF1CLKSOURCE_PLL3 ;
238239 PeriphClkInit.PLL3 .PLL3Source = RCC_PLLSOURCE_HSE ;
You can’t perform that action at this time.
0 commit comments