[mythtv-users] Tinny audio, PVR-150 and ivtv 0.8.0

Chris Weisiger cweisiger at bellsouth.net
Sun Nov 19 02:03:16 UTC 2006


Mike Lewis wrote:
> On 10/31/06, Larry Silverman <cerulean47 at gmail.com> wrote:
>   
>> I'm one of those users who has the "tinny audio" problem with my PVR-150.
>> In the past, I fixed this by running a cron job that calls ivtvctl -q 1
>> every 30 minutes, with a 6 second delay.  As of ivtv 0.8.0, all the command
>> line arguments have changed and -q is no longer supported.
>>
>> For everyone else in this boat, I thought I'd share my discovery in trying
>> to re-fix this hack.  The feature we need has been moved to v4l2-ctl.  I
>> changed my script to call "v4l2-ctl -a 1", and it seems to fix the tinny
>> audio in the same way the old ivtvctl command used to.
>>
>> I know there's a lot of us out there experiencing this problem.  I keep
>> hoping with every update that it will just "go away", but it seems like it's
>> here to stay.
>>
>> For what it's worth, my setup:
>> MythTV 0.20 on FC5
>> Soyo Dragon KT333 Platinum mobo, AMD XP 2100+, 1GB RAM, disabled onboard
>> audio because it froze the machine.
>> Offbrand nVidia GeForce FX 5200, S-Video out to NTSC TV.
>> Creative Labs Audigy sound card, analog audio out to my stereo.
>> 2 Hauppauge tuners, see below.  The PVR-150 is /dev/video0 and records from
>> my digital cable box via composite input.  The PVR-250 is /dev/video1 and
>> has never experienced the tinny audio problem to my knowledge, I use the
>> internal tuner on that one.
>>
>> [root at gonzo bin]# lspci -v
>> 00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
>>         Subsystem: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
>>         Flags: bus master, 66MHz, medium devsel, latency 0
>>         Memory at d0000000 (32-bit, prefetchable) [size=128M]
>>         Capabilities: [a0] AGP version 2.0
>>         Capabilities: [c0] Power Management version 2
>>
>> 00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333
>> AGP] (prog-if 00 [Normal decode])
>>         Flags: bus master, 66MHz, medium devsel, latency 0
>>         Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
>>         Memory behind bridge: e0000000-e1ffffff
>>         Prefetchable memory behind bridge: c0000000-cfffffff
>>         Capabilities: [80] Power Management version 2
>>
>> 00:09.0 Multimedia video controller: Internext Compression Inc iTVC16
>> (CX23416) MPEG-2 Encoder (rev 01)
>>         Subsystem: Hauppauge computer works Inc. Unknown device 8801
>>         Flags: bus master, medium devsel, latency 64, IRQ 5
>>         Memory at d8000000 (32-bit, prefetchable) [size=64M]
>>         Capabilities: [44] Power Management version 2
>>
>> 00:0a.0 Multimedia video controller: Internext Compression Inc iTVC16
>> (CX23416) MPEG-2 Encoder (rev 01)
>>         Subsystem: Hauppauge computer works Inc. WinTV PVR 250
>>         Flags: bus master, medium devsel, latency 64, IRQ 10
>>         Memory at dc000000 (32-bit, prefetchable) [size=64M]
>>         Capabilities: [44] Power Management version 2
>>
>> 00:0b.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
>>         Subsystem: Creative Labs SB0090 Audigy Player
>>         Flags: bus master, medium devsel, latency 32, IRQ 7
>>         I/O ports at 9000 [size=32]
>>         Capabilities: [dc] Power Management version 2
>>
>> 00:0b.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev
>> 03)
>>         Subsystem: Creative Labs SB Audigy MIDI/Game Port
>>         Flags: bus master, medium devsel, latency 32
>>         I/O ports at 9400 [size=8]
>>         Capabilities: [dc] Power Management version 2
>>
>> 00:0b.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (prog-if
>> 10 [OHCI])
>>         Subsystem: Creative Labs SB Audigy FireWire Port
>>         Flags: bus master, medium devsel, latency 32, IRQ 11
>>         Memory at e3006000 (32-bit, non-prefetchable) [size=2K]
>>         Memory at e3000000 (32-bit, non-prefetchable) [size=16K]
>>         Capabilities: [44] Power Management version 2
>>
>> 00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
>> RTL-8139/8139C/8139C+ (rev 10)
>>         Subsystem: Realtek Semiconductor Co., Ltd. RT8139
>>         Flags: bus master, medium devsel, latency 32, IRQ 11
>>         I/O ports at 9800 [size=256]
>>         Memory at e3004000 (32-bit, non-prefetchable) [size=256]
>>         Capabilities: [50] Power Management version 2
>>
>> 00:0e.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
>> Controller (rev 50) (prog-if 00 [UHCI])
>>         Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
>>         Flags: bus master, medium devsel, latency 32, IRQ 5
>>         I/O ports at 9c00 [size=32]
>>         Capabilities: [80] Power Management version 2
>>
>> 00:0e.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
>> Controller (rev 50) (prog-if 00 [UHCI])
>>         Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
>>         Flags: bus master, medium devsel, latency 32, IRQ 10
>>         I/O ports at a000 [size=32]
>>         Capabilities: [80] Power Management version 2
>>
>> 00:0e.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51) (prog-if 20
>> [EHCI])
>>         Subsystem: VIA Technologies, Inc. (Wrong ID) Unknown device 1234
>>         Flags: bus master, medium devsel, latency 32, IRQ 7
>>         Memory at e3005000 (32-bit, non-prefetchable) [size=256]
>>         Capabilities: [80] Power Management version 2
>>
>> 00:0f.0 RAID bus controller: Triones Technologies, Inc.
>> HPT366/368/370/370A/372/372N (rev 05)
>>         Subsystem: Triones Technologies, Inc. HPT370A
>>         Flags: bus master, 66MHz, medium devsel, latency 120, IRQ 10
>>         I/O ports at a400 [size=8]
>>         I/O ports at a800 [size=4]
>>         I/O ports at ac00 [size=8]
>>         I/O ports at b000 [size=4]
>>         I/O ports at b400 [size=256]
>>         Expansion ROM at 50000000 [disabled by cmd] [size=128K]
>>         Capabilities: [60] Power Management version 2
>>
>> 00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
>>         Subsystem: VIA Technologies, Inc. VT8233A ISA Bridge
>>         Flags: bus master, stepping, medium devsel, latency 0
>>         Capabilities: [c0] Power Management version 2
>>
>> 00:11.1 IDE interface: VIA Technologies, Inc.
>> VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
>> (rev 06) (prog-if 8a [Master SecP PriP])
>>         Subsystem: VIA Technologies, Inc.
>> VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master
>> IDE
>>         Flags: bus master, medium devsel, latency 32, IRQ 11
>>         I/O ports at b800 [size=16]
>>         Capabilities: [c0] Power Management version 2
>>
>> 00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
>> Controller (rev 23) (prog-if 00 [UHCI])
>>         Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
>>         Flags: bus master, medium devsel, latency 32, IRQ 7
>>         I/O ports at bc00 [size=32]
>>         Capabilities: [80] Power Management version 2
>>
>> 00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
>> Controller (rev 23) (prog-if 00 [UHCI])
>>         Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
>>         Flags: bus master, medium devsel, latency 32, IRQ 7
>>         I/O ports at c000 [size=32]
>>         Capabilities: [80] Power Management version 2
>>
>> 01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200]
>> (rev a1) (prog-if 00 [VGA])
>>         Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 11
>>         Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
>>         Memory at c0000000 (32-bit, prefetchable) [size=256M]
>>         [virtual] Expansion ROM at e1000000 [disabled] [size=128K]
>>         Capabilities: [60] Power Management version 2
>>         Capabilities: [44] AGP version 3.0
>>
>>
>> from dmesg:
>>
>> Oct 29 12:56:47 gonzo kernel: ivtv:  ==================== START INIT IVTV
>> ====================
>> Oct 29 12:56:47 gonzo kernel: ivtv:  version 0.8.0 (tagged release) loading
>> Oct 29 12:56:47 gonzo kernel: ivtv:  Linux version: 2.6.18-1.2200.fc5
>> mod_unload 686 REGPARM 4KSTACKS gcc-4.1
>> Oct 29 12:56:47 gonzo kernel: ivtv:  In case of problems please include the
>> debug info between
>> Oct 29 12:56:47 gonzo kernel: ivtv:  the START INIT IVTV and END INIT IVTV
>> lines, along with
>> Oct 29 12:56:47 gonzo kernel: ivtv:  any module options, when mailing the
>> ivtv-users mailinglist.
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Autodetected Hauppauge WinTV PVR-150
>> card (cx23416 based)
>> Oct 29 12:56:47 gonzo kernel: ACPI: PCI Interrupt Link [LNKB] enabled at IRQ
>> 7
>> Oct 29 12:56:47 gonzo kernel: ACPI: PCI Interrupt 0000:00:09.0[A] -> Link
>> [LNKB] -> GSI 7 (level, low) -> IRQ 7
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Unreasonably low latency timer, setting
>> to 64 (was 32)
>> Oct 29 12:56:47 gonzo kernel: nvidia: module license 'NVIDIA' taints kernel.
>> Oct 29 12:56:47 gonzo kernel: USB Universal Host Controller Interface driver
>> v3.0
>> Oct 29 12:56:47 gonzo kernel: ivtv0: loaded v4l-cx2341x-enc.fw firmware
>> (262144 bytes)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: Hauppauge model 26552, rev
>> C268, serial# 7723614
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: tuner model is LG TAPE H001F
>> MK3 (idx 68, type 47)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: TV standards NTSC(M) (eeprom
>> 0x08)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: audio processor is CX25843
>> (idx 37)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: decoder processor is CX25843
>> (idx 30)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 1-0050: has radio, has no IR remote
>> Oct 29 12:56:47 gonzo kernel: tuner 1-0043: chip found @ 0x86 (ivtv i2c
>> driver #0)
>> Oct 29 12:56:47 gonzo kernel: tda9887 1-0043: tda988[5/6/7] found @ 0x43
>> (tuner)
>> Oct 29 12:56:47 gonzo kernel: tuner 1-0061: chip found @ 0xc2 (ivtv i2c
>> driver #0)
>> Oct 29 12:56:47 gonzo kernel: cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv
>> i2c driver #0)
>> Oct 29 12:56:47 gonzo kernel: cx25840 1-0044: loaded v4l-cx25840.fw firmware
>> (16382 bytes)
>> Oct 29 12:56:47 gonzo kernel: wm8775 1-001b: chip found @ 0x36 (ivtv i2c
>> driver #0)
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Encoder revision: 0x02050032
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Registered device video0 for encoder
>> MPEG
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Registered device video32 for encoder
>> YUV
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Registered device vbi0 for encoder VBI
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Registered device video24 for encoder
>> PCM audio
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Registered device radio0 for encoder
>> radio
>> Oct 29 12:56:47 gonzo kernel: tuner 1-0061: type set to 47 (LG NTSC (TAPE
>> series))
>> Oct 29 12:56:47 gonzo kernel: ivtv0: Initialized Hauppauge WinTV PVR-150,
>> card #0
>> Oct 29 12:56:47 gonzo kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ
>> 5
>> Oct 29 12:56:47 gonzo kernel: ACPI: PCI Interrupt 0000:00:10.0[A] -> Link
>> [LNKD] -> GSI 5 (level, low) -> IRQ 5
>> Oct 29 12:56:47 gonzo kernel: ivtv:  ======================  NEXT CARD
>> ======================
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Autodetected Hauppauge WinTV PVR-250
>> card (cx23416 based)
>> Oct 29 12:56:47 gonzo kernel: ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link
>> [LNKD] -> GSI 5 (level, low) -> IRQ 5
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Unreasonably low latency timer, setting
>> to 64 (was 32)
>> Oct 29 12:56:47 gonzo kernel: ivtv1: loaded v4l-cx2341x-enc.fw firmware
>> (262144 bytes)
>> Oct 29 12:56:47 gonzo kernel: tuner 2-0061: chip found @ 0xc2 (ivtv i2c
>> driver #1)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: Hauppauge model 32062, rev
>> C182, serial# 2908986
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: tuner model is LG TAPC H791F
>> (idx 82, type 39)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: TV standards NTSC(M) (eeprom
>> 0x08)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: audio processor is MSP3445
>> (idx 12)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: decoder processor is SAA7115
>> (idx 19)
>> Oct 29 12:56:47 gonzo kernel: tveeprom 2-0050: has no radio, has IR remote
>> Oct 29 12:56:47 gonzo kernel: saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c
>> driver #1)
>> Oct 29 12:56:47 gonzo kernel: msp3400 2-0040: MSP3445G-B8 found @ 0x80 (ivtv
>> i2c driver #1)
>> Oct 29 12:56:47 gonzo kernel: msp3400 2-0040: MSP3445G-B8 supports radio,
>> mode is autodetect and autoselect
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Encoder revision: 0x02050032
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Registered device video1 for encoder
>> MPEG
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Registered device video33 for encoder
>> YUV
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Registered device vbi1 for encoder VBI
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Registered device video25 for encoder
>> PCM audio
>> Oct 29 12:56:47 gonzo kernel: tuner 2-0061: type set to 39 (LG NTSC (newer
>> TAPC series))
>> Oct 29 12:56:47 gonzo kernel: ivtv1: Initialized Hauppauge WinTV PVR-250,
>> card #1
>> Oct 29 12:56:47 gonzo kernel: ivtv:  ====================  END INIT IVTV
>> ====================
>>
>> Good luck.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>     
>
> I am really really really surprised this is still a problem in ivtv.
> EVERY upgrade I have done on ivtv needs to be hacked again.  Is this a
> PVR-150 only problem and they don't want to fix it????
>
> Here is a link to the source code hack....
>
> 3/4 of the way down it talks about editing ivtv-streams.c
>
> http://www.mythtvtalk.com/forum/viewtopic.php?t=2690&postdays=0&postorder=asc&start=70
>
> Good luck!
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>   

I had the tinny audio issue with my pvr-150 and i believe it is an issue 
also with the pvr-500
but not having a pvr-500 Im not too sure. I have commented out the 
following noted lines below
and have not had an issue with tinny audio...I have tested this by 
recording 24 hours straight worth
of tv and ripping dvds and changing channels multiple times back to 
back. My system has not had
a tinny audio issue yet. My system has also been running for 2 weeks 
straight without a reboot.

Just to mention, I did the hack with inserting the sleep command. It is 
mentioned on there as well on the link
and I had hell getting things to work, so I wouldnt try that hack.

I am running FC5 with ivtv-0.8 and myth-0.20


       /* Disable digitizer */
         IVTV_DEBUG_INFO("Disabling digitizer\n");

I commented out the following line here:
-       itv->card->video_dec_func(itv, VIDIOC_STREAMOFF, &dummy);
 
         /* initialize or refresh input */
         if (atomic_read(&itv->capturing) == 0)
@@ -797,7 +797,7 @@
 
         /* enable digitizer (saa7115) */
         IVTV_DEBUG_INFO("Enabling digitizer\n");

I also commented out this line also:
-       itv->card->video_dec_func(itv, VIDIOC_STREAMON, &dummy);





More information about the mythtv-users mailing list