{"action":"created","issue":{"url":"https://api.github.com/repos/Manouchehri/smi2021/issues/17","labels_url":"https://api.github.com/repos/Manouchehri/smi2021/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Manouchehri/smi2021/issues/17/comments","events_url":"https://api.github.com/repos/Manouchehri/smi2021/issues/17/events","html_url":"https://github.com/Manouchehri/smi2021/issues/17","id":102701468,"number":17,"title":"Grayscale video with lots of artifacts (and buffer error)","user":{"login":"rogg","id":1810024,"avatar_url":"https://avatars.githubusercontent.com/u/1810024?v=3","gravatar_id":"","url":"https://api.github.com/users/rogg","html_url":"https://github.com/rogg","followers_url":"https://api.github.com/users/rogg/followers","following_url":"https://api.github.com/users/rogg/following{/other_user}","gists_url":"https://api.github.com/users/rogg/gists{/gist_id}","starred_url":"https://api.github.com/users/rogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogg/subscriptions","organizations_url":"https://api.github.com/users/rogg/orgs","repos_url":"https://api.github.com/users/rogg/repos","events_url":"https://api.github.com/users/rogg/events{/privacy}","received_events_url":"https://api.github.com/users/rogg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-24T04:10:43Z","updated_at":"2015-09-21T16:55:56Z","closed_at":"2015-08-25T13:12:15Z","body":"I'm using a single channel easycap with NTSC source.\r\n```\r\nlsusb\r\nBus 002 Device 009: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE]\r\n```\r\nUsing the smi2021 kernel module I get sound but video is in grayscale and has a lot of artifacts. I've tried mplayer, vlc and ffplay, all the same result. \r\n\r\n![vlcsnap-2015-08-23-21h07m23s536](https://cloud.githubusercontent.com/assets/1810024/9432664/553dd0cc-49db-11e5-9f69-ddf5f53890b3.jpg)\r\n\r\n\r\nIn dmesg I get this:\r\n```\r\nkernel: smi2021 2-1.3:1.0:  Failed copy to user buff: len_copy=604, line=68, odd=1, buf->pos=446400, new buf->pos=447004\r\nkernel: smi2021 2-1.3:1.0:  Failed copy to user buff: len_copy=836, line=68, odd=1, buf->pos=447004, new buf->pos=447840\r\nkernel: smi2021 2-1.3:1.0:  Failed copy to user buff: len_copy=176, line=69, odd=1, buf->pos=447840, new buf->pos=448016\r\nkernel: smi2021 2-1.3:1.0:  Failed copy to user buff: len_copy=1020, line=69, odd=1, buf->pos=448016, new buf->pos=449036\r\nkernel: smi2021 2-1.3:1.0:  Failed copy to user buff: len_copy=244, line=69, odd=1, buf->pos=449036, new buf->pos=449280\r\n```\r\n\r\nI can get a good picture using easycap-somagic-linux with\r\n`sudo somagic-capture -n | ffplay -f rawvideo -pixel_format uyvy422 -video_size 720x480 -framerate 30000/1001 -vf yadif,scale=720x540 -i -`"},"comment":{"url":"https://api.github.com/repos/Manouchehri/smi2021/issues/comments/142041968","html_url":"https://github.com/Manouchehri/smi2021/issues/17#issuecomment-142041968","issue_url":"https://api.github.com/repos/Manouchehri/smi2021/issues/17","id":142041968,"user":{"login":"ratmole","id":4613534,"avatar_url":"https://avatars.githubusercontent.com/u/4613534?v=3","gravatar_id":"","url":"https://api.github.com/users/ratmole","html_url":"https://github.com/ratmole","followers_url":"https://api.github.com/users/ratmole/followers","following_url":"https://api.github.com/users/ratmole/following{/other_user}","gists_url":"https://api.github.com/users/ratmole/gists{/gist_id}","starred_url":"https://api.github.com/users/ratmole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratmole/subscriptions","organizations_url":"https://api.github.com/users/ratmole/orgs","repos_url":"https://api.github.com/users/ratmole/repos","events_url":"https://api.github.com/users/ratmole/events{/privacy}","received_events_url":"https://api.github.com/users/ratmole/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:55:56Z","updated_at":"2015-09-21T16:55:56Z","body":"first is the em28xx init and then the somagic:\r\n\r\n`dmesg | grep -E 'smi2021|saa7115'\r\n[229746.308314] saa7115 1-0025: saa7113 found @ 0x4a (em28xx #0)\r\n[229746.308341] saa7115 1-0025: writing init values\r\n[229746.536710] saa7115 1-0025: tried to access reserved reg 0x14\r\n[229746.572064] saa7115 1-0025: tried to access reserved reg 0x81\r\n[229746.572069] saa7115 1-0025: tried to access reserved reg 0x83\r\n[229746.572071] saa7115 1-0025: tried to access reserved reg 0x84\r\n[229746.572073] saa7115 1-0025: tried to access reserved reg 0x85\r\n[229746.572074] saa7115 1-0025: tried to access reserved reg 0x86\r\n[229746.572076] saa7115 1-0025: tried to access reserved reg 0x87\r\n[229746.572078] saa7115 1-0025: tried to access reserved reg 0xa0\r\n[229746.572079] saa7115 1-0025: tried to access reserved reg 0xa1\r\n[229746.572081] saa7115 1-0025: tried to access reserved reg 0xa2\r\n[229746.572083] saa7115 1-0025: tried to access reserved reg 0xa4\r\n[229746.572085] saa7115 1-0025: tried to access reserved reg 0xa5\r\n[229746.572087] saa7115 1-0025: tried to access reserved reg 0xa6\r\n[229746.572088] saa7115 1-0025: tried to access reserved reg 0xa8\r\n[229746.572090] saa7115 1-0025: tried to access reserved reg 0xa9\r\n[229746.572092] saa7115 1-0025: tried to access reserved reg 0xaa\r\n[229746.572094] saa7115 1-0025: tried to access reserved reg 0xac\r\n[229746.572095] saa7115 1-0025: tried to access reserved reg 0xad\r\n[229746.572097] saa7115 1-0025: tried to access reserved reg 0xae\r\n[229746.572099] saa7115 1-0025: tried to access reserved reg 0xb0\r\n[229746.572100] saa7115 1-0025: tried to access reserved reg 0xb1\r\n[229746.572102] saa7115 1-0025: tried to access reserved reg 0xb2\r\n[229746.572104] saa7115 1-0025: tried to access reserved reg 0xb3\r\n[229746.572105] saa7115 1-0025: tried to access reserved reg 0xb4\r\n[229746.572107] saa7115 1-0025: tried to access reserved reg 0xb8\r\n[229746.572109] saa7115 1-0025: tried to access reserved reg 0xb9\r\n[229746.572110] saa7115 1-0025: tried to access reserved reg 0xba\r\n[229746.572112] saa7115 1-0025: tried to access reserved reg 0xbb\r\n[229746.572114] saa7115 1-0025: tried to access reserved reg 0xbc\r\n[229746.572115] saa7115 1-0025: tried to access reserved reg 0xbd\r\n[229746.572117] saa7115 1-0025: tried to access reserved reg 0xbe\r\n[229746.572119] saa7115 1-0025: tried to access reserved reg 0xbf\r\n[229746.572120] saa7115 1-0025: tried to access reserved reg 0xd0\r\n[229746.572122] saa7115 1-0025: tried to access reserved reg 0xd1\r\n[229746.572124] saa7115 1-0025: tried to access reserved reg 0xd2\r\n[229746.572126] saa7115 1-0025: tried to access reserved reg 0xd4\r\n[229746.572127] saa7115 1-0025: tried to access reserved reg 0xd5\r\n[229746.572129] saa7115 1-0025: tried to access reserved reg 0xd6\r\n[229746.572131] saa7115 1-0025: tried to access reserved reg 0xd8\r\n[229746.572132] saa7115 1-0025: tried to access reserved reg 0xd9\r\n[229746.572134] saa7115 1-0025: tried to access reserved reg 0xda\r\n[229746.572136] saa7115 1-0025: tried to access reserved reg 0xdc\r\n[229746.572138] saa7115 1-0025: tried to access reserved reg 0xdd\r\n[229746.572139] saa7115 1-0025: tried to access reserved reg 0xde\r\n[229746.572141] saa7115 1-0025: tried to access reserved reg 0xe0\r\n[229746.572143] saa7115 1-0025: tried to access reserved reg 0xe1\r\n[229746.572144] saa7115 1-0025: tried to access reserved reg 0xe2\r\n[229746.572146] saa7115 1-0025: tried to access reserved reg 0xe3\r\n[229746.572148] saa7115 1-0025: tried to access reserved reg 0xe4\r\n[229746.572149] saa7115 1-0025: tried to access reserved reg 0xe8\r\n[229746.572151] saa7115 1-0025: tried to access reserved reg 0xe9\r\n[229746.572153] saa7115 1-0025: tried to access reserved reg 0xea\r\n[229746.572154] saa7115 1-0025: tried to access reserved reg 0xeb\r\n[229746.572156] saa7115 1-0025: tried to access reserved reg 0xec\r\n[229746.572158] saa7115 1-0025: tried to access reserved reg 0xed\r\n[229746.572159] saa7115 1-0025: tried to access reserved reg 0xee\r\n[229746.572161] saa7115 1-0025: tried to access reserved reg 0xef\r\n[229746.572163] saa7115 1-0025: tried to access reserved reg 0xf2\r\n[229746.572164] saa7115 1-0025: tried to access reserved reg 0xf3\r\n[229746.572166] saa7115 1-0025: tried to access reserved reg 0xf4\r\n[229746.572168] saa7115 1-0025: tried to access reserved reg 0xf7\r\n[229746.572169] saa7115 1-0025: tried to access reserved reg 0xf8\r\n[229746.572171] saa7115 1-0025: tried to access reserved reg 0xf9\r\n[229746.572173] saa7115 1-0025: tried to access reserved reg 0xfa\r\n[229746.572175] saa7115 1-0025: tried to access reserved reg 0xfb\r\n[229746.572176] saa7115 1-0025: tried to access reserved reg 0xff\r\n[229746.896670] saa7115 1-0025: tried to access reserved reg 0x5d\r\n[229746.920665] saa7115 1-0025: tried to access reserved reg 0x80\r\n[229746.920672] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229746.920675] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229746.920680] saa7115 1-0025: decoder set standard 60 Hz\r\n[229746.920683] saa7115 1-0025: tried to access reserved reg 0x80\r\n[229746.920686] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229746.992658] saa7115 1-0025: tried to access reserved reg 0x90\r\n[229746.992667] saa7115 1-0025: tried to access reserved reg 0x91\r\n[229746.992671] saa7115 1-0025: tried to access reserved reg 0x92\r\n[229746.992674] saa7115 1-0025: tried to access reserved reg 0x93\r\n[229746.992678] saa7115 1-0025: tried to access reserved reg 0x94\r\n[229746.992681] saa7115 1-0025: tried to access reserved reg 0x95\r\n[229746.992684] saa7115 1-0025: tried to access reserved reg 0x96\r\n[229746.992687] saa7115 1-0025: tried to access reserved reg 0x97\r\n[229746.992690] saa7115 1-0025: tried to access reserved reg 0x98\r\n[229746.992693] saa7115 1-0025: tried to access reserved reg 0x99\r\n[229746.992696] saa7115 1-0025: tried to access reserved reg 0x9a\r\n[229746.992700] saa7115 1-0025: tried to access reserved reg 0x9b\r\n[229746.992703] saa7115 1-0025: tried to access reserved reg 0x9c\r\n[229746.992706] saa7115 1-0025: tried to access reserved reg 0x9d\r\n[229746.992709] saa7115 1-0025: tried to access reserved reg 0x9e\r\n[229746.992712] saa7115 1-0025: tried to access reserved reg 0x9f\r\n[229746.992715] saa7115 1-0025: tried to access reserved reg 0xc0\r\n[229746.992718] saa7115 1-0025: tried to access reserved reg 0xc1\r\n[229746.992722] saa7115 1-0025: tried to access reserved reg 0xc2\r\n[229746.992725] saa7115 1-0025: tried to access reserved reg 0xc3\r\n[229746.992728] saa7115 1-0025: tried to access reserved reg 0xc4\r\n[229746.992731] saa7115 1-0025: tried to access reserved reg 0xc5\r\n[229746.992734] saa7115 1-0025: tried to access reserved reg 0xc6\r\n[229746.992737] saa7115 1-0025: tried to access reserved reg 0xc7\r\n[229746.992741] saa7115 1-0025: tried to access reserved reg 0xc8\r\n[229746.992744] saa7115 1-0025: tried to access reserved reg 0xc9\r\n[229746.992747] saa7115 1-0025: tried to access reserved reg 0xca\r\n[229746.992750] saa7115 1-0025: tried to access reserved reg 0xcb\r\n[229746.992753] saa7115 1-0025: tried to access reserved reg 0xcc\r\n[229746.992756] saa7115 1-0025: tried to access reserved reg 0xcd\r\n[229746.992759] saa7115 1-0025: tried to access reserved reg 0xf0\r\n[229746.992762] saa7115 1-0025: tried to access reserved reg 0xf1\r\n[229746.992766] saa7115 1-0025: tried to access reserved reg 0xf5\r\n[229746.992769] saa7115 1-0025: tried to access reserved reg 0xf6\r\n[229746.992773] saa7115 1-0025: decoder set size to 720x480\r\n[229747.136771] saa7115 1-0025: status: (1E) 0x00, (1F) 0xc8\r\n[229747.136822] saa7115 1-0025: decoder RESET\r\n[229747.136827] saa7115 1-0025: tried to access reserved reg 0x87\r\n[229747.136830] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229747.136834] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229747.136837] saa7115 1-0025: tried to access reserved reg 0x87\r\n[229747.136842] saa7115 1-0025: decoder set input 0 output 0\r\n[229747.136846] saa7115 1-0025: now setting Composite input iport off output\r\n[229747.220135] saa7115 1-0025: disable output\r\n[229747.220147] saa7115 1-0025: decoder set standard 50 Hz\r\n[229747.220151] saa7115 1-0025: tried to access reserved reg 0x80\r\n[229747.220154] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229747.300634] saa7115 1-0025: tried to access reserved reg 0x90\r\n[229747.300643] saa7115 1-0025: tried to access reserved reg 0x91\r\n[229747.300647] saa7115 1-0025: tried to access reserved reg 0x92\r\n[229747.300650] saa7115 1-0025: tried to access reserved reg 0x93\r\n[229747.300654] saa7115 1-0025: tried to access reserved reg 0x94\r\n[229747.300657] saa7115 1-0025: tried to access reserved reg 0x95\r\n[229747.300660] saa7115 1-0025: tried to access reserved reg 0x96\r\n[229747.300663] saa7115 1-0025: tried to access reserved reg 0x97\r\n[229747.300666] saa7115 1-0025: tried to access reserved reg 0x98\r\n[229747.300669] saa7115 1-0025: tried to access reserved reg 0x99\r\n[229747.300672] saa7115 1-0025: tried to access reserved reg 0x9a\r\n[229747.300676] saa7115 1-0025: tried to access reserved reg 0x9b\r\n[229747.300679] saa7115 1-0025: tried to access reserved reg 0x9c\r\n[229747.300682] saa7115 1-0025: tried to access reserved reg 0x9d\r\n[229747.300685] saa7115 1-0025: tried to access reserved reg 0x9e\r\n[229747.300688] saa7115 1-0025: tried to access reserved reg 0x9f\r\n[229747.300691] saa7115 1-0025: tried to access reserved reg 0xc0\r\n[229747.300695] saa7115 1-0025: tried to access reserved reg 0xc1\r\n[229747.300698] saa7115 1-0025: tried to access reserved reg 0xc2\r\n[229747.300701] saa7115 1-0025: tried to access reserved reg 0xc3\r\n[229747.300704] saa7115 1-0025: tried to access reserved reg 0xc4\r\n[229747.300707] saa7115 1-0025: tried to access reserved reg 0xc5\r\n[229747.300710] saa7115 1-0025: tried to access reserved reg 0xc6\r\n[229747.300714] saa7115 1-0025: tried to access reserved reg 0xc7\r\n[229747.300717] saa7115 1-0025: tried to access reserved reg 0xc8\r\n[229747.300720] saa7115 1-0025: tried to access reserved reg 0xc9\r\n[229747.300723] saa7115 1-0025: tried to access reserved reg 0xca\r\n[229747.300726] saa7115 1-0025: tried to access reserved reg 0xcb\r\n[229747.300729] saa7115 1-0025: tried to access reserved reg 0xcc\r\n[229747.300733] saa7115 1-0025: tried to access reserved reg 0xcd\r\n[229747.300736] saa7115 1-0025: tried to access reserved reg 0xf0\r\n[229747.300739] saa7115 1-0025: tried to access reserved reg 0xf1\r\n[229747.300742] saa7115 1-0025: tried to access reserved reg 0xf5\r\n[229747.300745] saa7115 1-0025: tried to access reserved reg 0xf6\r\n[229747.300749] saa7115 1-0025: decoder set size to 720x576\r\n[229747.492073] saa7115 1-0025: decoder set input 0 output 0\r\n[229747.896027] saa7115 1-0025: decoder RESET\r\n[229747.896034] saa7115 1-0025: tried to access reserved reg 0x87\r\n[229747.896036] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229747.896038] saa7115 1-0025: tried to access reserved reg 0x88\r\n[229747.896040] saa7115 1-0025: tried to access reserved reg 0x87\r\n[229747.896042] saa7115 1-0025: decoder set input 0 output 0\r\n[229747.896044] saa7115 1-0025: disable output\r\n[229786.833547] usb 1-6: Looking for: smi2021_3f.bin\r\n[229786.844558] usb 1-6: firmware: direct-loading firmware smi2021_3f.bin\r\n[229787.265702] smi2021 1-6:1.0: Chip FORCED detection as gm7113\r\n[229787.265715] smi2021 1-6:1.0:  You chip is: gm7113 \r\n[229787.308416] saa7115 2-004a: It seems to be a gm7113c chip (10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10) @ 0x94.\r\n[229787.308431] saa7115 2-004a: gm7113c found @ 0x94 (smi2021)\r\n[229787.308451] saa7115 2-004a: writing init values\r\n[229787.315653] saa7115 2-004a: tried to access reserved reg 0x14\r\n[229787.320656] saa7115 2-004a: decoder set standard 60 Hz\r\n[229787.321902] saa7115 2-004a: decoder set size to 720x480\r\n[229787.326776] saa7115 2-004a: status: (1E) 0x00, (1F) 0x28\r\n[229787.326808] saa7115 2-004a: decoder set input 0 output 0\r\n[229787.326812] saa7115 2-004a: now setting Composite input iport off output\r\n[229787.329850] smi2021 1-6:1.0: driver version 0.1-658cfd2, V4L2 device registered as video1`"}}