Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audio drivers #990

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

shinyquagsire23
Copy link

Started porting this from my closed-source SPL about a month ago, currently I have a working PIO beep on my Switch Lite, but DMA does not seem to work for some reason (secret Mariko MMU/SMMU bits somewhere maybe?). Gotta be real tho, mostly posting this for my CV since I got laid off lol (did plan to PR in a more completed state)

TODOs:

  • actually get AHUB DMA working
  • clean up AHUB/I2S registers
  • formalities on boot chime (WAV reading, settings, etc. possibly out of scope for the PR)
  • headphone vs speaker swap (codec IRQ)

@shinyquagsire23 shinyquagsire23 changed the title audio wip, PIO beep but no DMA Add audio drivers Jun 28, 2024
@CTCaer
Copy link
Owner

CTCaer commented Jul 1, 2024

ADMA does not require any secret mmu/smmu bits, the secret sauce is in the admaif config.

(Have in mind that I have already an implementation with everything working, along with support of the mariko SKUs EQ configs, in the Nyx easter egg.)

@shinyquagsire23
Copy link
Author

oh lol, either I missed that or it's not comitted but feel free to close if this is redundant

@CTCaer
Copy link
Owner

CTCaer commented Jul 2, 2024

Well it's a "secret" easter egg that's why.
At some point I might push the codec/ahub/i2s/admaif/adma drivers to bdk and another repo with another example I have (mp3 player)
For now I will leave the PR open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants