Guitar Tuner app probs with using /dev/dsp on 2.6.28

Timo Juhani Lindfors timo.lindfors at iki.fi
Tue Jan 27 18:37:25 CET 2009


c_c <cchandel at yahoo.com> writes:
> stereoout.state before the program quits. Otherwise, I get a kernel oops (on
> the tracker - I think).
>   So, here's the question that begs asking. 
>   What's the best way to read data from the mic for a program like this?

Help us fix the bug :-)

As a workaround you can write a wrapper program that

1) opens alsa device (don't use legacy /dev/dsp)
2) only after that switches to voice-recording.state
3) streams data to stdout

and on reception of SIGINT first

4) switches back to streoout.state
5) closes alsa device

This can be done as a shell script that uses arecord.




More information about the devel mailing list