• I
    V4L/DVB (6712): ivtv: ivtv yuv stream handling change · c240ad00
    Ian Armstrong 提交于
    Currently the yuv output stream buffer is divided into blocks whose size
    depend on the broadcast standard selected during the driver init phase.
    However, the standard can be changed after the init phase. This effectively
    breaks the yuv output stream handler, since it relies on the different yuv
    planes being block aligned.
    
    This patch changes the setup, so that the block size is always the same. The
    decoder dma function has been modified to cope with the fact that the second
    yuv plane may no longer be block aligned. The start of the yuv frame must
    still be at the beginning of a block, so the stream write function has also
    been modified to ensure this is always true.
    
    Also, the stream write function will now initiate a yuv dma transfer as soon
    as a full frame is ready. It will not wait until the current write request
    has completed, or the stream buffer becomes full.
    Signed-off-by: NIan Armstrong <ian@iarmst.demon.co.uk>
    Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
    c240ad00
ivtv-driver.h 27.6 KB