Hi Hans, I don't have PVR-550, but I tried this patch anyway, trying to see if it solved a aound problem I have with my 500mce - this patch had adverse effect on my card though.
Normally I run with this option: post-install ivtv /usr/local/bin/ivtvctl -d /dev/v4l/video0 -q 1 && /usr/local/bin/ivtvctl -d /dev/v4l/video1 -q 1 ...because the audio input 0 doesn't work on video0 and has no stereo on video1. Actually video0 reports all Mono, video1 reports stereo - I tested the tuners on the same channel. Anyway, I've attached some files describing the differences with and without the patch, with some debug output from the cx25840 module. To summarize it a bit: My general problem is as following (tested with the same channel): video0, input 0 --> no sound, "mono" video0, input 1 --> sound, "mono" video1, input 0 --> sound, "Stereo" (but I can't hear the stereo) video1, input 1 --> sound, "Stereo" (detecting NICAM, and I can hear it) Notice, that when I apply the patch, I loose sound on video1, input 0 and loose stereo on input 1 video0, input 0 --> no sound, "mono" video0, input 1 --> sound, "mono" video1, input 0 --> no sound, "Stereo" (but I can't hear the stereo) video1, input 1 --> sound, "Stereo" (but I can't hear the stereo) /Michael Hans Verkuil wrote: >If you have a diamondmm PVR-550, then can you please test the attached patch. >It solves a problem with missing sound when using the tuner. However, I am >not sure if this patch might break the sound for others who now have good >sound. Please let me know if it succeeds or not! > >Without feedback during the next week I'll just put the patch in and hope >for the best. > >Regards, > > Hans > > >------------------------------------------------------------------------ > >--- cx25840-driver.c.org 2005-08-21 22:25:11.000000000 +0200 >+++ cx25840-driver.c 2005-08-21 23:43:17.000000000 +0200 >@@ -648,11 +648,11 @@ > case CX25840_TUNER: > CX25840_DEBUG("now setting Tuner input\n"); > CX25840_SET_CH_1__SOURCE(cardtype == 1 ? 0x01 : 0x06); >- CX25840_SET_PWR_DN_CH2(0x01); >- CX25840_SET_PWR_DN_CH3(0x00); >- CX25840_SET_CH_3__SOURCE(0x01); >+ CX25840_SET_PWR_DN_CH3(0x01); >+ CX25840_SET_PWR_DN_CH2(0x00); >+ CX25840_SET_CH_2__SOURCE(0x01); > CX25840_SET_PWR_DN_ADC2(0x00); >- CX25840_SET_CH_SEL_ADC2(0x01); >+ CX25840_SET_CH_SEL_ADC2(0x00); > CX25840_SET_INPUT_MODE(0x00); > break; > > >
Aug 26 03:07:38 myth ivtv: ==================== START INIT IVTV ==================== Aug 26 03:07:38 myth ivtv: version 0.3.7 (k) loading Aug 26 03:07:38 myth ivtv: Linux version: 2.6.12-gentoo-r6 PENTIUM4 gcc-3.3 Aug 26 03:07:38 myth ivtv: In case of problems please include the debug info Aug 26 03:07:38 myth ivtv: between the START INIT IVTV and END INIT IVTV lines when Aug 26 03:07:38 myth ivtv: mailing the ivtv-devel mailinglist. Aug 26 03:07:38 myth ivtv: Autodetected WinTV PVR 150 card (iTVC16 based) Aug 26 03:07:38 myth ACPI: PCI Interrupt 0000:03:08.0[A] -> GSI 18 (level, low) -> IRQ 18 Aug 26 03:07:38 myth tveeprom: Hauppauge: model = 23559, rev = D591, serial# = 2990431 Aug 26 03:07:38 myth tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56) Aug 26 03:07:38 myth tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L) PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17) Aug 26 03:07:38 myth tveeprom: audio processor = CX25843 (type = 25) Aug 26 03:07:38 myth tveeprom: decoder processor = CX25843 (type = 1e) Aug 26 03:07:38 myth ivtv: i2c attach to card #0 ok [client=tveeprom[50], addr=50] Aug 26 03:07:38 myth ivtv: This is the first unit of a PVR500 Aug 26 03:07:38 myth tuner: chip found at addr 0xc0 i2c-bus ivtv i2c driver #0 Aug 26 03:07:38 myth TEA5767 detected. Aug 26 03:07:38 myth ivtv: i2c attach to card #0 ok [client=(tuner unset), addr=60] Aug 26 03:07:38 myth tuner: type set to 62 (Philips TEA5767HN FM Radio) by autodetect Aug 26 03:07:38 myth type set to 62 (Philips TEA5767HN FM Radio) Aug 26 03:07:38 myth tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0 Aug 26 03:07:38 myth ivtv: i2c attach to card #0 ok [client=(tuner unset), addr=61] Aug 26 03:07:40 myth cx25840: firmware /lib/modules/HcwMakoA.ROM loaded Aug 26 03:07:40 myth ivtv: i2c attach to card #0 ok [client=cx25840[50], addr=44] Aug 26 03:07:40 myth ivtv: i2c attach to card #0 ok [client=wm8775[50], addr=1b] Aug 26 03:07:40 myth tda9885/6/7: chip found @ 0x86 Aug 26 03:07:40 myth ivtv: i2c attach to card #0 ok [client=tda9887, addr=43] Aug 26 03:07:40 myth ivtv: Detected a TEA5767 radio tuner. Enabling radio support. Aug 26 03:07:41 myth ivtv: Encoder revision: 0x02050032 Aug 26 03:07:41 myth ivtv warning: Encoder Firmware can be buggy, use version 0x02040011!!!! Aug 26 03:07:41 myth ivtv: Create DMA encoder MPEG stream: 0 x 32768 buffers (0KB total) Aug 26 03:07:41 myth ivtv: Create DMA encoder YUV stream: 0 x 12960 buffers (0KB total) Aug 26 03:07:41 myth ivtv: Create DMA encoder VBI stream: 0 x 26208 buffers (0KB total) Aug 26 03:07:41 myth ivtv: Create DMA encoder PCM audio stream: 0 x 4608 buffers (0KB total) Aug 26 03:07:41 myth ivtv: Create encoder radio stream Aug 26 03:07:41 myth tuner: type set to 56 (Philips PAL/SECAM multi (FQ1216AME MK4)) by ivtv i2c driver #0 Aug 26 03:07:41 myth ivtv: Initialized WinTV PVR 150, card #0 Aug 26 03:07:41 myth ivtv: ====================== NEXT CARD ====================== Aug 26 03:07:41 myth ivtv: Autodetected WinTV PVR 150 card (iTVC16 based) Aug 26 03:07:41 myth ACPI: PCI Interrupt 0000:03:09.0[A] -> GSI 19 (level, low) -> IRQ 19 Aug 26 03:07:41 myth tveeprom: Hauppauge: model = 23559, rev = D591, serial# = 2990431 Aug 26 03:07:41 myth tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56) Aug 26 03:07:41 myth tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L) PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17) Aug 26 03:07:41 myth tveeprom: audio processor = CX25843 (type = 25) Aug 26 03:07:41 myth tveeprom: decoder processor = CX25843 (type = 1e) Aug 26 03:07:41 myth ivtv: i2c attach to card #1 ok [client=tveeprom[50], addr=50] Aug 26 03:07:41 myth tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #1 Aug 26 03:07:41 myth ivtv: i2c attach to card #1 ok [client=(tuner unset), addr=61] Aug 26 03:07:43 myth cx25840: firmware /lib/modules/HcwMakoA.ROM loaded Aug 26 03:07:43 myth ivtv: i2c attach to card #1 ok [client=cx25840[50], addr=44] Aug 26 03:07:43 myth ivtv: i2c attach to card #1 ok [client=wm8775[50], addr=1b] Aug 26 03:07:43 myth tda9885/6/7: chip found @ 0x86 Aug 26 03:07:43 myth ivtv: i2c attach to card #1 ok [client=tda9887, addr=43] Aug 26 03:07:43 myth ivtv: This is the second unit of a PVR500 Aug 26 03:07:43 myth ivtv: Correcting tveeprom data: no radio present on second tuner Aug 26 03:07:44 myth ivtv: Encoder revision: 0x02050032 Aug 26 03:07:44 myth ivtv warning: Encoder Firmware can be buggy, use version 0x02040011!!!! Aug 26 03:07:44 myth ivtv: Create DMA encoder MPEG stream: 0 x 32768 buffers (0KB total) Aug 26 03:07:44 myth ivtv: Create DMA encoder YUV stream: 0 x 12960 buffers (0KB total) Aug 26 03:07:44 myth ivtv: Create DMA encoder VBI stream: 0 x 26208 buffers (0KB total) Aug 26 03:07:44 myth ivtv: Create DMA encoder PCM audio stream: 0 x 4608 buffers (0KB total) Aug 26 03:07:44 myth tuner: type set to 56 (Philips PAL/SECAM multi (FQ1216AME MK4)) by ivtv i2c driver #1 Aug 26 03:07:44 myth ivtv: Initialized WinTV PVR 150, card #1 Aug 26 03:07:44 myth ivtv: ==================== END INIT IVTV ====================
/dev/v4l/video0 # ivtvctl -d /dev/v4l/video0 -q 0 (default) (no sound) Aug 26 02:39:02 myth cx25840 debug: set audio input (0) Aug 26 02:39:02 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 02:39:03 myth cx25840 debug: Status: 'Mono' (Detected audio mode) Aug 26 02:39:03 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) # ivtvctl -d /dev/v4l/video0 -q 1 (sound) Aug 26 02:38:14 myth cx25840 debug: set audio input (1) Aug 26 02:38:14 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 02:38:14 myth cx25840 debug: Status: 'Mono' (Detected audio mode) Aug 26 02:38:14 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) /dev/v4l/video1 # ivtvctl -d /dev/v4l/video1 -q 0 (default) (no sound) Aug 26 02:41:34 myth cx25840 debug: set audio input (0) Aug 26 02:41:34 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 02:41:34 myth cx25840 debug: Status: 'Stereo' (Detected audio mode) Aug 26 02:41:34 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) # ivtvctl -d /dev/v4l/video1 -q 1 (sound) Aug 26 02:41:59 myth cx25840 debug: set audio input (1) Aug 26 02:41:59 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 02:41:59 myth cx25840 debug: Status: 'Stereo' (Detected audio mode) Aug 26 02:41:59 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard)
/dev/v4l/video0 # ivtvctl -d /dev/v4l/video0 -q 0 (default) (no sound) Aug 26 03:13:00 myth cx25840 debug: set audio input (0) Aug 26 03:13:00 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 03:13:00 myth cx25840 debug: Status: 'Mono' (Detected audio mode) Aug 26 03:13:00 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) # ivtvctl -d /dev/v4l/video0 -q 1 (sound) Aug 26 03:13:22 myth cx25840 debug: set audio input (1) Aug 26 03:13:22 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 03:13:22 myth cx25840 debug: Status: 'Mono' (Detected audio mode) Aug 26 03:13:22 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) /dev/v4l/video1 # ivtvctl -d /dev/v4l/video1 -q 0 (default) (no sound) Aug 26 03:13:58 myth cx25840 debug: set audio input (0) Aug 26 03:13:58 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 03:13:58 myth cx25840 debug: Status: 'Stereo' (Detected audio mode) Aug 26 03:13:58 myth cx25840 debug: Status: 'No detected audio standard' (Detected audio standard) # ivtvctl -d /dev/v4l/video1 -q 1 (sound) Aug 26 03:14:21 myth cx25840 debug: set audio input (1) Aug 26 03:14:21 myth cx25840 debug: Status: 0x03 (REV_ID, Revision ID.) Aug 26 03:14:21 myth cx25840 debug: Status: 'Stereo' (Detected audio mode) Aug 26 03:14:21 myth cx25840 debug: Status: 'NICAM-BG' (Detected audio standard)