Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 tmomasdocs:guide-user:hardware:lirc-audio_alsa [2021/12/27 09:54] (current) – [alsa bug] danitool
Line 16: Line 16:
  
  
-===== Prepare your your software =====+===== 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. 
 <code>./scripts/feeds update -a <code>./scripts/feeds update -a
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:guide-user:hardware: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
 <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 test01.wav  <- good +'' 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test02.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test01.wav  <- good  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test03.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test02.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test04.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test03.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test05.wav  <- good +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test04.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test06.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test05.wav  <- good  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test07.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test06.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test08.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test07.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test09.wav  <- good +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test08.wav  <- <color red>bad</color>  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test10.wav  <- <color red>bad</color> +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test09.wav  <- good  \\ 
-arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test11.wav  <- <color red>bad</color>+arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test10.wav  <- <color red>bad</color>  \\ 
 +arecord -q -d 1 -r44100 -f S16_LE -c1 -t wav test11.wav  <- <color red>bad</color>  \\
 ...... ......
 '' ''
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:inventel:DV4210|Livebox 1]] router under Backfire, using a CSOUNDU Conceptronic usb audio card, and TSOP1736  --- //danitool 2012/11/04 15:02// Successfully tested with a [[toh:inventel:DV4210|Livebox 1]] router under Backfire, using a CSOUNDU Conceptronic usb audio card, and TSOP1736  --- //danitool 2012/11/04 15:02//
  
- 
-===== Tags ===== 
-{{tag>wip lirc}} 
  • Last modified: 2021/12/27 09:54
  • by danitool