em28xx-audio: HVR-900 B3C0 - ID 2040:6502 Hauppauge (audio clicking)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

After some diffing I've finally managed to get rid of "audio clicking"
problem which could be heard when using analog tv or composite input
of my HVR-900. Additionally, after Mauro's suggestion, I found it
necessary to change the audio amux value for composite input from 1 to
3.

Patch against linux-dvb hg repo attached. I hope it's trivial enough
to be applied quickly. I've been using my tuner for three days without
any sound issues so far.

Cheers,
W.

-- 
Talkers are no good doers.
http://greblus.net/djangoblog/
diff -ur v4l-dvb-old/linux/drivers/media/video/em28xx/em28xx-audio.c v4l-dvb-new/linux/drivers/media/video/em28xx/em28xx-audio.c
--- v4l-dvb-old/linux/drivers/media/video/em28xx/em28xx-audio.c	2008-09-21 21:26:04.000000000 +0200
+++ v4l-dvb-new/linux/drivers/media/video/em28xx/em28xx-audio.c	2008-09-21 21:26:24.000000000 +0200
@@ -127,10 +127,10 @@
 
 			if (oldptr + length >= runtime->buffer_size) {
 				unsigned int cnt =
-				    runtime->buffer_size - oldptr - 1;
+				    runtime->buffer_size - oldptr;
 				memcpy(runtime->dma_area + oldptr * stride, cp,
 				       cnt * stride);
-				memcpy(runtime->dma_area, cp + cnt,
+				memcpy(runtime->dma_area, cp + cnt * stride,
 				       length * stride - cnt * stride);
 			} else {
 				memcpy(runtime->dma_area + oldptr * stride, cp,
diff -ur v4l-dvb-old/linux/drivers/media/video/em28xx/em28xx-cards.c v4l-dvb-new/linux/drivers/media/video/em28xx/em28xx-cards.c
--- v4l-dvb-old/linux/drivers/media/video/em28xx/em28xx-cards.c	2008-09-21 21:26:04.000000000 +0200
+++ v4l-dvb-new/linux/drivers/media/video/em28xx/em28xx-cards.c	2008-09-21 21:26:31.000000000 +0200
@@ -578,7 +578,7 @@
 		}, {
 			.type     = EM28XX_VMUX_COMPOSITE1,
 			.vmux     = TVP5150_COMPOSITE1,
-			.amux     = 1,
+			.amux     = 3,
 		}, {
 			.type     = EM28XX_VMUX_SVIDEO,
 			.vmux     = TVP5150_SVIDEO,
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux