Archived talk:Em2820

From LinuxTVWiki
Revision as of 05:18, 6 December 2005 by MarkusRechberger (talk | contribs) (→‎PCTV USB2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Does anyone have an idea getting the sound of pinnacle usb2 working? the image quality is surpringly brilliant, but... my system: suse 10.0, v4l-kernel from cvs (updatet some two days ago...). soundcard:82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller, driver: snd-intel8x0. Input:PAL I tryed all the things:

                        -activating everything in kmix (also for the pctv usb2-device)
                        -switched the kde sound-system to alsa
                        -using different players: kdetv, Xawtv, tvtime

1. v4lctl -c /dev/video0 list gives me: "Mute: on" - is that the problem? I could not change this typing v4lctl -c /dev/video0 mute=off. 2. do I have to run some special things in background? 3. I couldn't update dvb-kernel from cvs - is this perhaps causing problem?


please read the Em2820 Wiki documentation, you have to use sox (or something similar) for piping the audio stream from the usb pctv device to your soundcard. -- MarkusRechberger

I've the same problem with SECAM (after some modification on the driver) with mute=on and I'm very sorry but Iwill hope a little bit more explanation to use sox if it's possible

help on starting

Hi!

I have a Pinnacle PCTV USB2 and I'd like to try it out on Linux.

I read the wiki about this device been supported and I need some help on installing it.

Where can I download the package?

After download the package, do I need just to compile it or it is a patch to be applied on my kernel source or v4l source?


Thanks for the help,

Renato


just get the v4l-kernel from cvs and compile it:

$ cvs -d :pserver:anonymous@cvs.linuxtv.org:/cvs/video4linux login
$ cvs -d :pserver:anonymous@cvs.linuxtv.org:/cvs/video4linux co -P v4l-kernel
$ cd v4l-kernel
$ cd v4l
$ make
...
...
$ make install
$ modprobe em28xx

you will also need the kernel headers for doing all that

MarkusRechberger

ioctl VIDIOCGAUDIO: Invalid argument

Hi,

I have a msi vox usb 2.0 tv tuner, i downloaded v4l from cvs and the compiler worked fine. When i modprobe em28xx my usb tv card its recognized and seted up. But when i run xawtv, aatv, tvtime, or whatever ... i get ioctl VIDIOCGAUDIO: Invalid argument and i cant see anything. My running kernel is 2.6.14-1, debian sarge distro.

v4l-info show the same thing, ioctl VIDIOCGAUDIO: Invalid argument and in the other line i get: ioctl VIDIOCGFBUF: Invalid argument

If anybody know what else can i do, i would appreciate it ...

cheers, Nitam.


Hi Nitam,

The MSI Vox isn't completly supported at the moment, I'll try to fix it during the next few days (only problem is I don't have that device and because of that I have to wait for others to test it)


Well, i can help you with that if you want, let me know if you need my email/msn/icq or whatever and i'll test your fix/updates.

regards, Nitam.

ps: email eskali@gmail.com

Can't tune any channel

First I'd like to thank you for allowing us to use our USB capture device on Linux.

I've downloaded the latest CVS of video4linux following the instructions you gave me.

My device is a Pinnacle PCTV USB2.

I'm having problems when I try to use the tuner, I just can't find any channel.

If I try:


mplayer -tv device=/dev/video0:amode=0:input=0:norm=3:driver=v4l2:outfmt=yuy2:channels=16-16,24-24,51-51 tv://


I got only static from the three channels above (note that if I try the same channels on Windows they tune ok). Looking at the output from mplayer I see this:


Couldn't find frequency for channel 16 (16) Selected channel: 16 - 16 (freq: 0.000)


So I figure out that it was because of the frequency. I tried a lot of params like freq=483250 (frequency from channel 16 reported by Pinnacle Windows app) but still didn't work.

Anyone have any ideia where is the problem?

By the way, I'm in Brazil... here we use PAL-M and I'm trying to tune from antenna, not cable.

PS: I have tried others apps like xawtv, kdetv, zapping, etc... and the same happens with them.


Thanks a lot!!

Renato


Hi Renato,

could you try:

mplayer -tv device=/dev/video0:amode=0:input=0:norm=PAL:driver=v4l2:outfmt=yuy2 tv://

norm=PAL or NTSC

use H or K/L for tuning the channels

Markus


Markus,

Thanks again for helping.

I tried the command you gave me (PAL and NTSC) but I couldn't tune any channel.


On my Windows app, I have an option to select if the source from tuner is from Cable or Antenna. To be allowed to tune the channels on Windows I have to select "Antenna". If I select Cable I have the same problem that I'm having on Linux. Do you think the problem could be this?

I have tried some parameters for the module tuner but still no lucky, I'm trying:

modprobe tuner pal=1 tv_antenna=1


Thanks again!



mplayer -tv device=/dev/video0:amode=0:input=0:norm=PAL:driver=v4l2:outfmt=yuy2 tv://

also try different input values,

please provide what dmesg and lsmod shows up after plugging in the device

you normally don't have to touch any tuner settings.

Markus


Markus,

This is the output from dmesg after pluging the card:

usb 1-3: new high speed USB device using ehci_hcd and address 2
usbcore: registered new driver snd-usb-audio
Linux video capture interface: v1.00
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (2304:0208): interface 0, class 255
em28xx: Alternate settings: 8
em28xx: Alternate setting 0, max size= 0
em28xx: Alternate setting 1, max size= 1024
em28xx: Alternate setting 2, max size= 1448
em28xx: Alternate setting 3, max size= 2048
em28xx: Alternate setting 4, max size= 2304
em28xx: Alternate setting 5, max size= 2580
em28xx: Alternate setting 6, max size= 2892
em28xx: Alternate setting 7, max size= 3072
saa711x: Ignoring new-style parameters in presence of obsolete ones
tuner 2-0063: chip found @ 0xc6 (em28xx #0)
tuner 2-0063: type set to 37 (LG PAL (newer TAPC series))
tda9887 2-0043: chip found @ 0x86 (em28xx #0)
em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 08 02 10 00 1c 03 98 20 6a 2e
em28xx #0: i2c eeprom 10: 00 00 06 57 6e 00 00 00 8e 00 00 00 07 00 00 00
em28xx #0: i2c eeprom 20: 16 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 01 01 00 00 00 00 00 00
em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00
em28xx #0: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00
em28xx #0: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00
em28xx #0: i2c eeprom 90: 6d 00 62 00 48 00 00 00 20 03 50 00 43 00 54 00
em28xx #0: i2c eeprom a0: 56 00 20 00 55 00 53 00 42 00 32 00 20 00 4e 00
em28xx #0: i2c eeprom b0: 54 00 53 00 43 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 0c 22 17 39 02 a5 84 d9
EEPROM ID= 0x9567eb1a
Vendor/Product ID= 2304:0208
AC97 audio (5 sample rates)
500mA max power
Table at 0x06, strings=0x2098, 0x2e6a, 0x0000
em28xx #0: V4L2 device registered as /dev/video0
em28xx #0: Found Pinnacle PCTV USB 2
usbcore: registered new driver em28xx

This is my lsmod:

Module                  Size  Used by
tda9887                14160  0
tuner                  42596  0
saa711x                 6416  0
em28xx                 46244  0
compat_ioctl32           896  1 em28xx
v4l1_compat            13508  1 em28xx
v4l2_common             4608  1 em28xx
videodev                7360  1 em28xx
ir_common               7940  1 em28xx
tveeprom               12752  1 em28xx
snd_usb_audio          74368  0
snd_usb_lib            14464  1 snd_usb_audio
snd_hwdep               7072  1 snd_usb_audio
snd_pcm_oss            49568  0
snd_mixer_oss          17280  3 snd_pcm_oss
uhci_hcd               30672  0
snd_intel8x0m          15428  1
snd_intel8x0           30368  2
snd_ac97_codec         92924  2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus            1856  1 snd_ac97_codec
snd_pcm                83272  5 snd_usb_audio,snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_page_alloc          8392  3 snd_intel8x0m,snd_intel8x0,snd_pcm
i2c_nforce2             5824  0
i2c_core               17808  6 tda9887,tuner,saa711x,em28xx,tveeprom,i2c_nforce2
kqemu                  39240  0
cdemu                   8524  0
nvidia               3705928  14

Thanks again!

Renato


Hello,

I am from Italy.

I have a "Pinnacle PCTV USB2 PAL Rev: 1.2" and I have the same problem of Renato (just (27 NOV 2005 12:40) downloaded the source from cvs and compiled/installed the driver). I noticed that the only channels I can tune are: 11 12 66 68 69 88 (tvtime)

In the stationlist.xml of tvtime I found this:

position="11" band="VHF E2-E12" channel="E11"
position="12" band="VHF E2-E12" channel="E12"
position="66" band="VHF Russia" channel="R9"
position="68" band="VHF Russia" channel="R11"
position="69" band="VHF Russia" channel="R12"
position="88" band="VHF Italy" channel="G"

It seems that I can't tune UHF band channels.

Hope this info can help.

Lorenzo Ferrara

PCTV USB2

Hey guys, I'm totally new to these Wiki things, and Linux itself. I have managed to install the driver and get my PCTV USB2 device working pretty nicely on a program called "tvtime". However, there is no audio. I was reading the main page and was confused as to if it works or not. I checked out the usb audio section, and did this bit:

$ amixer -c 1 Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 4 [25%] [on]

$ amixer -c 1 sset PCM 5 Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 5 [31%] [on]

Except, my card had different information, obviously. So I was wondering if there is a way to make the audio work via usb.

Any help would be much appreciated. (Im using Ubuntu and tv time by the way)


NO SOUND----

I'm using PClinuxOS and TVtime (the only one tv wiever working for me with SECAM mode Tuner=38 in place of 37).Tv picture is very fine but no sound. The mixer is correct:

  1. amixer -c 0

Simple mixer control 'Master',0

 Capabilities: pvolume pswitch pswitch-joined
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Front Left: Playback 31 [100%] [on]
 Front Right: Playback 31 [100%] [on]

.............and so

  1. amixer -c 1

Simple mixer control 'PCM',0

 Capabilities: cvolume cswitch cswitch-joined
 Capture channels: Mono
 Limits: Capture 0 - 16
 Mono: Capture 16 [100%] [on]

Is a mute problem in PCTV USB2 ?

Many thanks for help


can you provide some more information:

cat /proc/asound/cards

you also need to pipe the audio stream from the USB Audio device to your soundcard. sox is explained on the em2820 wiki site, but you can also try a cat /dev/dspx > /dev/dspy where you have to replace dspx with the usbaudio device and dspy is the soundcard dsp device

hope this helps,

Markus

Tune UHF channels

Hi!

It's me again :)

I think Lorenzo found my problem. I've completely forgot that here in Brazil all open-channels are UHF (at least in my city) so I think that's why I can't tune channels.

Is UHF supported? If not, are there some plans to implement it?

Thanks a lot and sorry for disturbing you.. but I'm just getting crazy to watch TV on my linux box.


Thanks again!

Renato