Giter Club home page Giter Club logo

Comments (4)

ndmgrphc avatar ndmgrphc commented on June 2, 2024 1

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.

AkiyukiOkayasu avatar AkiyukiOkayasu commented on June 2, 2024 1

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.

AkiyukiOkayasu avatar AkiyukiOkayasu commented on June 2, 2024 1

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.

ndmgrphc avatar ndmgrphc commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.