Németh Márton írta:
> Markus Rechberger írta:
>> On Thu, Nov 20, 2008 at 12:40 AM, Németh Márton <[EMAIL PROTECTED]> wrote:
>>> Markus Rechberger írta:
>>>> Hi,
>>>>
>>>> 2008/11/19 Németh Márton <[EMAIL PROTECTED]>:
>>>>> Hi,
>>>>>
>>>>> I have the some problems when I want to watch analog broadcast channels
>>>>> on Pinnacle Hybrid Pro Stick (320e) USB ID=eb1a:2881.
>>>>>
>>>>> Steps to reproduce:
>>>>> 1. Boot computer
>>>>> 2. Plug in Pinnacle Hybrid Pro Stick (320e)
>>>>> 3. Start "rawrec -c 1 -f s16_le -s 44100 -d /dev/dsp2 |rawplay -c 1 -f
>>>>> s16_le -s 44100 -d /dev/dsp" as root
>>>>> 4. Start "xawtv" => there is no sound
>>>> run rawrec after xawtv is started?
>>> The result is the same: no sound.
>>> Change "Video source" from "Television" to "Composite1" => no sound, black
>>> video.
>>> Change "Video source" from "Composite1" to "Television" again => video OK
>>> and sound is available (but noisy).
>>>
>>> If I exit xawtv now and start it again I do not need to change
>>> the "Video source" and I can hear the sound.
>> I will check this tomorrow!
>
> Additional info: when the device is first plugged in, there is no sound with
> xawtv. Then I open the "Video source" and select again "Television", then
> the sound starts.
>
> Then I stop xawtv, start it again: there is sound.
>
> Then I stop xawtv again, unplug the device, replug it: there is no sound
> in xawtv until I set the "Video source" again explicitly.
I did another test:
1. Boot computer
2. Load kernel module: modprobe -k em28xx video_debug=1
3. Plug Pinnacle Hybrid Pro Stick (320e)
4. Start xawtv
5. rawrec -c 1 -f s16_le -s 44100 -d /dev/dsp2 |rawplay -c 1 -f s16_le -s 44100
-d /dev/dsp
Now there is no sound. The dmesg so far is:
[ 2906.699745] Linux video capture interface: v2.00
[ 2906.732868] em28xx v4l2 driver version 0.0.1 loaded
[ 2906.734659] usbcore: registered new interface driver em28xx
[ 2924.021109] usb 4-3: new high speed USB device using ehci_hcd and address 4
[ 2924.151114] usb 4-3: configuration #1 chosen from 1 choice
[ 2924.155353] em28xx: new video device (eb1a:2881): interface 0, class 255
[ 2924.156869] em28xx: device is attached to a USB 2.0 bus
[ 2924.157489] em28xx #0: Alternate settings: 8
[ 2924.157831] em28xx #0: Alternate setting 0, max size= 0
[ 2924.158209] em28xx #0: Alternate setting 1, max size= 0
[ 2924.158541] em28xx #0: Alternate setting 2, max size= 1448
[ 2924.158920] em28xx #0: Alternate setting 3, max size= 2048
[ 2924.159293] em28xx #0: Alternate setting 4, max size= 2304
[ 2924.159788] em28xx #0: Alternate setting 5, max size= 2580
[ 2924.160191] em28xx #0: Alternate setting 6, max size= 2892
[ 2924.160660] em28xx #0: Alternate setting 7, max size= 3072
[ 2924.632841] attach_inform: tvp5150 detected.
[ 2924.679559] tvp5150 1-005c: tvp5150am1 detected.
[ 2926.325129] successfully attached tuner
[ 2926.325446] em28xx #0 em28xx_init_dev :tvnorm = PAL-BG
[ 2926.338656] em28xx #0: V4L2 VBI device registered as /dev/vbi0
[ 2926.363367] em28xx #0 video_mux :Setting input index = 0, vmux = 0, amux = 0
[ 2926.363861] em28xx #0: V4L2 device registered as /dev/video0
[ 2926.366615] input: em2880/em2870 remote control as /class/input/input12
[ 2926.375460] em28xx-input.c: remote control handler attached
[ 2926.375773] em28xx #0: Found Pinnacle Hybrid Pro
[ 2926.376603] audio device (eb1a:2881): interface 1, class 1
[ 2926.377063] audio device (eb1a:2881): interface 2, class 1
[ 2927.368716] em2880-dvb.c: DVB Init
[ 2927.424144] usbcore: registered new interface driver snd-usb-audio
[ 2927.918355] DVB: registering new adapter (em2880 DVB-T)
[ 2927.919085] DVB: registering frontend 0 (Zarlink ZL10353 DVB-T)...
[ 2927.929104] Em28xx: Initialized (Em2880 DVB Extension) extension
[ 2988.924543] tvp5150 1-005c: tvp5150am1 detected.
[ 2989.044578] em28xx #0 em28xx_v4l2_open :open minor = 0 type = <NULL> users = 0
[ 2989.103519] em28xx #0 em28xx_v4l2_close :users = 1
[ 2989.149812] em28xx #0 em28xx_v4l2_close :setting alternate 0
[ 2989.150754] em28xx #0 em28xx_v4l2_open :open minor = 0 type = <NULL> users = 0
[ 2989.157776] em28xx #0 em28xx_v4l2_close :users = 1
[ 2989.207799] em28xx #0 em28xx_v4l2_close :setting alternate 0
[ 2989.207955] em28xx #0 em28xx_v4l2_open :open minor = 0 type = <NULL> users = 0
[ 2989.631165] em28xx #0 em28xx_do_ioctl :VIDIO_G_TUNER: signal = 0, afc = 0
[ 2989.953105] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 2989.953126] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 2989.953136] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 2990.032286] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 2990.032308] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 2990.032318] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 2990.087707] em28xx #0 em28xx_video_do_ioctl :VIDIOC_REQBUFS: setting io
method to mmap: num bufs 2
[ 2990.088619] em28xx #0 em28xx_do_ioctl :VIDIOC_STREAMON: starting stream
[ 2990.089315] em28xx #0 em28xx_do_ioctl :VIDIOC_STREAMOFF: interrupting stream
[ 2990.415597] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 2990.415619] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 2990.415629] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 2990.461531] em28xx #0 em28xx_video_do_ioctl :VIDIOC_REQBUFS: setting io
method to mmap: num bufs 2
[ 2990.462442] em28xx #0 em28xx_do_ioctl :VIDIOC_STREAMON: starting stream
[ 2995.487691] em28xx #0 em28xx_do_ioctl :VIDIO_G_TUNER: signal = ffff, afc = 0
6. here I open the "Video source" option and select "Television" again.
Now the dmesg shows the followning messges:
[ 3014.961168] em28xx #0 em28xx_do_ioctl :VIDIOC_STREAMOFF: interrupting stream
[ 3015.281270] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.281294] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.281304] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.349862] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.349890] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.349900] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.404976] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.405036] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.405046] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.460745] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.460804] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.460815] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.515716] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.515777] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.515787] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.570909] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.570937] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.570948] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.627551] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.627578] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.627589] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.682647] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.682708] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.682719] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.737733] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.737756] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.737765] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.863053] em28xx #0 video_mux :Setting input index = 0, vmux = 0, amux = 0
[ 3015.865126] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: type =
V4L2_BUF_TYPE_VIDEO_CAPTURE
[ 3015.865149] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: requested 384x288
[ 3015.865160] em28xx #0 em28xx_set_fmt :VIDIOC_S_FMT: returned 384x288 (3584,
4096)
[ 3015.865168] em28xx #0 em28xx_set_fmt :VIDIOC_SET_FMT: interupting video
stream
[ 3016.249287] em28xx #0 em28xx_video_do_ioctl :VIDIOC_REQBUFS: setting io
method to mmap: num bufs 2
[ 3016.251243] em28xx #0 em28xx_do_ioctl :VIDIOC_STREAMON: starting stream
and after this the sound starts.
Regards,
Márton Németh
_______________________________________________
Em28xx mailing list
[email protected]
http://mcentral.de/mailman/listinfo/em28xx