Commit db98fb8b authored by Wiktor Grebla's avatar Wiktor Grebla Committed by Mauro Carvalho Chehab

V4L/DVB (9103): em28xx: HVR-900 B3C0 - fix audio clicking issue

Fixed audio clicking problem which could be heard when using analog tv or composite input
Signed-off-by: default avatarWiktor Grebla <greblus@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent da3808e1
...@@ -117,10 +117,10 @@ static void em28xx_audio_isocirq(struct urb *urb) ...@@ -117,10 +117,10 @@ static void em28xx_audio_isocirq(struct urb *urb)
if (oldptr + length >= runtime->buffer_size) { if (oldptr + length >= runtime->buffer_size) {
unsigned int cnt = unsigned int cnt =
runtime->buffer_size - oldptr - 1; runtime->buffer_size - oldptr;
memcpy(runtime->dma_area + oldptr * stride, cp, memcpy(runtime->dma_area + oldptr * stride, cp,
cnt * stride); cnt * stride);
memcpy(runtime->dma_area, cp + cnt, memcpy(runtime->dma_area, cp + cnt * stride,
length * stride - cnt * stride); length * stride - cnt * stride);
} else { } else {
memcpy(runtime->dma_area + oldptr * stride, cp, memcpy(runtime->dma_area + oldptr * stride, cp,
......
...@@ -577,7 +577,7 @@ struct em28xx_board em28xx_boards[] = { ...@@ -577,7 +577,7 @@ struct em28xx_board em28xx_boards[] = {
}, { }, {
.type = EM28XX_VMUX_COMPOSITE1, .type = EM28XX_VMUX_COMPOSITE1,
.vmux = TVP5150_COMPOSITE1, .vmux = TVP5150_COMPOSITE1,
.amux = 1, .amux = 3,
}, { }, {
.type = EM28XX_VMUX_SVIDEO, .type = EM28XX_VMUX_SVIDEO,
.vmux = TVP5150_SVIDEO, .vmux = TVP5150_SVIDEO,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment