Revert "media: bttv: add back vbi hack"

This reverts commit ab8869dd23.
This commit is contained in:
CrazyCat
2024-07-30 18:59:46 +03:00
parent be672b3cd3
commit ac24c93aa4

View File

@@ -2772,27 +2772,6 @@ bttv_irq_wakeup_vbi(struct bttv *btv, struct bttv_buffer *wakeup,
return;
wakeup->vbuf.vb2_buf.timestamp = ktime_get_ns();
wakeup->vbuf.sequence = btv->field_count >> 1;
/*
* Ugly hack for backwards compatibility.
* Some applications expect that the last 4 bytes of
* the VBI data contains the sequence number.
*
* This makes it possible to associate the VBI data
* with the video frame if you use read() to get the
* VBI data.
*/
if (vb2_fileio_is_active(wakeup->vbuf.vb2_buf.vb2_queue)) {
u32 *vaddr = vb2_plane_vaddr(&wakeup->vbuf.vb2_buf, 0);
unsigned long size =
vb2_get_plane_payload(&wakeup->vbuf.vb2_buf, 0) / 4;
if (vaddr && size) {
vaddr += size - 1;
*vaddr = wakeup->vbuf.sequence;
}
}
vb2_buffer_done(&wakeup->vbuf.vb2_buf, state);
if (btv->field_count == 0)
btor(BT848_INT_VSYNC, BT848_INT_MASK);