diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-irq.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-irq.c b/drivers/media/video/ivtv/ivtv-irq.c index b6a94a1ad19b..4ec3df58e247 100644 --- a/drivers/media/video/ivtv/ivtv-irq.c +++ b/drivers/media/video/ivtv/ivtv-irq.c | |||
@@ -750,8 +750,8 @@ static void ivtv_irq_vsync(struct ivtv *itv) | |||
750 | if (0) IVTV_DEBUG_IRQ("DEC VSYNC\n"); | 750 | if (0) IVTV_DEBUG_IRQ("DEC VSYNC\n"); |
751 | 751 | ||
752 | if (((frame ^ itv->yuv_info.sync_field[last_dma_frame]) == 0 && | 752 | if (((frame ^ itv->yuv_info.sync_field[last_dma_frame]) == 0 && |
753 | ((itv->lastVsyncFrame & 1) ^ itv->yuv_info.sync_field[last_dma_frame])) || | 753 | ((itv->last_vsync_frame & 1) ^ itv->yuv_info.sync_field[last_dma_frame])) || |
754 | (frame != (itv->lastVsyncFrame & 1) && !itv->yuv_info.frame_interlaced)) { | 754 | (frame != (itv->last_vsync_frame & 1) && !itv->yuv_info.frame_interlaced)) { |
755 | int next_dma_frame = last_dma_frame; | 755 | int next_dma_frame = last_dma_frame; |
756 | 756 | ||
757 | if (!(itv->yuv_info.frame_interlaced && itv->yuv_info.field_delay[next_dma_frame] && itv->yuv_info.fields_lapsed < 1)) { | 757 | if (!(itv->yuv_info.frame_interlaced && itv->yuv_info.field_delay[next_dma_frame] && itv->yuv_info.fields_lapsed < 1)) { |
@@ -766,10 +766,10 @@ static void ivtv_irq_vsync(struct ivtv *itv) | |||
766 | } | 766 | } |
767 | } | 767 | } |
768 | } | 768 | } |
769 | if (frame != (itv->lastVsyncFrame & 1)) { | 769 | if (frame != (itv->last_vsync_frame & 1)) { |
770 | struct ivtv_stream *s = ivtv_get_output_stream(itv); | 770 | struct ivtv_stream *s = ivtv_get_output_stream(itv); |
771 | 771 | ||
772 | itv->lastVsyncFrame += 1; | 772 | itv->last_vsync_frame += 1; |
773 | if (frame == 0) { | 773 | if (frame == 0) { |
774 | clear_bit(IVTV_F_I_VALID_DEC_TIMINGS, &itv->i_flags); | 774 | clear_bit(IVTV_F_I_VALID_DEC_TIMINGS, &itv->i_flags); |
775 | clear_bit(IVTV_F_I_EV_VSYNC_FIELD, &itv->i_flags); | 775 | clear_bit(IVTV_F_I_EV_VSYNC_FIELD, &itv->i_flags); |
@@ -834,7 +834,7 @@ irqreturn_t ivtv_irq_handler(int irq, void *dev_id) | |||
834 | */ | 834 | */ |
835 | if (~itv->irqmask & IVTV_IRQ_DEC_VSYNC) { | 835 | if (~itv->irqmask & IVTV_IRQ_DEC_VSYNC) { |
836 | /* vsync is enabled, see if we're in a new field */ | 836 | /* vsync is enabled, see if we're in a new field */ |
837 | if ((itv->lastVsyncFrame & 1) != (read_reg(0x28c0) & 1)) { | 837 | if ((itv->last_vsync_frame & 1) != (read_reg(0x28c0) & 1)) { |
838 | /* New field, looks like we missed it */ | 838 | /* New field, looks like we missed it */ |
839 | IVTV_DEBUG_YUV("VSync interrupt missed %d\n",read_reg(0x28c0)>>16); | 839 | IVTV_DEBUG_YUV("VSync interrupt missed %d\n",read_reg(0x28c0)>>16); |
840 | vsync_force = 1; | 840 | vsync_force = 1; |
@@ -888,7 +888,7 @@ irqreturn_t ivtv_irq_handler(int irq, void *dev_id) | |||
888 | if (combo & IVTV_IRQ_ENC_EOS) { | 888 | if (combo & IVTV_IRQ_ENC_EOS) { |
889 | IVTV_DEBUG_IRQ("ENC EOS\n"); | 889 | IVTV_DEBUG_IRQ("ENC EOS\n"); |
890 | set_bit(IVTV_F_I_EOS, &itv->i_flags); | 890 | set_bit(IVTV_F_I_EOS, &itv->i_flags); |
891 | wake_up(&itv->cap_w); | 891 | wake_up(&itv->eos_waitq); |
892 | } | 892 | } |
893 | 893 | ||
894 | if (combo & IVTV_IRQ_DEC_DATA_REQ) { | 894 | if (combo & IVTV_IRQ_DEC_DATA_REQ) { |