Go to advanced search

by VitS
Wed Dec 05, 2018 2:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

I used and still use now, as most stable one (please see recent post edited above*) the one from here: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test with changes to turn codec to master... * https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=8496&...
by VitS
Tue Dec 04, 2018 9:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Yet another question. With the kernel driver I have only option to record in 32 bits. And 24 bits are useful, 8 other bits... rather useless – just eat space. I would ignore those 8 and do recordings in 24 bits, but... both SOX and ARECORD in 24 bits mode gives noised/overdriven L channel and almost...
by VitS
Thu Nov 29, 2018 11:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Something is wrong with i2s via overlay method. At least, for 192 khz recordings with 3B+. Before I used kernel re-compilation as described in ada (with the change for CBM and CFM) – and it was fine... Now with overlay I'm getting lost frames sometimes. I returned to that first option, with kernel, ...
by VitS
Wed Nov 28, 2018 4:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Belissimo!!!!!

Thank you, that worked well!
by VitS
Wed Nov 28, 2018 3:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

That's okay to have it on fixed rate, no problem at all, that even supposed to run so.

I thought that i2c was the reason.. How should I change it to a dummy?

Thank you!
by VitS
Wed Nov 28, 2018 1:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Got it. PCM4202, master, i2s, 192 khz (24.576 clock). BCK LRCK DATA used, connected to GPIO as for i2s. I've created overlay as described in your link (which look convenient), called 'cs.dtbo', added it into boot/config.txt. vcdbg log msg: 001886.140: dtdebug: Opened overlay file 'overlays/cs.dtbo' ...
by VitS
Wed Nov 28, 2018 12:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Thank you very much for this.

I'm not sure how to get it run as an interface? Overlay loaded OK, lsmod report as well... But aplay -l and arecord -l doesn't see it... Sorry for such a stupid questions, I must missing something very obvious...
by VitS
Wed Nov 28, 2018 8:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

I'v lost in syntax of overlays and would like to ask for a help. I need to create a very simple overlay file for ADC codec connected to BCK/LRCR/Data, I2S format, where codec is master (Pi is slave). I've seen Hias's post here, but it won't show record devices, only playback. https://lb.raspberrypi....
by VitS
Tue Nov 27, 2018 8:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PT8211 I2S ASOC driver
Replies: 14
Views: 3310

Re: PT8211 I2S ASOC driver

No need to hack up any drivers, the 4.14 kernel in Raspbian has everything you need on board - support for I2S, justified and DSP formats, generic input and output codec drivers ("spdif transmitter/receiver") and support for simple audio card and the more modern audio graph card. All you need to do...
by VitS
Mon Nov 12, 2018 9:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

You are absolutely right.

I see it, too. Occasional channels swap with MSB and... one sample relative shift between channels. :-)

Again, thank you for your comments!
by VitS
Sat Nov 10, 2018 7:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

P.S. MSB LJ works strange... Mysteriously, it is incompatible with SoX: recording via Amanero (LJ) shows difference (original-recorded) in right channel. More, channels are interchanged. At the same conditions, "arecord" work correct!!! Files are perfectly identical, channels are as supposed. Don't ...
by VitS
Fri Nov 09, 2018 12:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

It was interesting though to test MSB mode, as I see I really can't switch my AKM to i2s mode, technically. AKM’s pin is grounded behind chip. So, I re-complied Raspbian with Left Justified setting as you mentioned above. Took Amanero, re-flashed it to LJ. Took 192-32 file and made it silent in Left...
by VitS
Fri Nov 09, 2018 9:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Thank you very much for your replies.
by VitS
Thu Nov 08, 2018 8:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Thank you Hias! Here it is, page 15: https://www.akm.com/akm/en/file/datasheet/AK5385BVF.pdf Seems they both are right adjusted? But notice Data shift... Sure I'd rather switch it into i2s mode, but it is soldered already in a rack soundcard, and I can't make sure this change would be safe, you know.
by VitS
Wed Nov 07, 2018 8:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 901
Views: 437525

Re: STICKY: The I2S sound thread.

Hello, I would like to connect ADC (AK5385) to i2s. The codec set as 24bit MSB justified (as per manual), instead of i2s. I did successfully this for Amanero, that gives out 32-bit i2s. I put Pi 3B+ into slave mode, and recording with SoX was very well. Now, is there a way to set up Pi to receive 24...

Go to advanced search