Goal: Source an external 27.576 MHz Crystal connected to AUXOSC (OSC1) to McASP2
Issues: Cannot switch McASP2 clock source.
and requires MCLK, BCLK, WCLK, and Audio data to be sourced to it. I have an audio driver working
in with ALSA but the MCLK source from the DM8148 is configured to use the 20Mhz (OSC0) as the
high speed (AHCLKX) and the audio is distorted due to the 20Mhz MCLK.
The design has a 27.576MHz connected to the AUXOSC (OSC1) input on the DM8148. This clocked is
locked to the video source with the LM49450 MCLK set to 12.288Mhz and the data is 32 bit left justified.
Question:
Where can I find driver init code to change the source of the McASP clock source in the EZSDK?
Besides McASP_AHCLK_CLKSRC, are any other registers necessary to change the clock source?
Link to documentation:
DM8148 Technical Reference Manual: http://www.ti.com/lit/ug/sprugz8b/sprugz8b.pdf
Sections:
2.10.1.142 McASP_AHCLK_CLKSRC Register - Clock Source control register for McASP Master Clock (AH)
16.3.16 Receive Clock Control Register (ACLKRCTL)
16.3.17 Receive High-Frequency Clock Control Register (AHCLKRCTL)
16.3.28 Transmit Clock Control Register (ACLKXCTL)
16.3.29 Transmit High-Frequency Clock Control Register (AHCLKXCTL)
16.1.4 Functional Block Diagram - McASP Block Diagram
16.2.2.1 Transmit Clock - McASP Transmit Clock explanation
16.2.2.2 Receive Clock - McASP Receive Clock explanation