Go to advanced search

by targa
Mon Feb 05, 2018 1:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

From the link you gave it seems to me that you also need the simple driver, so the snd_soc_bcm2835_i2s and the snd_soc_simple. It doesn't seem to have any configuration input (eg. i2c), so you need to make your Pi compatible to your device just as I did. (see before , P 32+)
by targa
Wed Jan 31, 2018 7:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Page 121 of the "bcm2835 arm peripherals" doc mentions that it supports a legacy frame sync slave mode - maybe this could help a bit. To test this just uncomment this line in the driver: https://github.com/raspberrypi/linux/blob/rpi-4.14.y/sound/soc/bcm/bcm2835-i2s.c#L545 mode |= BCM2835_I2S_FLEN(f...
by targa
Wed Jan 24, 2018 9:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

ok found it: not possible: https://www.raspberrypi.org/forums/viewtopic.php?t=98318&start=25#p711623 Shouldn't there be some kind of error message ? will need to do some re-soldering then.... Since you mentioned the 1.8V levelshifter: check that it actually upshifts the 1.8V signal to 3.3V on the in...
by targa
Wed Jan 24, 2018 7:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Thanks for the valuable help so far, I'll definitely take on that clock matter - later after i have sorted out my "intermediate" problem: For "pin convenience" I wanted to re-route i2s pins to BCM18,27,24,23 which ought to be free. If you have a look at the header (Zero W) those pins lie close toget...
by targa
Mon Jan 22, 2018 9:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Thanks. ... bcm2835 tries to sync to the frame clock but it will usually start transmitting the another frame after the configure frame length even if it didn't "see" another frame start.... that actually explains what I see. I see on the analyzer that the incoming bit clock may be stepping too fast...
by targa
Thu Jan 18, 2018 10:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Wow... update: the other direction, in which the Pi receives the data works like a charm, outgoing I still see data chunks BEFORE the frame clock. I can "feel" the sound, but not really hear it. I saw from some commercial DACs that they do modify the sysclock of the Pi (im on a PiZeroW). Is this som...
by targa
Thu Jan 18, 2018 3:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

@targa bitclock and frame master properties can be set in the dai link, eg like this: Thanks for the example, I was missing the part &r_codec_dai respective &codec_in which obviously means "take what comes in", right ? If needed you can configure inverted frame or bitclocks signals there, too, just...
by targa
Wed Jan 17, 2018 4:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

... Just use the bitclock-master and frame-master properties. See the bindings documentation for details and examples https://github.com/raspberrypi/linux/blob/rpi-4.9.y/Documentation/devicetree/bindings/sound/simple-card.txt ... Yes, I did read all this previously, but it didn't get clear to me WH...
by targa
Mon Jan 15, 2018 4:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Please, is there anyone out there who could give me a hand how to properly define master/slave in the HiassofT-Overlay ? I'm sure it's max 2 lines I need to add, but I'm now trying&error'ing and I would like to understand what I'm doing. I see it's probably better documented already in the "old way...
by targa
Fri Jan 12, 2018 4:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Sorry... obviously it's NOT PWM, but PCM with a totally different clock. I connected the Pi's clock to different pins of the logic analyzer and noticed that the Pi ALSO generates a clock, which means he thinks he's master.... How can I disable that ? How can I make the Pi slave ? I understood if I d...
by targa
Fri Jan 12, 2018 3:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

I have a USB Sound Card and an I2S capture/play device (basically a mobile broadband network board, which has an I2S interface), one shall play the capture of another (use case: phone call on the USB device).... How do I become clock slave? Leave out frame-master/bitclock-master? How do I enable 8k...
by targa
Thu Jan 04, 2018 9:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

I tend to say yes, at least theoretically I was able to do full duplex. (will update during the day, I hope). Did you you the same parameter for play/capture (sampling rate, endian,...). I yesterday started aplay|arecord and aplay|arecord simultaneously and in the opposite direction, but with no sou...
by targa
Wed Dec 20, 2017 4:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 453746

Re: STICKY: The I2S sound thread.

Hi all, I want to achieve something similar, forgive me my ignorance, I read it all, but I'm not deep enough into coding I fear. I have a USB Sound Card and an I2S capture/play device (basically a mobile broadband network board, which has an I2S interface), one shall play the capture of another (use...

Go to advanced search