ТВ тюнер(Pinnacle 150e) звук НЕ через Sox
здравствуйте имею сабж, настроил его, все работает но звук идет через SOX вот таким скриптом.
sox -t ossdsp -r 48000 -c 2 /dev/dsp1 -t ossdsp /dev/dsp2 & tvtime --mixer=/dev/mixer:pcm wait tvtime t=`pidof sox`; kill $t; amixer -c 0 sset PCM 80%,80% unmute
Но SOX ужасно неудобен, потому что полностью занимает звуковую подсистему и звука в других приложениях нет. Как можно перенаправить звук в alsa или еще как нибудь решить проблемму. На всякий случай листинги.
cat /proc/asound/cards
0 [PAL ]: USB-Audio - PCTV USB2 PAL Pinnacle Systems GmbH PCTV USB2 PAL at usb-0000:01:07.2-2, high speed 1 [default ]: USB-Audio - PnP Audio Device PnP Audio Device at usb-0000:00:02.0-7, full speed
Конфиг tvtime <tvtime xmlns="http://tvtime.sourceforge.net/DTD/"> <option name="DefaultBrightness" value="-1"/> <option name="DefaultContrast" value="-1"/> <option name="DefaultSaturation" value="-1"/> <option name="DefaultHue" value="-1"/> <option name="PrevChannel" value="13"/> <option name="Channel" value="15"/> <option name="FramerateMode" value="0"/> <option name="OverScan" value="3.5"/> <option name="CheckForSignal" value="1"/> <option name="AudioBoost" value="-1"/> <option name="AlwaysOnTop" value="0"/> <option name="QuietScreenshots" value="0"/> <option name="UnmuteVolume" value="25700"/> <option name="Muted" value="0"/> <option name="V4LInput" value="0"/> <option name="AudioMode" value="mono"/> <option name="PalDKMode" value="0"/> <option name="Widescreen" value="0"/> <option name="Fullscreen" value="0"/> <option name="Verbose" value="0"/> <option name="WindowGeometry" value="0x576"/> <option name="InputWidth" value="768"/> <option name="V4LDevice" value="/dev/video0"/> <option name="VBIDevice" value="/dev/vbi0"/> <option name="Norm" value="PAL"/> <option name="Frequencies" value="russia"/> <option name="MixerDevice" value="/dev/mixer:speaker"/> <option name="XMLTVFile" value="none"/> <option name="XMLTVLanguage" value="none"/> <option name="ProcessPriority" value="-10"/> </tvtime>
вывод dmesg
[ 4988.600528] usb 2-2: new high speed USB device using ehci_hcd and address 3 [ 4988.739105] usb 2-2: configuration #1 chosen from 1 choice [ 4988.829734] Linux video capture interface: v2.00 [ 4988.857214] em28xx v4l2 driver version 0.1.0 loaded [ 4988.857245] em28xx new video device (2304:0208): interface 0, class 255 [ 4988.857250] em28xx Has usb audio class
...вырезано
[ 4989.127661] EEPROM ID= 0x9567eb1a, hash = 0x72f9b2c9 [ 4989.127662] Vendor/Product ID= 2304:0208 [ 4989.127663] AC97 audio (5 sample rates) [ 4989.127665] 500mA max power [ 4989.127666] Table at 0x06, strings=0x1e98, 0x2e6a, 0x0000 [ 4989.504948] saa7115' 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0) [ 4990.265571] tuner' 5-0043: chip found @ 0x86 (em28xx #0) [ 4990.309457] tda9887 5-0043: creating new instance [ 4990.309460] tda9887 5-0043: tda988[5/6/7] found [ 4990.320330] tda9887 5-0043: destroying instance [ 4990.320413] tda9887 5-0043: creating new instance [ 4990.320415] tda9887 5-0043: tda988[5/6/7] found [ 4990.347141] tuner' 5-0063: chip found @ 0xc6 (em28xx #0) [ 4990.361264] tuner-simple 5-0063: creating new instance [ 4990.361268] tuner-simple 5-0063: type set to 37 (LG PAL (newer TAPC series)) [ 4990.972822] em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0 [ 4990.972826] em28xx #0: Found Pinnacle PCTV USB 2