Go to advanced search

by HiassofT
Fri Jul 28, 2017 9:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using a I2S amp and a I2S microphone together.
Replies: 3
Views: 1843

Re: Using a I2S amp and a I2S microphone together.

You can do that by using the simple-audio-card driver and a dts file. Here's an example dts file that uses the generic spdif receiver and transmitter codecs: /dts-v1/; /plugin/; / { compatible = "brcm,bcm2708"; fragment@0 { target-path = "/"; __overlay__ { dual_soundcard: dual-soundcard { compatible...
by HiassofT
Fri Jul 21, 2017 8:47 pm
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

Today I built an IR transmitter and tested the gpio-ir-tx and pwm-ir-tx drivers mentioned above. Except for a minor issue (gpio polarity was wrong in gpio-ir-tx) they worked fine. Recent versions of v4l-utils include "ir-ctl" which provides a really easy way to send IR signals. It can encode the com...
by HiassofT
Thu Jul 06, 2017 9:49 am
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

FYI: A few days ago a patchset was posted on linux-media to add generic bit-banging and pwm-supported IR transmission:

http://www.mail-archive.com/linux-media ... 14958.html

so long,

Hias
by HiassofT
Sun Jul 02, 2017 4:48 pm
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

BTW: completely forgot, of course you can also use your existing lircd setup (using /dev/lirc0) as before - just set the rc-map-name to rc-empty then no protocol decoders will be activated.

so long,

Hias
by HiassofT
Sun Jul 02, 2017 1:29 pm
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

gpio-ir doesn't have many options, the gpio pin, pull up/down and the default rc-map to use. Check the overlays README, https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm/boot/dts/overlays/README, the overlay source https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm/boot/dts/over...
by HiassofT
Sat Jul 01, 2017 11:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 53480

Re: I2S Success (at last) !

I had to specify 32b recording to get 64 bclks per lr clk: So it looks like it's trying to be clever about setting the BCLK ratio based on the format (not always helpful).. Yes, that's the default unless the machine driver sets a fixed ratio. Have a look at this PR, it might add what you are lookin...
by HiassofT
Sat Jul 01, 2017 8:26 am
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

gpio-ir-recv depends on rc-core, lirc-dev (CONFIG_LIRC) is an optional feature. While most of the time you'll use in-kernel decoding with the IR drivers from the rc subsystem (via the rc5, rc6, ... decoder modules) you also have the possibility to pass raw, undecoded signals from/to userspace via a ...
by HiassofT
Fri Jun 30, 2017 10:17 pm
Forum: Device Tree
Topic: lirc_rpi.c won't compile under latest media_tree & 4.9.28v7+
Replies: 28
Views: 7397

Re: lirc_rpi.c won't compile under latest media_tree & 4.9.2

FYI: if you don't need the IR blasting functionality of lirc_rpi I'd recommend using gpio-ir-recv (gpio-ir DT overlay) instead. This driver is included in upstream kernel, is part of the rc subsystem and thus supports in-kernel decoding as well. For most common remotes (eg rc6 MCE remotes) you don't...

Go to advanced search