Another patch from Ian to fix more YUV issues. Comments from Ian are :-
The algorithm for both horizontal & vertical scaling is now correct. The values calculated now match the firmware. This cleans up the scaling, for some size combination would produce rogue horizontal / vertical bands. The vertical chroma alignment error appears to have gone. I believe this was caused by the algorithm originally used. An off-by-one error did remain, but it was consistent & easy to check for so I've added code to correct this. Reg2964 is now correctly calculated & set. Replaced instances of ivtv_write_reg with writel & everything still seems to work okay.
ivtv-0.3.7i.patch.bz2
Description: Binary data