I2s Stereo input slave mode example #6
Replies: 4 comments 11 replies
-
I have this working in slave mode but the audio is really distorted, it feels like a clock issue to me but it's hard to tell with the scope I have. Re: your issue, Louis, all you have to do to run this in slave mode is call
instead of
the default pin connections are as follows:
I have verified that the above does in fact work, the codec I am using is my test codec, pcm5102A. I get audio to come through but it is heavily distorted. If you get no audio, you may need to look at the codec to see if it is being initialized correctly. To the author of the code, I am working on a hobby project that I really want to incorporate this into, will pay $100 (+ another $100 if we get it running) for 1 hour of QA/help on this if you're interested. |
Beta Was this translation helpful? Give feedback.
-
Hi all, this isn't a bug so please don't open issues for not-bugs. Start a discussion instead. @LouisCARRIOU I don't have example code but as @appliedsine said, it works perfectly in slave mode if you follow the directions carefully. I spent a lot of time writing them and unless there's something wrong or unclear there (which, please state specifically so I can fix), they contain the exact, detailed, and necessary information needed to make this work, given that you understand how I2S works (which is also, I hope, thoroughly explained, though it's a very simple protocol and you should be able to find other information which might do a better job elsewhere). @appliedsine : Have you checked the following:
Check those aspects first, make sure the data on the bus is truly I2S (re-read my description carefully to note the offset clock at the frame start), and you can try simply piping input to output with no math (e.g. just copy the input buffer to the output buffer) to make sure that the basic data flow is working. I'm closing this issue because it's not a bug, but if you want to discuss it further, open a discussion about it and I'll chime in as I have time. |
Beta Was this translation helpful? Give feedback.
-
My apologies, I realized discussions weren't enabled on this repo - I thought they were. They're enabled now! |
Beta Was this translation helpful? Give feedback.
-
Hey man, thank you for opening this up! I'm sorry, I wasn't clear, I am using a bluetooth module which outputs I2S, my test signal flow is as follows: regarding the buffers, I did not change the data types from what was in the example code:
so maybe that's where I messed up. My scope is at my dad's so I will get my hands on it in a day or so. I was able to get a simple tone to play, albeit in the left channel (likely a data conversion error on my part), I am definitely not a dsp expert but I know how to stay up late and do caffeine. Thank you very much for your time, sorry I am late to the party. I'll tinker with it today and see what I figure out |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to use your nice i2s lib in slave mode.
I'm using a WN8782 module to analyze right and left sound but iI don't find a working solution .
I also tried with a CS5343 but I have the same problem.
Do you have a working example for i2s stereo input I'm slave mode ?
BR
Louis
Beta Was this translation helpful? Give feedback.
All reactions