Go to advanced search

by mjubes
Mon Mar 19, 2018 2:02 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Model B+ - Freeze during installation?
Replies: 35
Views: 2971

Re: Raspberry Pi 3 Model B+ - Freeze during installation?

I am also having problems with 3B+ freezing when fitted with a SD card from a previous 3B


Does anybody know what the software/kernel differences are? i.e. what new or different files are in the boot directory or similar etc.
by mjubes
Mon Feb 26, 2018 4:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

dt overlay and dmix issue I am using Hias's basic overlay with the snd_soc_spdif_rx (and tx) built in 4.14 drivers, nothing else. I am also using the alsa API in "C" for the tests. When I do a playback open (snd_pcm_open) with "plughw:0,0" as the card name, and 48000 as speed, I can get alsa to open...
by mjubes
Fri Feb 23, 2018 3:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

I2S and 4.14 Having moved to 4.14 and using the standard HiassofT's "dual.dtbo" overlay (with the dai-tdm-slot-width=<32> configuration added) I noticed the actual I2S output from the hardware is only 2*24 bits (in a 2*32 bit frame) with padding, even though the actual input and settings are for a f...
by mjubes
Thu Oct 05, 2017 9:13 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

>Ah, you're right, the kernel in Raspbian Jessie is too old

Thanks. Just for information, it (sort of works) with Jessie and 4.9.28, but still needs my-loader.ko to be present!
by mjubes
Tue Oct 03, 2017 7:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

>Remove all dtoverlay lines except for dtoverlay=dual

Thanks. That worked !!

Well, it worked for Fletch, not for Jessie, which still seems to need my-loader.ko
by mjubes
Sun Oct 01, 2017 6:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

Thanks for that, but forgive my ignorance about device trees as I can't get it to work. I have done the following; * saved your text as dual.dtb * compiled with the dtb line you suggested * this generated 'dual.dtbo' * which I saved in /boot/overlays/dual.dtbo * then I edited /boot/config.txt to inc...
by mjubes
Thu Sep 28, 2017 8:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: STICKY: The I2S sound thread.

New Stretch OS

Does anybody know how this new version affect I2S issues. e.g. do I still need to include my-loader.ko to enable capture, or does it come with built in drivers for both in and out I2S
by mjubes
Fri Jan 13, 2017 12:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S sound and asound.conf
Replies: 0
Views: 494

I2S sound and asound.conf

I have been using the my_loader.c I2S capture driver as mentioned in other parts of this forum without any problems. However, I have a query regarding its use in an ALSA duplex/mixer environment, and possibly to do with the way /etc/asound.conf is laid out. (1) I can playback and capture at the same...
by mjubes
Sun Sep 25, 2016 8:31 pm
Forum: Advanced users
Topic: RB Pi 3 fail to load SPI1
Replies: 7
Views: 6166

Re: RB Pi 3 fail to load SPI1

Reposting here from a different thread: I have an SPI program using ioctl calls on "/dev/spidev0.0" and "/dev/spidev0.1" i.e. using both ce0 and ce1 on SPI0. The program has worked perfectly well on a RPI2 without any problems, but when moved to an RPI3, calls using ce0 (i.e. /dev/spidev0.0) still w...
by mjubes
Sun Sep 25, 2016 8:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Odd issue with RPI3 SPI and CE1
Replies: 2
Views: 594

Re: Odd issue with RPI3 SPI and CE1

Thanks for that, though I am not sure whether it relates to the other SPI registers (SPI and SPI2)

I am having problems with the original SPI0, driving the two CE pins (ce0 and ce1). i.e. it works on ce0 but not on ce1.
by mjubes
Sat Sep 24, 2016 2:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Odd issue with RPI3 SPI and CE1
Replies: 2
Views: 594

Odd issue with RPI3 SPI and CE1

I have an SPI program using ioctl calls on "/dev/spidev0.0" and "/dev/spidev0.1" i.e. using both ce0 and ce1. The program has worked perfectly well on a RPI2 without any problems, but when moved to an RPI3, calls to ce0 (i.e. /dev/spidev0.0) work OK, but calls to ce1 return gibberish memory data. i....
by mjubes
Mon Sep 19, 2016 1:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 106
Views: 39165

Re: I2S Success (at last) !

I have a Pi3 with myloader.c etc all working OK into both I2S inputs and outputs, as record and playback On playback I have both the PWM output as card0 and PCM as card1 My question is more Alsa related: how does the boot sequence allocate the order of sound cards? as I also have another PI2 with a ...
by mjubes
Tue Mar 01, 2016 12:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi 3 peripherals
Replies: 1
Views: 694

Pi 3 peripherals

The B+ and Pi 2 have different base peripheral memory addresses: (0x20200000 and 0x3f200000) With the relative start address for each peripherals remaining the same. Does anybody know whether Pi 3 follows this? is there a different base address for Pi 3? Also, how can you programmatically identify w...
by mjubes
Tue Jan 26, 2016 11:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

Am i right in thinking that only a 32fs (BCK frequency selection [BCLK/frame]) works with the pi? If i set it to 64fs then all i hear is white noise. I'm trying to look for an ADC with i2s out but most of them seem to go to 64fs as a minimum, and i can't figure out how to change the bits per frame ...
by mjubes
Sat Jan 23, 2016 3:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

So, would this be the equivalent to calling 'arecord .... sample.wav' as that's essentially what i'm after. Was there some keywords or a site you can send me to so i can see some examples on how to get started with this stuff? Basically yes, with the added advantage that you can programmatically ma...
by mjubes
Fri Jan 22, 2016 2:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

Interesting, what else can do you with the c + alsa dev lib? Basic operations are capture incoming sound to a given RAM array (repeatedly on an interrupt basis) and send the contents of an array to the sound device (again, on an interrupt basis) The only thing you need to do is to fill the arrays u...
by mjubes
Thu Jan 21, 2016 4:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

. You mention changing the sampling speed, do you mean changing that at my arecord command? I can't remember if i got the clicks at the higher pitched 48 KHz sample as mentioned above, but i thought that changing the sampling speed on arecord only changes the pitch, and not introduce clicks? I will...
by mjubes
Wed Jan 13, 2016 12:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

I finally got this working, but i have some minor clipping the captured audio . Is it possible to know what the simple card / pi side / i2s standard is for attributes like: *data read on clock falling or rising edge *left/right justify? Getting rid of those last clips by configuring the source devi...
by mjubes
Wed Dec 30, 2015 9:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enabling SPI ?
Replies: 4
Views: 4515

Re: Enabling SPI ?

Whats the latest on enabling SPI ? I am using Raspbian & Jessie. Is it just .... sudo raspi-config Select 'Advanced Options' and then select the relevant option ? Searching around the web has all sorts of options including changing blacklists, installing spidev, modifying /boot/config.txt.. very co...
by mjubes
Mon Dec 28, 2015 12:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

Sorry for late answer.I bought a new microphone still no record. Outputs are arecord -l **** List of CAPTURE Hardware Devices **** card 1: sndrpisimplecar [snd_rpi_simple_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 That is good news as i...
by mjubes
Wed Dec 23, 2015 4:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 849
Views: 352208

Re: I2S sound: Anyone got it running? (answer is yes!)

Using the (modified my_loader) code from
viewtopic.php?p=803012#p803012
exactly "as is" what do you get when you enter:
aplay -l
arecord -l
by mjubes
Thu Dec 17, 2015 3:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: fast DAC
Replies: 10
Views: 2222

Re: fast DAC

. The output rate has to be stable. I am wondering if this could be made with an SPI DAC and DMA. Eduard Using spi with the spidev library, you can just about get the 3Mbps rate. But you must use 4k byte blocks (the current maximum) and use it together with device library spi-bcm2835, which uses DM...
by mjubes
Mon Dec 14, 2015 12:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S ADC capture and Device Tree.
Replies: 4
Views: 1338

Re: I2S ADC capture and Device Tree.

Yes, this is what I noticed (though it doesn't mean I know what is going on) Possibly because the code I used (from) https://www.raspberrypi.org/forums/viewtopic.php?p=803012#p803012 is basically a modified version of my_loader.c but with mentions of "dmic.c" replaced by "simple_card" so dmic is not...
by mjubes
Sun Dec 13, 2015 11:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S ADC capture and Device Tree.
Replies: 4
Views: 1338

Re: I2S ADC capture and Device Tree.

Finally found out what the problem was. Very simple (in hindsight) I am using a RPI P2, so all references to "20203000.i2s" in the original code should have been changed to "3f203000.i2s" for the P2 (lower case 'f') Also with these changes, the dmic.ko file is not needed, as the loader caters for bo...
by mjubes
Sun Dec 13, 2015 3:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S ADC capture and Device Tree.
Replies: 4
Views: 1338

I2S ADC capture and Device Tree.

I can get I2S capture working on RPI by just dynamically loading a couple of modules in rc.local: insmod snd-soc-dmic.ko insmod my_loader.ko ref: https://www.raspberrypi.org/forums/viewtopic.php?p=822959#p822959 This is with device tree disconnected (i.e. "device_tree= " in /boot/config.txt) However...

Go to advanced search