Hans Verkuil wrote:
> OK, here are some simple tests to do:
>
> I assume that there are two states: audio is OK or audio is tinny. What
> I'd like to see is the output of the following commands for each state:
>
> ivtvctl --log-status
> ivtvctl -G
> ivtvctl -Z
>
> I also need to know what you did to switch from one state to another
> (ivtvctl -q0 I assume).
>
> I don't think I've ever had reports about this from PAL/SECAM country,
> so for now I assume it is NTSC specific. If anyone from PAL/SECAM has
> the same problem, then please report this asap.
>
> Hans
Here's the requested info. I can put this in a bug report with attached
files if desired.
At the bottom, I've also included the standard info about my system in
case that's of interest.
Thanks for looking into this!
Cheers,
john
================
1. To switch states between "good" and "bad" (tinny audio), I used
ivtvctl --device=/dev/video0 -q0. I've also seen ivtvtcl
--cstream_type=2 (another thread on this list offered this as a way to
fix tinny audio) toggle back and forth between states. So, to be clear,
both of these commands in fact *toggle* between good and bad. If the
state is bad, these commands seem highly reliable (maybe 100% for me)
toggling to good. If the state is good, these commands only *sometimes*
(maybe 20% ???) toggle to bad.
2. I ran the tests by starting out in a good state, then repeatedly
issuing ivtvctl --device=/dev/video0 -q0 until I obtained a bad state.
I recorded the values for the bad state. Then I issued the ivtvctl
command again and got a good state, then recorded those values.
BAD STATE VALUES:
=================
ivtvctl --device=/dev/video0 --logstatus
ioctl VIDIOC_LOG_STATUS ok
[17233676.612000] ivtv0: ================= START STATUS CARD #0
=================
[17233676.620000] cx25840 2-0044: Video signal: present
[17233676.620000] cx25840 2-0044: Detected format: NTSC-M
[17233676.620000] cx25840 2-0044: Detected audio mode: stereo
[17233676.620000] cx25840 2-0044: Detected audio standard: BTSC
[17233676.620000] cx25840 2-0044: Audio muted: no
[17233676.620000] cx25840 2-0044: Audio microcontroller: running
[17233676.620000] cx25840 2-0044: Configured audio standard:
automatic detection
[17233676.620000] cx25840 2-0044: Configured audio system: BTSC
[17233676.620000] cx25840 2-0044: Specified standard: NTSC-M
[17233676.620000] cx25840 2-0044: Specified input: Tuner
[17233676.620000] cx25840 2-0044: Specified audio input: Tuner
[17233676.620000] cx25840 2-0044: Specified audioclock freq: 48 kHz
[17233676.620000] cx25840 2-0044: Preferred audio mode: stereo
[17233676.620000] wm8775 2-001b: Input: default
[17233676.620000] tda9887 2-0043: Data bytes: b=d4 c=30 e=44
[17233676.620000] ivtv0: ================== END STATUS CARD #0
==================
ivtvctl --device=/dev/video0 -G
cx25840 registers
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0000: 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0100: 34 84 02 46 80 dd 04 07 0f 04 0a 10 fe e2 2b 00
0110: e5 d6 98 00 00 8c 07 00 02 00 00 00 00 00 00 00
0120: 00 00 01 10 87 b6 b0 50 f8 93 11 a0 ff 5f 20 11
0130: 00 00 00 00 02 18 0a 00 00 00 00 00 00 00 36 00
0140: 04 f0 00 00 10 32 54 76 00 00 00 00 00 00 00 00
0150: 00 00 00 00 00 00 00 00 00 e1 86 10 00 e1 86 06
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0200: 00 00 00 00 ff ff 00 00 ff ff 00 00 00 00 00 00
0210: 20 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00
0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0400: 01 18 04 00 2e 25 10 00 00 80 00 00 00 81 7f 00
0410: ff 05 ff ff ff 7e 00 00 00 00 00 00 00 00 08 00
0420: 7e 7e 00 20 00 00 00 00 00 00 00 00 00 00 00 00
0430: 00 00 00 00 00 00 00 00 00 00 00 00 06 00 f0 ff
0440: ba 0c 00 00 00 00 00 00 00 00 00 00 70 99 10 2c
0450: 01 00 00 03 0d c4 08 26 77 88 00 54 00 00 00 00
0460: 02 14 0a 34 6e ca 36 06 e7 00 00 08 20 f6 84 02
0470: 7a 00 2d 5b 1a 70 1e 1e 1f 02 50 66 1f 7c 08 00
0480: a1 02 00 00 00 00 63 42 16 29 27 f8 dc 40 10 00
0490: 8a 02 3f cd 00 03 1f 16 40 20 50 00 14 00 50 14
04a0: 0f 02 10 00 00 00 00 00 00 00 00 00 00 00 00 00
04b0: 00 00 00 00 04 00 00 00 0a 14 14 00 00 00 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0800: b8 37 85 13 01 0f ff 00 f6 04 11 00 00 00 0c 20
0810: 00 02 ff 8a 05 09 14 20 c0 31 00 00 d1 05 80 47
0820: 00 28 00 80 44 e5 84 e5 a8 54 7e 00 f2 07 01 24
0830: 21 a0 86 01 c5 46 00 c0 00 08 01 24 21 a0 86 01
0840: fa 0a 0e c0 00 1d 00 01 21 00 00 00 75 02 00 00
0850: 53 44 42 01 31 00 00 00 88 27 00 00 00 78 00 00
0860: 55 1b 04 18 00 04 00 07 01 00 33 46 69 87 05 00
0870: 33 1c 04 00 1a 13 00 00 fa 01 fa 01 ec 45 87 07
0880: 71 0a 80 0c bd 83 71 41 23 a4 01 71 7e 01 06 00
0890: 00 00 ca 65 00 00 01 71 00 00 00 00 83 00 e2 00
08a0: 78 06 d6 12 87 51 00 00 de 53 03 00 b1 01 00 00
08b0: d0 f3 00 00 00 00 00 00 c8 00 ff 0f 1f 00 0f 00
08c0: 00 00 00 00 00 00 00 00 bf 82 05 00 22 00 0a 0f
08d0: 70 38 06 01 2c 00 ff 7f 00 18 18 18 a3 33 ff 7f
08e0: 70 38 06 01 24 00 ff 7f 00 18 18 18 a3 33 ff 7f
08f0: fc 0a 00 88 88 88 33 33 7c 86 01 08 7c 86 01 08
0900: aa 4f 01 08 aa 4f 01 08 53 04 01 08 aa 4f 01 08
0910: c9 00 b0 12 a0 00 00 00 a0 01 00 00 00 00 00 00
0920: 00 48 3d f5 05 05 00 00 00 00 00 00 00 00 00 00
0930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0940: 00 00 00 00 00 00 00 00 00 2e 3f 4a 00 33 64 3d
0950: 00 00 00 d4 03 10 40 07 00 08 02 ff 00 00 00 00
0960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0980: 00 00 00 00 00 00 00 00 00 3f 00 3f 00 3f 00 3f
0990: 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00
09a0: 00 00 00 00 00 00 00 00 11 00 00 00 16 fe 00 80
ivtvctl --device=/dev/video0 -Z
ioctl VIDIOC_G_TUNER ok
current audio mode : 1
(stereo 1, lang1 3, lang2 2, mono 0)
available subchannels: 0x2
(stereo 0x2, lang1 0x8, lang2 0x4, mono 0x1)
GOOD STATE VALUES:
=================
ivtvctl --device=/dev/video0 --logstatus
ioctl VIDIOC_LOG_STATUS ok
[17233886.312000] ivtv0: ================= START STATUS CARD #0
=================
[17233886.320000] cx25840 2-0044: Video signal: present
[17233886.320000] cx25840 2-0044: Detected format: NTSC-M
[17233886.320000] cx25840 2-0044: Detected audio mode: stereo
[17233886.320000] cx25840 2-0044: Detected audio standard: BTSC
[17233886.320000] cx25840 2-0044: Audio muted: no
[17233886.320000] cx25840 2-0044: Audio microcontroller: running
[17233886.320000] cx25840 2-0044: Configured audio standard:
automatic detection
[17233886.320000] cx25840 2-0044: Configured audio system: BTSC
[17233886.320000] cx25840 2-0044: Specified standard: NTSC-M
[17233886.320000] cx25840 2-0044: Specified input: Tuner
[17233886.320000] cx25840 2-0044: Specified audio input: Tuner
[17233886.320000] cx25840 2-0044: Specified audioclock freq: 48 kHz
[17233886.320000] cx25840 2-0044: Preferred audio mode: stereo
[17233886.320000] wm8775 2-001b: Input: default
[17233886.320000] tda9887 2-0043: Data bytes: b=d4 c=30 e=44
[17233886.320000] ivtv0: ================== END STATUS CARD #0
==================
ivtvctl --device=/dev/video0 -G
cx25840 registers
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0000: 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0100: 34 84 02 46 80 dd 04 07 0f 04 0a 10 fe e2 2b 00
0110: e5 d6 98 00 00 8c 07 00 02 00 00 00 00 00 00 00
0120: 00 00 01 10 87 b6 b0 50 f8 93 11 a0 ff 5f 20 11
0130: 00 00 00 00 02 18 0a 00 00 00 00 00 00 00 36 00
0140: 04 f0 00 00 10 32 54 76 00 00 00 00 00 00 00 00
0150: 00 00 00 00 00 00 00 00 00 e1 86 10 00 e1 86 06
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0200: 00 00 00 00 ff ff 00 00 ff ff 00 00 00 00 00 00
0210: 20 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00
0220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0400: 01 18 04 00 2e 25 10 00 00 80 00 00 00 81 7f 00
0410: ff 05 ff ff ff 7e 00 00 00 00 00 00 00 00 08 00
0420: 7e 7e 00 20 00 00 00 00 00 00 00 00 00 00 00 00
0430: 00 00 00 00 00 00 00 00 00 00 00 00 06 00 f0 ff
0440: ba 0c 00 00 00 00 00 00 00 00 00 00 70 99 10 2c
0450: 01 00 00 03 0d c4 08 26 77 88 00 54 00 00 00 00
0460: 02 14 0a 34 6e ca 36 06 e7 00 00 08 20 f6 84 02
0470: 7a 00 2d 5b 1a 70 1e 1e 1f 02 50 66 1f 7c 08 00
0480: e0 02 00 00 00 00 63 42 16 2a 27 f8 dc 40 10 00
0490: 8a 02 3f cd 00 03 1f 16 40 20 50 00 14 00 50 14
04a0: 0f 02 10 00 00 00 00 00 00 00 00 00 00 00 00 00
04b0: 00 00 00 00 04 00 00 00 0a 14 14 00 00 00 00 00
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0800: b8 37 14 13 01 0f ff 00 f6 04 11 00 00 00 0c 20
0810: 00 02 ff 8a 05 09 14 20 c0 31 00 00 d1 05 80 47
0820: 00 28 00 80 44 e5 84 e5 a8 54 7e 00 f2 07 01 24
0830: 21 a0 86 01 c4 3e 00 c0 00 08 01 24 21 a0 86 01
0840: cd 58 0c c0 00 1b 00 01 21 00 00 00 d0 03 00 00
0850: db 4f 42 01 31 00 00 00 c1 2e 00 00 00 78 00 00
0860: 55 1b 04 18 00 04 00 07 01 00 33 46 69 87 05 00
0870: 33 1c 04 00 1a 13 00 00 fa 01 fa 01 ec 45 87 07
0880: 71 0a 80 0c bd 83 71 41 23 a4 01 71 4c 00 0a 00
0890: 00 00 ca 65 00 00 01 71 00 00 00 00 31 00 fe 01
08a0: 78 06 d6 12 87 51 00 00 de 53 03 00 b1 01 00 00
08b0: d0 f3 00 00 00 00 00 00 c8 00 ff 0f 1f 00 0f 00
08c0: 00 00 00 00 00 00 00 00 be 80 0d 00 22 00 0a 0f
08d0: 70 38 06 01 2c 00 ff 7f 00 18 18 18 a3 33 ff 7f
08e0: 70 38 06 01 24 00 ff 7f 00 18 18 18 a3 33 ff 7f
08f0: fc 0a 00 88 88 88 33 33 7c 86 01 08 7c 86 01 08
0900: aa 4f 01 08 aa 4f 01 08 53 04 01 08 aa 4f 01 08
0910: c9 00 b0 12 a0 00 00 00 a0 01 00 00 00 00 00 00
0920: 00 48 3d f5 05 05 00 00 00 00 00 00 00 00 00 00
0930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0940: 00 00 00 00 00 00 00 00 00 2e 3f 4a 00 33 64 3c
0950: 00 00 00 cf 03 10 40 07 00 08 02 ff 00 00 00 00
0960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0980: 00 00 00 00 00 00 00 00 00 3f 00 3f 00 3f 00 3f
0990: 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00
09a0: 00 00 00 00 00 00 00 00 10 00 00 00 a1 fe 00 00
ivtvctl --device=/dev/video0 -Z
ioctl VIDIOC_G_TUNER ok
current audio mode : 1
(stereo 1, lang1 3, lang2 2, mono 0)
available subchannels: 0x2
(stereo 0x2, lang1 0x8, lang2 0x4, mono 0x1)
================
Some specs on my system:
Running ivtv 0.4.2 and mythtv 0.19-fixes on ubuntu 5.10 and kernel 2.6.15.1
[17179588.896000] ivtv: ==================== START INIT IVTV
====================
[17179588.896000] ivtv: version 0.4.2 (tagged release) loading
[17179588.896000] ivtv: Linux version: 2.6.15.1-john K7 gcc-4.0
[17179588.896000] ivtv: In case of problems please include the debug
info between
[17179588.896000] ivtv: the START INIT IVTV and END INIT IVTV lines,
along with
[17179588.896000] ivtv: any module options, when mailing the ivtv-users
mailinglist.
[17179588.900000] ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
[17179588.900000] ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
[17179588.900000] ACPI: PCI Interrupt 0000:05:07.0[A] -> Link [APC2] ->
GSI 17 (level, low) -> IRQ 20
[17179588.900000] ivtv0: Unreasonably low latency timer, setting to 64
(was 32)
[17179588.928000] ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
[17179588.960000] tveeprom 2-0050: Hauppauge model 26552, rev F068,
serial# 8377355
[17179588.960000] tveeprom 2-0050: tuner model is LG TAPE H001F MK3 (idx
68, type 47)
[17179588.960000] tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
[17179588.960000] tveeprom 2-0050: audio processor is CX25843 (idx 37)
[17179588.960000] tveeprom 2-0050: decoder processor is CX25843 (idx 30)
[17179588.960000] tveeprom 2-0050: has radio, has no IR remote
[17179589.004000] tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
[17179589.004000] ivtv0: i2c attach to card #0 ok [client=(tuner unset),
addr=61]
[17179589.168000] cx25840 2-0044: ivtv driver
[17179589.168000] cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c
driver #0)
[17179589.212000] input: ImPS/2 Generic Wheel Mouse as /class/input/input5
[17179591.576000] cx25840 2-0044: loaded v4l-cx25840.fw firmware (14264
bytes)
[17179591.624000] ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
[17179591.664000] wm8775 2-001b: ivtv driver
[17179591.664000] wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
[17179591.668000] ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
[17179591.684000] tda9887 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
[17179591.684000] ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
[17179592.340000] ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
[17179592.548000] ivtv0: Encoder revision: 0x02050032
[17179592.548000] ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768
buffers (4096KB total)
[17179592.548000] ivtv0: Allocate DMA encoder YUV stream: 194 x 10800
buffers (2048KB total)
[17179592.548000] ivtv0: Allocate DMA encoder VBI stream: 120 x 17472
buffers (2048KB total)
[17179592.548000] ivtv0: Allocate DMA encoder PCM audio stream: 455 x
4608 buffers (2048KB total)
[17179592.548000] ivtv0: Create encoder radio stream
[17179592.548000] tuner 2-0061: type set to 47 (LG NTSC (TAPE series))
[17179592.732000] ivtv0: Initialized WinTV PVR 150, card #0
[17179592.732000] ivtv: ====================== NEXT CARD
======================
[17179592.732000] ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
[17179592.732000] ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
[17179592.732000] ACPI: PCI Interrupt 0000:05:08.0[A] -> Link [APC3] ->
GSI 18 (level, low) -> IRQ 21
[17179592.732000] ivtv1: Unreasonably low latency timer, setting to 64
(was 32)
[17179592.732000] ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
[17179592.772000] tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #1)
[17179592.772000] ivtv1: i2c attach to card #1 ok [client=(tuner unset),
addr=61]
[17179592.900000] cx25840 3-0044: ivtv driver
[17179592.900000] cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c
driver #1)
[17179596.492000] cx25840 3-0044: loaded v4l-cx25840.fw firmware (14264
bytes)
[17179596.540000] ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
[17179596.596000] wm8775 3-001b: ivtv driver
[17179596.596000] wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #1)
[17179596.600000] ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
[17179596.612000] tda9887 3-0043: chip found @ 0x86 (ivtv i2c driver #1)
[17179596.612000] ivtv1: i2c attach to card #1 ok [client=tda9887, addr=43]
[17179596.652000] tveeprom 3-0050: Hauppauge model 26552, rev C268,
serial# 8754297
[17179596.652000] tveeprom 3-0050: tuner model is LG TAPE H001F MK3 (idx
68, type 47)
[17179596.652000] tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
[17179596.652000] tveeprom 3-0050: audio processor is CX25843 (idx 37)
[17179596.652000] tveeprom 3-0050: decoder processor is CX25843 (idx 30)
[17179596.652000] tveeprom 3-0050: has radio, has no IR remote
[17179597.336000] ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
[17179597.544000] ivtv1: Encoder revision: 0x02050032
[17179597.544000] ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768
buffers (4096KB total)
[17179597.616000] ivtv1: Allocate DMA encoder YUV stream: 194 x 10800
buffers (2048KB total)
[17179597.624000] ivtv1: Allocate DMA encoder VBI stream: 120 x 17472
buffers (2048KB total)
[17179597.624000] ivtv1: Allocate DMA encoder PCM audio stream: 455 x
4608 buffers (2048KB total)
[17179597.628000] ivtv1: Create encoder radio stream
[17179597.628000] tuner 3-0061: type set to 47 (LG NTSC (TAPE series))
[17179597.808000] ivtv1: Initialized WinTV PVR 150, card #1
[17179597.808000] ivtv: ==================== END INIT IVTV
====================
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel