At 61 I still get no sound but it get interesting at 91 where the
sound plays accelerated in short bouts every other second. 121 works
great.

On Sun, Sep 7, 2008 at 8:43 PM, Andy Walls <[EMAIL PROTECTED]> wrote:
> On Sat, 2008-09-06 at 16:12 -0400, Richard Ayotte wrote:
>> Thank you for the quick response. Setting mmio_ndelay=0 fixed the
>> problem. Your work is appreciated.
>
> Rich,
>
> Could you also try a value of mmio_ndelay=61 or 91 or 121 to see if any
> of those work.  We'll assume the default of 31 still doesn't work for
> you.
>
> If one of these higher values works for you, I would recommend using it,
> rather than the setting of 0.
>
> Regards,
> Andy
>
>
>> Rich
>>
>> On Sat, Sep 6, 2008 at 3:28 PM, Andy Walls <[EMAIL PROTECTED]> wrote:
>> > On Sat, 2008-09-06 at 13:02 -0400, Richard Ayotte wrote:
>> >> Hi,
>> >>
>> >> I initially had audio problems in MythTV that were later resolved at
>> >> the end of July with this patch.
>> >>
>> >> http://linuxtv.org/hg/v4l-dvb/rev/6fc3c82281f3
>> >>
>> >> But with the latest driver I'm have a different audio problem - no
>> >> audio at all except for the occasional screech. System sounds still
>> >> work fine so I've ruled out sound card problems.
>> >>
>> >> I'm using the analog tuner on Ubuntu Hardy with the Intrepid ivtv
>> >> package on an AMD64 Opteron with 4G RAM.
>> >>
>> >> Here's some system info:
>> >>
>> >> $ ivtvctl  --version
>> >> ivtvctl version 1.2.0 (tagged release)
>> >>
>> >> $ dmesg |grep cx18
>> >> [  261.019358] cx18:  Start initialization, version 1.0.0
>> >> [  261.019472] cx18-0: Initializing card #0
>> >> [  261.019520] cx18-0: Autodetected Hauppauge card
>> >> [  261.020056] cx18-0: Unreasonably low latency timer, setting to 64 (was 
>> >> 32)
>> >> [  261.021537] cx18-0: cx23418 revision 01010000 (B)
>> >> [  261.217148] cx18-0: Autodetected Hauppauge HVR-1600
>> >> [  261.217195] cx18-0: VBI is not yet supported
>> >> [  262.090741] tuner 3-0043: chip found @ 0x86 (cx18 i2c driver #0-1)
>> >> [  262.131668] tuner 3-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
>> >> [  262.131751] cs5345 2-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
>> >> [  262.178526] cx18-0: Disabled encoder IDX device
>> >> [  262.178626] cx18-0: Registered device video0 for encoder MPEG (2 MB)
>> >> [  262.178678] DVB: registering new adapter (cx18)
>> >> [  262.318897] cx18-0: DVB Frontend registered
>> >> [  262.318971] cx18-0: Registered device video32 for encoder YUV (2 MB)
>> >> [  262.319038] cx18-0: Registered device video24 for encoder PCM audio (1 
>> >> MB)
>> >> [  262.319107] cx18-0: Registered device radio0 for encoder radio
>> >> [  262.319978] cx18-0: Initialized card #0: Hauppauge HVR-1600
>> >> [  262.320050] cx18:  End initialization
>> >> [  278.130281] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000
>> >> (141200 bytes)
>> >> [  278.500794] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
>> >> [  278.504205] cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
>> >> [  279.169571] cx18-0: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
>> >>
>> >>
>> >> $ v4l2-ctl -d /dev/video0 --log-status
>> >>
>> >> Status Log:
>> >>
>> >>    [ 1163.389925] cx18-0: =================  START STATUS CARD #0
>> >> =================
>> >>    [ 1163.411465] tveeprom 2-0050: Hauppauge model 74541, rev C6B6,
>> >> serial# 3326793
>> >>    [ 1163.411471] tveeprom 2-0050: MAC address is 00-0D-FE-32-C3-49
>> >>    [ 1163.411475] tveeprom 2-0050: tuner model is Philips FM1236 MK5
>> >> (idx 116, type 43)
>> >>    [ 1163.411479] tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
>> >>    [ 1163.411482] tveeprom 2-0050: audio processor is CX23418 (idx 38)
>> >>    [ 1163.411484] tveeprom 2-0050: decoder processor is CX23418 (idx 31)
>> >>    [ 1163.411488] tveeprom 2-0050: has radio
>> >>    [ 1163.411493] cx18-0: Video signal:              present
>> >>    [ 1163.411496] cx18-0: Detected format:           NTSC-M
>> >>    [ 1163.411499] cx18-0: Specified standard:        NTSC-M
>> >>    [ 1163.411501] cx18-0: Specified video input:     Composite 7
>> >>    [ 1163.411504] cx18-0: Specified audioclock freq: 32000 Hz
>> >>    [ 1163.411511] cx18-0: Detected audio mode:       mono
>> >>    [ 1163.411514] cx18-0: Detected audio standard:   no detected audio 
>> >> standard
>> >>    [ 1163.411517] cx18-0: Audio muted:               yes
>> >>    [ 1163.411520] cx18-0: Audio microcontroller:     running
>> >>    [ 1163.411523] cx18-0: Configured audio standard: automatic detection
>> >
>> > Somehow I broke the audio microcontroller auto audio standard detection
>> > by slowing down IO accesses to the CX23418 (by 1 PCI clock cycle
>> > each!?).  This is only a problem on 1 of my three machines: the 1 I
>> > didn't test the change on of course.
>> >
>> > I'll submit a quick fix to be pulled for v4l-dvb, and then try to figure
>> > out what's going on.  Until then load the module with the mmio_ndelay
>> > parameter set to 0:
>> >
>> > # modprobe cx18 mmio_ndelay=0
>> >
>> > That fixes the problem for me.
>> >
>> >
>> >>    [ 1163.411526] cx18-0: Configured audio system:   BTSC
>> >>    [ 1163.411529] cx18-0: Specified audio input:     Tuner (In8)
>> >>    [ 1163.411532] cx18-0: Preferred audio mode:      stereo
>> >>    [ 1163.412726] cs5345 2-004c: Input:  1
>> >>    [ 1163.412729] cs5345 2-004c: Volume: 0 dB
>> >>    [ 1163.412733] tda9887 3-0043: Data bytes: b=0x14 c=0x30 e=0x44
>> >>    [ 1163.412737] tuner 3-0061: Tuner mode:      analog TV
>> >>    [ 1163.412740] tuner 3-0061: Frequency:       77.25 MHz
>> >>    [ 1163.412743] tuner 3-0061: Standard:        0x0000b000
>> >>    [ 1163.412747] cx18-0: Video Input: Tuner 1
>> >>    [ 1163.412749] cx18-0: Audio Input: Tuner 1
>> >>    [ 1163.412752] cx18-0: GPIO:  direction 0x00003001, value 0x00003001
>> >>    [ 1163.412755] cx18-0: Tuner: TV
>> >>    [ 1163.412758] cx18-0: Stream: MPEG-2 Program Stream
>> >>    [ 1163.412761] cx18-0: VBI Format: No VBI
>> >>    [ 1163.412764] cx18-0: Video:  720x480, 30 fps
>> >>    [ 1163.412767] cx18-0: Video:  MPEG-2, 4x3, Variable Bitrate,
>> >> 4500000, Peak 6000000
>> >>    [ 1163.412772] cx18-0: Video:  GOP Size 15, 2 B-Frames, GOP Closure
>> >>    [ 1163.412776] cx18-0: Audio:  32 kHz, MPEG-1/2 Layer II, 384 kbps,
>> >> Stereo, No Emphasis, No CRC
>> >>    [ 1163.412781] cx18-0: Spatial Filter:  Manual, Luma 1D Horizontal,
>> >> Chroma 1D Horizontal, 0
>> >>    [ 1163.412785] cx18-0: Temporal Filter: Manual, 8
>> >>    [ 1163.412788] cx18-0: Median Filter:   Off, Luma [0, 255], Chroma [0, 
>> >> 255]
>> >>    [ 1163.412791] cx18-0: Status flags: 0x00200001
>> >>    [ 1163.412794] cx18-0: Stream encoder MPEG: status 0x0000, 0% of
>> >> 2016 KiB (63 buffers) in use
>> >>    [ 1163.412798] cx18-0: Stream encoder YUV: status 0x0000, 0% of
>> >> 2048 KiB (16 buffers) in use
>> >>    [ 1163.412802] cx18-0: Stream encoder PCM audio: status 0x0000, 0%
>> >> of 1008 KiB (63 buffers) in use
>> >>    [ 1163.412806] cx18-0: Read MPEG/VBI: 8210432/0 bytes
>> >>    [ 1163.412809] cx18-0: ==================  END STATUS CARD #0
>> >> ==================
>> >>
>> >> The odd thing from this status is that the audio is muted and it stays
>> >> muted even when I run  v4l2-ctl -c mute=0.
>> >
>> > The audio microcontroller is free to muck with the mute control if it
>> > thinks the audio on the tuner SIF has changed.
>> >
>> > Regards,
>> > Andy
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > ivtv-users mailing list
>> > [email protected]
>> > http://ivtvdriver.org/mailman/listinfo/ivtv-users
>> >
>>
>>
>>
>
>
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users
>



-- 
Richard

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

Reply via email to