Title: Tinny Audio in MythTV w/ PVR 150 on Ubuntu Dapper (2.16.15-26-amd64-generic), IVTV 0.4.6

Hello,

I seem to have the not uncommon problem with Tinny Audio.  I have tried every latest version of the Firmware with exactly the same result.  I am also very consistent in cold booting (I actually have a problem with lirc_pvr150 and IVTV as well, but I'll post that one separately, but I am sure the cold boot is working properly).

I get no errors in the startup messages.  The sound is tinny in MythTV when watching TV or starting recordings.  I can easily fix the tinny sound by command:  ivtvctl -q 1 or setting the audio qualities.  This can be run at anytime and it seems to work.  I am using SVIDEO input with Audio input 1.

MythTV v0.19.

I am compiling from source for both IVTV and MythTV.

Another user and myself have been experimenting with this problem and have uncovered the following information:
- We can both reproduce this consistently, he has a slow machine, I have a fast one.
- If I check the audio channel while it's tinny, the channel is correctly set, but resetting it to the same channel through ivtvctl still fixes the problem

- When we turn on IVTV debug the problem goes away (only once has it occurred when I turned on IOCTL debug only)
- He added a 50 ms delay into the IVTV driver code (in the ivtv_api function in ivtv_mailbox.c) and this solved the problem for both he and myself

- I have traced the debug logs of both the ivtvctl -q 1 command vs the Start watching TV command of MythTV and it seems to me that MythTV never explicitly sets the audio channel.  It relies on VIDIOC_S_AUDIO to set the audio channel after setting the video channel.  However, VIDIOC_S_AUDIO will not set the audio channel if the video channel is already set to the requested channel.

I have included my DMESG trace.  I have more extensive log traces if required.

Sep 10 21:12:13 UBUNKGE9 kernel: [   62.584987] Linux video capture interface: v1.00
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.616921] ivtv: no version for "struct_module" found: kernel tainted.
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618076] ivtv:  ==================== START INIT IVTV ====================
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618079] ivtv:  version 0.4.6 (tagged release) loading
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618081] ivtv:  Linux version: 2.6.15-26-amd64-generic SMP preempt gcc-4.0
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618084] ivtv:  In case of problems please include the debug info between
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618086] ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618088] ivtv:  any module options, when mailing the ivtv-users mailinglist.
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618177] ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618223] GSI 22 sharing vector 0xD9 and IRQ 22
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.618227] ACPI: PCI Interrupt 0000:00:0e.0[A] -> GSI 19 (level, low) -> IRQ 217
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.638122] ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671437] tveeprom 1-0050: Hauppauge model 26032, rev C199, serial# 7846638
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671440] tveeprom 1-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671443] tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671446] tveeprom 1-0050: audio processor is CX25841 (idx 35)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671449] tveeprom 1-0050: decoder processor is CX25841 (idx 28)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.671451] tveeprom 1-0050: has no radio, has IR remote
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.725073] tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.725077] ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.875863] cx25840 1-0044: ivtv driver
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.875867] cx25840 1-0044: cx25841-23 found @ 0x88 (ivtv i2c driver #0)
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.892118] input: PS2++ Logitech MX Mouse as /class/input/input2
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.928847] Floppy drive(s): fd0 is 1.44M
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.948268] FDC 0 is a post-1991 82077
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.959667] ts: Compaq touchscreen protocol output
Sep 10 21:12:13 UBUNKGE9 kernel: [   62.995227] codec_read: codec 0 is not valid [0xfe0000]
Sep 10 21:12:13 UBUNKGE9 kernel: [   63.001592] codec_read: codec 0 is not valid [0xfe0000]
Sep 10 21:12:13 UBUNKGE9 kernel: [   63.008043] codec_read: codec 0 is not valid [0xfe0000]
Sep 10 21:12:13 UBUNKGE9 kernel: [   63.014411] codec_read: codec 0 is not valid [0xfe0000]
Sep 10 21:12:13 UBUNKGE9 kernel: [   65.107076] skge eth0: enabling interface
Sep 10 21:12:13 UBUNKGE9 kernel: [   65.997507] cx25840 1-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.052940] ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.085383] wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.092537] ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.179331] NET: Registered protocol family 17
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.770618] ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.774622] skge eth0: Link is up at 100 Mbps, full duplex, flow control tx and rx
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.985839] ivtv0: Encoder revision: 0x02050032
Sep 10 21:12:13 UBUNKGE9 kernel: [   66.986027] ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)

Sep 10 21:12:13 UBUNKGE9 kernel: [   66.986298] ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)

Sep 10 21:12:13 UBUNKGE9 kernel: [   66.986598] ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)

Sep 10 21:12:13 UBUNKGE9 kernel: [   66.986844] ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)

Sep 10 21:12:13 UBUNKGE9 kernel: [   66.987294] tuner 1-0061: type set to 50 (TCL 2002N)
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.065683] ivtv0: Initialized WinTV PVR 150, card #0
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.065696] ivtv:  ====================  END INIT IVTV  ====================
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.377954] lirc_dev: IR Remote Control driver registered, at major 61
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.407273] lirc_pvr150: chip found with RX and TX
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.407281] ivtv0: i2c attach to card #0 ok [client=Hauppauge PVR150 IR RX, addr=71]

Sep 10 21:12:13 UBUNKGE9 kernel: [   67.407758] ivtv0: i2c attach to card #0 ok [client=Hauppauge PVR150 IR TX, addr=70]

Sep 10 21:12:13 UBUNKGE9 kernel: [   67.408204] lirc_dev: lirc_register_plugin: sample_rate: 0
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.427734] lirc_pvr150: firmware of size 248009 loaded
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.427983] lirc_pvr150: 637 codesets loaded
Sep 10 21:12:13 UBUNKGE9 kernel: [   67.458283] lirc_pvr150: Hauppauge PVR-150 IR blaster: firmware version 1.3.0

If anyone has any other ideas, I'm willing to try out code changes.

George

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to