Go to advanced search

by HiassofT
Mon May 14, 2018 1:31 pm
Forum: General discussion
Topic: microphone volume needs boosted 30db+ please help
Replies: 6
Views: 863

Re: microphone volume needs boosted 30db+ please help

You can use the alsa softvol plugin. See here for details viewtopic.php?t=204133#p1267389 - make sure to replace the card name in slave.pcm and control.card with the name of soundcard you use.

so long,

Hias
by HiassofT
Thu May 10, 2018 1:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI delay between bytes is different for small and large transfers (spidev)
Replies: 6
Views: 1474

Re: SPI delay between bytes is different for small and large transfers (spidev)

Did you find a fix for this under spidev? I have the same issue, but see the delay with long buffers when calling writebytes or xfer/xfer2. There is no delay with buffers less than 0x10000 bytes in length, but I see a 1.5 bit time delay between bytes when buffers are 0x10000 byte in length or more....
by HiassofT
Tue May 08, 2018 11:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 462512

Re: STICKY: The I2S sound thread.

Hmmm you seem to have an asoundrc in place that downmixes to mono. Also "-f cdr" is odd, usually you'd use "-f cd" which is S16_LE (-f cdr is S16_BE) - but I'm not sure if this has an effect when used with wav files (never tried that). I'd start by using speaker-test and outputting directly to the h...
by HiassofT
Mon May 07, 2018 1:10 pm
Forum: Device Tree
Topic: I2S clocks, GPCLK0
Replies: 62
Views: 17339

Re: I2S clocks, GPCLK0

As there's no support in the RPi hardware you have to manage channel sync in software, by starting / stopping all relevant clocks just at the right moment. This can probably be fragile, especially if you pause a stream which will cause bcm2835 hardware to stop transferring data in the middle of a fr...
by HiassofT
Sat May 05, 2018 1:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 462512

Re: STICKY: The I2S sound thread.

Hi! Playing some music is weird, I get white noise at full volume unless I play at very low level, then I can listen to the music although the quality is still not very good. Did you maybe output audio in 24bit format? That would explain the issue. TDA1543A is a 16-bit only DAC and because it uses r...
by HiassofT
Tue May 01, 2018 11:44 am
Forum: Advanced users
Topic: RPI3 with initramfs built into kernel
Replies: 4
Views: 626

Re: RPI3 with initramfs built into kernel

Thanks, this works, however I meant using initramfs build into the kernel without an external image using the kernel config parameter INITRAMFS_SOURCE="xyz" I don't quite understand what you are trying to achieve. If you want an initramfs compiled into the kernel image you have to use INITRAMFS_SOU...
by HiassofT
Sat Apr 28, 2018 5:31 pm
Forum: Advanced users
Topic: RPI3 with initramfs built into kernel
Replies: 4
Views: 626

Re: RPI3 with initramfs built into kernel

Yes, it works, we're using it in LibreELEC. Basically you just have to point CONFIG_INITRAMFS_SOURCE to a cpio file of your initramfs and set root=/dev/ram0 on the command line. Here's the link to the RPi2/3 kernel config we are using (INITRAMFS_SOURCE is filled in by the build scripts): https://git...
by HiassofT
Tue Apr 17, 2018 1:22 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

Basically any IR LED should work, they typically transmit at about 940-950nm wavelength so should work fine with IR receivers. The most important differences between the different IR LEDs are power and opening (vieweing) angle / directivity. So you'll probably have to test which one works best for y...
by HiassofT
Thu Apr 12, 2018 5:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 462512

Re: STICKY: The I2S sound thread.

You can ignore the "spdif" name, despite their name the spdif receiver/transmitter codecs are just very generic drivers that don't do anything except allowing 16-24bit audio. They can be used for all ADCs/DACs that don't require any special configuration via I2C, SPI or GPIO pins. The important thin...
by HiassofT
Thu Apr 12, 2018 4:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 925
Views: 462512

Re: STICKY: The I2S sound thread.

Use the overlay I posted earlier today here: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=168808#p1301109 If the DAC is 16-bit only right justified then playing 24bit audio won't work, but 16bit audio should be fine (you can force 16bit mode with .asoundrc if you want/need). Unless you se...
by HiassofT
Thu Apr 12, 2018 8:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PT8211 I2S ASOC driver
Replies: 14
Views: 3660

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 HiassofT
Sun Apr 08, 2018 4:05 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

The appeal of using less GPIO pins is powerful. Especially as I may want to attach buttons, swtiches, etc to the same Pi unit later. I did not realize that I could use all the IR emmitters at once with the AND gate chip though. That is not that important, but it has appeal for sure. Additionally, I...
by HiassofT
Thu Apr 05, 2018 10:02 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

A demultiplexer will work fine, too. You only have to make sure you get the polarity right, eg the popular 74xx138 3-to-8 demultiplexers have inverting outputs. The 74HC238 has non-inverting outputs, so that one should work: Wire /E1 and /E2 to GND and E3 to the RPi IR out GPIO, A0 and A1 to 2 GPIOs...
by HiassofT
Tue Apr 03, 2018 8:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sound volume level
Replies: 2
Views: 371

Re: Sound volume level

You can use amixer for that. eg:

Code: Select all

amixer sset PCM 50%
or

Code: Select all

amixer sset PCM -- -10dB
The "--" is necessary so that "-10dB" is interpreted as a negative dB value, not a command line option

To query the current volume settings you can use

Code: Select all

amixer sget PCM
so long,

Hias
by HiassofT
Tue Apr 03, 2018 7:55 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

I'd recommend pwm-ir-tx which by default uses GPIO 18 (pin 12 of the header).

You'll have to remove / comment out "dtparam=audio=on" for that to work

so long,

Hias
by HiassofT
Tue Apr 03, 2018 4:31 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

You could, for example, use the good old 74HC08 quad 2-input AND gate for this purpose. Connect pin 14 of the '08 (VCC) to 3.3V and pin 7 (GND) to GND. Then connect the IR output GPIO (18) to one input of each AND gate (pins 1, 4, 10, 13). Connect 4 GPIOs of the RPi to the other inputs (pins 2, 5, 9...
by HiassofT
Wed Mar 28, 2018 8:50 pm
Forum: General discussion
Topic: RPi 3B+ gigabit ethernet bad download speeds.
Replies: 193
Views: 65856

Re: RPi 3B+ gigabit ethernet bad download speeds.

[ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 265 MBytes 222 Mbits/sec 3497 sender [ 4] 0.00-10.00 sec 265 MBytes 222 Mbits/sec receiver Don''t focus too much on retransmit values in iperf3, it''s normal that you see these when the RPi is on the receiving side. The sender will try to t...
by HiassofT
Wed Mar 28, 2018 10:46 am
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 41
Views: 12735

Re: Possibility for multiple instances of LIRC?

From a userspace perspective pwm-ir-tx works identical to gpio-ir-tx - both have the same capabilities (transmit IR, set carrier frequency and duty cycle). One difference is that you can't easily instantiate more than 1 pwm-ir-tx driver. The current overlay has the first pwm (pwm-0) hardcoded, with ...
by HiassofT
Mon Mar 19, 2018 10:48 pm
Forum: Troubleshooting
Topic: Pi 3 b+ with official supply refusing to boot and power led blinking
Replies: 5
Views: 1924

Re: Pi 3 b+ with official supply refusing to boot and power led blinking

We (LibreELEC) received several similar bug reports and I could reproduce the issue with old NOOBS versions on an RPi3B+. I, too, had problems finding instructions how to officially update NOOBS. What finally worked for me (with an initial NOOBS 2.4.5 installation) were the infos buried in this pihu...
by HiassofT
Sat Mar 17, 2018 10:55 pm
Forum: Troubleshooting
Topic: New P3 B Plus problem
Replies: 13
Views: 1391

Re: New P3 B Plus problem

davidcoton wrote:
Sat Mar 17, 2018 10:48 pm
Put the card back in the Pi3B, and do

Code: Select all

sudo apt update
sudo apt dist-upgrade
Then try again in the Pi3B+.
And if you are running NOOBS you will have to update NOOBS as well.

so long,

Hias
by HiassofT
Fri Mar 16, 2018 9:28 am
Forum: General discussion
Topic: 3B+ ethernet performance
Replies: 33
Views: 5011

Re: 3B+ ethernet performance

Does anyone know how network latency compares with the original 3B? For example, how do ping times from a PC to a 3B compare to ping times from the same PC to the 3B+ using the same Gbit switch? With EEE disabled 3B+ ping times are about 25% lower, with EEE enabled they are about the same as 3B. RP...
by HiassofT
Thu Mar 15, 2018 4:22 pm
Forum: General discussion
Topic: Error buying mpeg-2 and vc-1 license
Replies: 13
Views: 2375

Re: Error buying mpeg-2 and vc-1 license

I had the same issue today and what finally worked was to select "proceed to checkout" and later select paypal. Using the "checkout with paypal" button in the shopping cart resulted in the invalid shipping address message.

so long,

Hias
by HiassofT
Thu Mar 15, 2018 10:07 am
Forum: General discussion
Topic: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE
Replies: 376
Views: 66135

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Certainly some of it. EEE is supported. If the switch you connect to supports it you save about 0.5W. Just tested with the latest 4.14 rpi-update kernel which added EEE support and indeed it makes a nice difference. Idle power consumption of headless RPi3B+ (running Raspbian Stretch lite) was almos...
by HiassofT
Thu Mar 15, 2018 9:36 am
Forum: General discussion
Topic: LAN7515 -- USB bus contention issues?
Replies: 12
Views: 6230

Re: LAN7515 -- USB bus contention issues?

I did a quick test on my 3B+ and measured transfer speeds of slightly below 20MB/sec on GBit ethernet when copying a 10GB file via Samba from/to a 2.5" USB HDD attached to the RPi. So that's about what's to be expected from the USB2.0 limit. RPI 3B+ was running LibreELEC 8.2.4 with Samba 4.6.14, the...
by HiassofT
Mon Mar 12, 2018 10:02 am
Forum: Device Tree
Topic: Mute GPIO
Replies: 21
Views: 4852

Re: Mute GPIO

The 5 seconds delay before mute is turned on comes frome the DAPM pmdown time. Main reason for this delay is to avoid clicks when a device is closed and then shortly after that opened again. You can change this delay via the pmdown_time module parameter of snd_soc_core. Note that the delay is in mil...

Go to advanced search