Comments (4)
If your dac chip has hardware mode can't you just control this manually? I think adding i2c to this would make it no longer generic. Maybe I misunderstood the point of this project.
from raspberrypi_i2s_slave.
Hi, sorry for the late reply.
This driver does not care about the ADC or DAC to connect. It simply sends and receives I2S.
If you want to configure the DAC via I2C, you can use pigpio.
This project may be useful for you.
https://github.com/AkiyukiOkayasu/AK4558_IOStream
from raspberrypi_i2s_slave.
This is my first Linux device tree overlay and I'm not a Linux expert, but I think you're correct in your understanding.
Combining this device tree overlay with a hardware configuration (without I2C) of an ADC or DAC is a simple and prototyping-friendly method.
from raspberrypi_i2s_slave.
Thanks for replying! Just to clarify, this dto (AkiyukiOkayasu/RaspberryPi_I2S_Slave) would work for any DAC or ADC with 1) I2S support and 2) hardware control as long as there is some way to provide pi with a master CLK/LRCK. Almost every ADC and DAC I see has some form of hardware control mode (not to mention master clock mode). My understanding also was that a "linux sound driver" is simply a driver that complies with the linux sound control api and sends specific serial communication via I2C to whichever chip is supported. For instance: The PCM512x driver
*edit: Also I assume this is why I see a lot of complaints in pi forums about "why is my audio playing back slow, not playing at all" etc -- as people are expecting i2c to magically take place. All pi needs to know in slave mode is that it must honor the incoming clock/lr clock when sending PCM data to DOUT. I hope I am understanding this correctly.
from raspberrypi_i2s_slave.
Related Issues (2)
- Support sampling rate HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberrypi_i2s_slave.