Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| doc:howto:lirc-audio_alsa [2018/02/17 02:42] – [Make it work] removed superfluous html tmomas | docs:guide-user:hardware:lirc-audio_alsa [2021/12/27 09:54] (current) – [alsa bug] danitool | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| - | ===== Prepare | + | ===== Prepare your software ===== |
| To use the audio_alsa module you'll need to build Openwrt with the package lirc and alsamixer. Install both before building your own firmware. | To use the audio_alsa module you'll need to build Openwrt with the package lirc and alsamixer. Install both before building your own firmware. | ||
| < | < | ||
| Line 93: | Line 93: | ||
| ==== Build with a transmitter ==== | ==== Build with a transmitter ==== | ||
| - | You may want to use the [[doc/howto/lirc-gpioblaster|LIRC GPIO blaster]] kernel module together with audio_alsa receiver. We can use two lirc instances connected via TCP/IP or rather to patch lirc for having only one daemon running, this way it's more compact and saves some bytes. Link with the LIRC package and the patch, and also the lirc_gpioblaster module | + | You may want to use the [[docs: |
| <WRAP center round download 60%> | <WRAP center round download 60%> | ||
| LIRC audio_alsa patched to work with lirc_gpioblaster kernel module\\ | LIRC audio_alsa patched to work with lirc_gpioblaster kernel module\\ | ||
| Line 195: | Line 195: | ||
| Sometimes lirc is unable to open correctly the recording device. The cause is still unknown. But fortunatelly when opening several times the alsa recording device we can see it fails with a defined pattern. | Sometimes lirc is unable to open correctly the recording device. The cause is still unknown. But fortunatelly when opening several times the alsa recording device we can see it fails with a defined pattern. | ||
| - | '' | + | '' |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test02.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test01.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test03.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test02.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test04.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test03.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test05.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test04.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test06.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test05.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test07.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test06.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test08.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test07.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test09.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test08.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test10.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test09.wav |
| - | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test11.wav | + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test10.wav |
| + | arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test11.wav | ||
| ...... | ...... | ||
| '' | '' | ||
| Line 219: | Line 220: | ||
| You may need to put 1, 2 or 3 lines depending on the state of the recording device. Just test it adding more lines with a router reboot in every added recording line until lirc starts working ok. | You may need to put 1, 2 or 3 lines depending on the state of the recording device. Just test it adding more lines with a router reboot in every added recording line until lirc starts working ok. | ||
| - | |||
| ===== Notes ===== | ===== Notes ===== | ||
| Successfully tested with a [[toh: | Successfully tested with a [[toh: | ||
| - | |||
| - | ===== Tags ===== | ||
| - | {{tag> | ||