You are not logged in.

#1 2014-01-15 07:49:55

32reg
Member
Registered: 2012-08-06
Posts: 24

[SOLVED] How to configure lirc with audio_alsa driver?

Hello.
How to configure lirc with audio_alsa driver?
My steps:
- I plugged a ir-receiver into MIC IN internal audio card (jack 3,5);
- set up capture from rear mic in alsamixer;
- then

arecord -D hw:0,0 -c2 -r48000 -f S16_LE

i see random symbols in stdout and symbols are changed when i pressing on buttons on ir remote. Also i hear noise when i pressed on buttons on ir remote;
- then

irrecord -f -H audio_alsa -d hw:0,0@48000,r lircd.conf

create lircd.conf file;
- i runnig lirc.service and systemctl status lirc says that is OK.
string which starting lirc in lirc.service:

/usr/bin/lircd --driver=audio_alsa --device=hw:0,0 /home/arch/lircd.conf

But ir remote don't work.
Help me, please, with this trouble.

Last edited by 32reg (2014-02-21 06:33:22)

Offline

#2 2014-02-10 22:22:10

danitool
Member
Registered: 2011-04-20
Posts: 4

Re: [SOLVED] How to configure lirc with audio_alsa driver?

I think the audio_alsa driver is partially broken. It worked quite fine with an older kernel like 2.6.32, but with newest kernels it seems lirc randomly detects remote codes. Might be caused by the alsa driver.

Offline

#3 2014-02-21 06:32:20

32reg
Member
Registered: 2012-08-06
Posts: 24

Re: [SOLVED] How to configure lirc with audio_alsa driver?

I found out a solution: necessary replace hw:0,0 to default in

irrecord -f -H audio_alsa -d hw:0,0@48000,r lircd.conf

and

/usr/bin/lircd --driver=audio_alsa --device=hw:0,0 /home/arch/lircd.conf

in sum it looks like

irrecord -f -H audio_alsa -d default lircd.conf
...
/usr/bin/lircd --driver=audio_alsa --device=default /home/arch/lircd.conf

Now all works perfectly.

Offline

Board footer

Powered by FluxBB