rec --device=/dev/dsp --rate=44100 --channels=2 recordedfile.wav
When I plug audio device (for example TV) into my soundcard's (SB Live Player) line input, TV's sound outputs into speakers. The problem is that the sound is not going to /dev/dsp (I think), so the recorded wave file is totally silent. Even my mixer settings should be OK. I really can't figure out this problem.