mirror of
https://github.com/apache/nuttx.git
synced 2026-08-21 05:28:19 +00:00
SAMA5 WM8904: Fix errors in programmable clock output configuration
This commit is contained in:
parent
2e77455c6f
commit
b722e46427
2 changed files with 3 additions and 3 deletions
|
|
@ -276,12 +276,12 @@ int sam_wm8904_initialize(int minor)
|
|||
goto errout_with_i2s;
|
||||
}
|
||||
|
||||
/* Configure the DAC master clock. This clock is provided by PCK2 (PB10)
|
||||
/* Configure the DAC master clock. This clock is provided by PCK0 (PD30)
|
||||
* that is connected to the WM8904 MCLK.
|
||||
*/
|
||||
|
||||
sam_sckc_enable(true);
|
||||
(void)sam_pck_configure(PCK2, PCKSRC_SCK, BOARD_SLOWCLK_FREQUENCY);
|
||||
(void)sam_pck_configure(PCK0, PCKSRC_SCK, BOARD_SLOWCLK_FREQUENCY);
|
||||
|
||||
/* Enable the DAC master clock */
|
||||
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ int sam_wm8904_initialize(int minor)
|
|||
|
||||
/* Enable the DAC master clock */
|
||||
|
||||
sam_pck_enable(PCK0, true);
|
||||
sam_pck_enable(PCK2, true);
|
||||
|
||||
/* Configure WM8904 interrupts */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue