Hi,
I want to develop a feature in my application that requires switching the clock source of the MCASP instance while my application is running, switching between an external reference clock and an internal clock. How can I implement this function?

I found something useful in drivers. Maybe I can modify gMcaspAttrs[instance].hwCfg and reopen mcasp instances to fulfill my needs?
/**
* \brief Hardware setup data clock structure
*/
typedef struct
{
uint32_t aClk;
/**< Clock details ACLK(R/X)CTL */
uint32_t hiClk;
/**< High clock details AHCLK(R/X)CTL */
uint32_t clkChk;
/**< Configures RX/TX CLK fail detect */
uint8_t isHClkExt;
/**< Flag for if HCLK is from external source */
uint32_t hClkExt;
/**< External HCLK (TX/RX) source */
} MCASP_ClockConfig;