-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: sdma: Set watermark level for PDM
In order to enable PDM we need to use Multi-fifo support and mcu_2_sai RAM script. This script defines watermark level as follows: r7 = Watermark bit0~11: watermark level(wml*fifo_number) bit15~12: to do-fifo number bit16~19: fifo offset bit27~24: sw done selector bit28~31: # audio channels in one frame, 0: 1 channel,1: 2 channels bit23: sw done enabled Configuration parameters should come from DAI (PDM in our specific case) but there is no easy way to forward such information so we just make use of some default configuration, 4 fifos, 1 channel per fifo, sw done enabled. Signed-off-by: Daniel Baluta <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters