-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not to add lirc_gpio support to sunxi3.4 kernel for A20 chips? #135
Comments
I know, I add those patches to that kernel source ;) but I forgot the reason why those patches are not brought to the kernel I use now by default. Reason of switching back to default community kernel is because it's working with A10 and A20, while dan-and is crippled for A10. I can add those two patches back if they work o.k.? I never came that far to actually test this functionality. Mainline kernel has it's own key benefits even it's not that feature rich. |
GPIO lirc transmitter works fine:
Need separate configs for two lircd instances. Armbian /etc/init.d/lirc is buggy - TRANSMITTER_LIRCD_CONF unused. I have patched /etc/init.d/lirc: added TRANSMITTER_LIRCD_CONF and TRANSMITTER_PIN variables. In this table use sys row for banana pro to find sys pin number for given hardware pin. Example: hardware pin 3 PB21 (WTI2_SDA) is sys pin 2. |
One note, sunxi-ir driver is buggy - supports only NEC protocol. irrecord can't record on my device. |
I added patches to the A10/20 kernel and sucesfully conduct IRSEND test. I am only a bit confused about the receive part. We don't have devinput with this driver, right? Does it make sense to retain default driver? |
With sunxi_lirc use /dev/lirc1 or lirc0 instead of devinput. But sunxi_lirc is buggy too =) mode2 shows numbers if key pressed on remote. irrecord works - write dots, if key pressed, but can't produce working config. And lirc daemon doesn't work with sunxi_lirc: i think, it don't understand protocol, which used in sunxi_lirc. Anhother bug: when playing sound from onboard or external usb sound card - and data sending to lirc_gpio - pulseaudio is shut up. Helps this: pasuspender -- irsend ... Overall: |
Hmm, nice ;) OK, let's include the drivers into the build and if someone needs this functionality, he could relate to your findings - use a proper combination, not waste time and perhaps provide a fix for this. |
There are no /dev/lirc0 or /dev/lirc1 with module sunxi_ir Press RETURN now to start recording. Please enter the name for the next button (press to finish recording) Now hold down button "KEY_EXIT". |
Hello, source code are hosted on github : https://github.com/damien7851/lirc_sunxi_rewrite.git branch rc. I'm very happy to receive code review and pull request. |
Can you tell me how I can build lirc_gpio module in kernel 4.3 |
Hi, |
Obsolete since kernel 3.4.x is EOL, if anybody wants to add/improve anything in this kernel a pull request can be used. |
I try to make ir sender from my banana pro, but lirc can't send anything to gpio ports without lirc_gpio kernel driver.
You use mainline kernel with banana-related patches https://github.com/igorpecovnik/lib/blob/master/configuration.sh#L281, without lirc_gpio.
But alternative dan-and kernels has lir_gpio driver: https://github.com/dan-and/linux-sunxi/blob/dan-3.4.current/drivers/staging/media/lirc/lirc_gpio.c
Originally from https://github.com/matzrh/sunxi-lirc/blob/master/lirc_gpio.c
Why not to add lirc_gpio support to sunxi3.4 kernel for A20 chips?
Why do you use mainline kernel for bananapi/pro, no alternative kernels, which looks more feature-rich?
The text was updated successfully, but these errors were encountered: