File tree Expand file tree Collapse file tree
projects/llm_framework/main_audio/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,7 +239,18 @@ class llm_audio : public StackFlow {
239239 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.enBitwidth );
240240 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.enLinkMode );
241241 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.enSamplerate );
242- CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.enLayoutMode );
242+
243+ if (config_body.contains (" aistAttr.enLayoutMode" ))
244+ mode_config_.aistAttr .enLayoutMode = config_body[" aistAttr.enLayoutMode" ];
245+ else if (file_body[" cap_param" ].contains (" aistAttr.enLayoutMode" )) {
246+ mode_config_.aistAttr .enLayoutMode = file_body[" cap_param" ][" aistAttr.enLayoutMode" ];
247+ if (access (" /sys/devices/platform/soc/4851000.i2c/i2c-1/1-0043" , F_OK) == 0 ) {
248+ if (mode_config_.aistAttr .enLayoutMode == AX_AI_REF_MIC) {
249+ mode_config_.aistAttr .enLayoutMode = AX_AI_MIC_REF;
250+ }
251+ }
252+ }
253+
243254 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.U32Depth );
244255 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.u32PeriodSize );
245256 CONFIG_AUTO_SET (file_body[" cap_param" ], aistAttr.u32PeriodCount );
You can’t perform that action at this time.
0 commit comments