Go to advanced search

by HiassofT
Tue Jul 09, 2019 3:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 900
Views: 437100

Re: STICKY: The I2S sound thread.

You may need to use bitclock-master and frame-master properties with the codec phandle in the CPU node, like this: cpu_port: port { cpu_endpoint: endpoint { remote-endpoint = <&codec_endpoint>; frame-master = <&codec_endpoint>; bitclock-master = <&codec_endpoint>; dai-format = "i2s"; }; }; Not sure ...
by HiassofT
Tue Jul 09, 2019 2:22 pm
Forum: Advanced users
Topic: Pi4 vs Pi3 Audio Performance
Replies: 9
Views: 826

Re: Pi4 vs Pi3 Audio Performance

Can you check with a WAV file and play it with "aplay -v 1khz.wav"?

Please test this on RPi3 Stretch, RPi3 Buster and RPi4 Buster and post the output of above command and your THD measurements.

Could well be that Audacity in Buster behaves differently to the version from Stretch.

so long,

Hias
by HiassofT
Mon Jul 08, 2019 5:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 900
Views: 437100

Re: STICKY: The I2S sound thread.

bitclock-slave and frame-slave aren't valid device tree properties, so they'll be simply ignored. You have to set bitclock-master and frame-master on the other (codec) endpoint instead. see https://github.com/raspberrypi/linux/blob/rpi-4.19.y/Documentation/devicetree/bindings/sound/audio-graph-card....
by HiassofT
Mon Jul 08, 2019 11:38 am
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 708

Re: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

Raspbian Lite on my RPi4 and Debian Buster on my x86 PC didn't interactively ask me if I'd like to accept the release info change, but using the --allow-releaseinfo-change option worked fine (you'll only need to do this once) sudo apt-get --allow-releaseinfo-change update Edit: this is how it looked...
by HiassofT
Tue Jul 02, 2019 9:53 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 697
Views: 58995

Re: Raspberry Pi 4 Thread - general discussion

Sorry, I'm not going to run random bash scripts from the internet. I used the commands as on the Raspberry Pi Dramble microSD benchmarks site. Most benchmarkers though recommend to set the performance governor as ondemand can skew the results and make them impossible to compare - see the update to m...
by HiassofT
Tue Jul 02, 2019 9:22 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 697
Views: 58995

Re: Raspberry Pi 4 Thread - general discussion

ok, Is this a better solution? Can someone here please go to https://www.pidramble.com/wiki/benchmarks/microsd-cards or here https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=140461 and use one of the methods listed on this page to get a good reading from their Pi 4 for the SD card speed and ...
by HiassofT
Sun Jun 30, 2019 9:27 pm
Forum: General discussion
Topic: Kodi is broken on raspbian buster
Replies: 13
Views: 932

Re: Kodi is broken on raspbian buster

Thanks for the info, I read about it in Kodi and LibreElec forums, and I already saw the new branch in popcornmix github. One question: compiling this branch against the Mesa libs, will it work on the older Pies using the vc4-fkms ? I haven't tested that myself yet - we kept older RPis builds as is...
by HiassofT
Sun Jun 30, 2019 8:41 pm
Forum: General discussion
Topic: Kodi is broken on raspbian buster
Replies: 13
Views: 932

Re: Kodi is broken on raspbian buster

Kodi 18 isn't quite there yet with support for the new (v4l2) video drivers, this will be tackled in Kodi 19 (maybe stuff can be backported to Kodi 18, but it's way too early to tell). Also there's no HEVC v4l2 decoder at the moment (only an ffmpeg userspace implementation, which works quite fine th...
by HiassofT
Sun Jun 30, 2019 8:48 am
Forum: General discussion
Topic: Not all RPI 4's are equal?
Replies: 34
Views: 2572

Re: Not all RPI 4's are equal?

300mW, not 300mA :-) so about 60mA less.

These are the screenshots from my bench top power supply, setup to output 5.1V:

current release firmware:
00013701.png
00013701.png (3.56 KiB) Viewed 1169 times
updated testing firmware:
000137a8.png
000137a8.png (3.58 KiB) Viewed 1169 times
so long,

Hias
by HiassofT
Sun Jun 30, 2019 8:31 am
Forum: General discussion
Topic: Not all RPI 4's are equal?
Replies: 34
Views: 2572

Re: Not all RPI 4's are equal?

To clarify things: RPi4 not only has an upgradeable bootloader in an SPI EEPROM but also the VIA USB3 controller has upgradeable firmware in an EEPROM - the latter is what the CNX article is talking about. I also did some quick tests with the newer USB controller firmware (which is currently in inte...
by HiassofT
Tue Jun 25, 2019 8:04 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 697
Views: 58995

Re: Raspberry Pi 4 Thread - general discussion

I was using and adapter then used a cable from Sony 4K camcorder in both cases it does 4K 30 at most, I know is not the cable or the adapter, in any case I went with 1080p 60 and the experience was not good at all What kind of TV are you using? I ran into a similar issue when testing LibreELEC on m...
by HiassofT
Sat Jun 01, 2019 9:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to enable CTS RTS for Raspberry Pi 3 b+ UART
Replies: 5
Views: 438

Re: How to enable CTS RTS for Raspberry Pi 3 b+ UART

For the PL011 (/dev/ttyAMA0) UART use the uart-ctsrts overlay from the github link I posted above.

so long,

Hias
by HiassofT
Wed May 29, 2019 12:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to enable CTS RTS for Raspberry Pi 3 b+ UART
Replies: 5
Views: 438

Re: How to enable CTS RTS for Raspberry Pi 3 b+ UART

You can do this with a small, custom device tree overlay file. A couple of months ago I faced the same issue and created a bunch of overlays - you can download them from here https://github.com/HiassofT/AtariSIO/tree/master/contrib/rpi For ttyS0 you need to copy "miniuart-ctsrts.dtbo" to /boot/overl...
by HiassofT
Thu May 23, 2019 8:37 am
Forum: HATs and other add-ons
Topic: Cirrus Logic Sound Card for R-Pi3 control issue
Replies: 8
Views: 453

Re: Cirrus Logic Sound Card for R-Pi3 control issue

You can control the headphone output volume with "HPOUT1 Digital", the lineout volume with "HPOUT2 Digital". When recording audio adjust "IN3L" and "IN3R" for line-in - there are separate controls for left/right. The WM5102 chip supports very complex signal routing, therefore I wrote a bunch of (she...
by HiassofT
Mon Apr 22, 2019 12:46 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 34
Views: 2633

Re: Merge 2 DTS

The "arecord | aplay" command should work fine - I tested it on my Cirrus Logic Audio Card with current rpi-update kernel and it worked. No idea what's going wrong. There might be a bug in the audiosense pi driver (or the codec) or something odd is going on with the DAB board. Unfortunately the docs...
by HiassofT
Sun Apr 21, 2019 4:38 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 34
Views: 2633

Re: Merge 2 DTS

vitalic wrote:
Sun Apr 21, 2019 4:07 pm
Sounds interesting but how should the hifiberry get registered by the pi when it's not activated in the config.txt?
It won't be registered - you just record from and play to the audiosense pi. No need to tell the system you hooked up another card for playback in parallel :-)

so long,

Hias
by HiassofT
Sun Apr 21, 2019 3:10 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 34
Views: 2633

Re: Merge 2 DTS

The driver source code is here https://github.com/raspberrypi/linux/tree/rpi-4.19.y/sound/soc/bcm (hifiberry-dac uses the rpi-simple-soundcard driver). On a second thought with a Hifiberry DAC (not dacplus!) things will be a lot easier (sorry, had the dacplus in mind first). The driver is pure boile...
by HiassofT
Sat Apr 20, 2019 12:14 pm
Forum: Device Tree
Topic: Merge 2 DTS
Replies: 34
Views: 2633

Re: Merge 2 DTS

In your DT overlay you are trying to load 2 sound card drivers (the Hifiberry one and the Audiosense one) which both need (exclusive access to) bcm2835-i2s - and dmesg is telling you that the second driver can't be loaded because the first one already grabbed bsm2835-i2s bcm2835-i2s 3f203000.i2s: Tr...
by HiassofT
Wed Mar 20, 2019 10:58 am
Forum: Device Tree
Topic: Help needed with I2S device tree overlay
Replies: 3
Views: 947

Re: Help needed with I2S device tree overlay

The dual_soundcard overlay creates a card with two devices, playback on device 0 and record on device 1 card 1: Audio [Sierra Audio], device 1 : bcm2835-i2s-dir-hifi dir-hifi-1 [] So for recording you have to use arecord -D plughw:1 ,1 (or hw:1,1) to select the correct device. You probably also have...
by HiassofT
Fri Mar 15, 2019 7:39 pm
Forum: Troubleshooting
Topic: lirc on Raspberry Pi Zero W with gpio-ir
Replies: 2
Views: 1239

Re: lirc on Raspberry Pi Zero W with gpio-ir

I'd recommend looking at the more modern tools, ir-ctl and ir-keytable - lircd and especially irrecord were always a bit troublesome to use. With ir-keytable you can see the decoded scancodes of various ir protocols and configure the in-kernel mapping from IR scancodes to Linux keycodes With ir-ctl ...
by HiassofT
Tue Mar 12, 2019 5:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 110
Views: 48176

Re: I2S Success (at last) !

I'm not exactly sure what you are trying to achieve, but if you just want some generic driver simply use

Code: Select all

dtoverlay=hifiberry-dac
The overlay / card driver doesn't require any specific hardware to be present.

so long,

Hias
by HiassofT
Tue Feb 26, 2019 7:20 pm
Forum: Raspbian
Topic: GPIO IR remote problem
Replies: 7
Views: 1521

Re: GPIO IR remote problem

You need to create 2 files. First one with your keymap which you store in /storage/.config/rc_keymaps - better don't name that file "rc_maps.cfg" like you are currently using but something like "my_remote". Then create a /storage/.config/rc_maps.cfg file with the mapping between driver, default keym...
by HiassofT
Thu Feb 21, 2019 7:14 pm
Forum: Media centres
Topic: [Guide][Testing] Kodi 18.0 Leia beta versions for Raspbian Stretch! [obsolete and locked]
Replies: 110
Views: 55981

Re: [Guide][Testing] Kodi 18.0 Leia beta versions for Raspbian Stretch!

One thing I noticed, it takes longer for return to video file selection after finishing any video I watched (20 to 40 seconds delay), unlike when it was still 17.6 (usually takes 10 secs or less). is this a known problem? any solution in the horizon? I didn't experience this issue myself yet but it...
by HiassofT
Sun Feb 10, 2019 10:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Incorrect bytes received through USB
Replies: 5
Views: 344

Re: Incorrect bytes received through USB

Keep in mind that read() and write() will transfer up to the number of bytes specified in the count argument - see "man 2 read" and "man 2 write" for details.

So always check the return value of these calls, especially in non-blocking mode as typically used with serial devices.

so long,

Hias
by HiassofT
Thu Jan 24, 2019 10:11 pm
Forum: Advanced users
Topic: Analogue audio redux
Replies: 78
Views: 23530

Re: Analogue audio redux

We've had a couple of reports in LibreELEC that playing live TV results in audio crackling when audio_pwm_mode=2. See eg here: https://www.raspberrypi.org/forums/viewtopic.php?f=35&t=231162&p=1415777#p1415724 I haven't checked that myself yet but I'm guessing deinterlacing, DRAM bandwitdh, GPU load ...

Go to advanced search