Hi,
I now got video on my PVR 150 MCE NTSC with tuner type 47. It isn't
clear image but there is color video. My previous post doesn't seem to
get posted due to patch > 50KB. Here is the change that I added to make
it work. I applied all the patches suggested in the previous email of
this thread. Then changed the file cx25840-driver.c for "case
CX25840_TUNER:" below after reading the cx25840 data sheet. Later, I
might try to see if I can get a smaller patch.
Here are the changes:
1. Kernel 2.6.11-rc4
2. latest v4l
3. amd64 patch
4. change in cx25840-driver as below
case CX25840_TUNER: {
u8 seq[]={
CX25840_TAG('T','u','n','e','r','
',cardtype==0?'1':'5',cardtype==0?'5':'0','0'),
CX25840_SET_START_MICROCNTL(0x0000), // FW stop.
CX25840_SET_VD_SOFT_RST(0x0001), // Assert video reset
CX25840_SET_SOFT_RESET(0x0001), // Assert soft reset
CX25840_EXECUTE,
CX25840_SET_CH_SEL_ADC2(0x0001),
CX25840_SET_DUAL_MODE_ADC2(0x0000),
CX25840_SET_CH_1__SOURCE(cardtype==2?0x0001:0x0006),
CX25840_SET_CH_2__SOURCE(0x0003),
CX25840_SET_CH_3__SOURCE(cardtype==0?0x0001:0x0000), //
1 for 150, 0 for 500
CX25840_SET_CLAMP_SEL_CH1(0x0000),
CX25840_SET_CLAMP_SEL_CH2(0x0001),
CX25840_SET_CLAMP_SEL_CH3(0x0001),
CX25840_SET_HALF_BW_CH2(0x0000),
CX25840_SET_HALF_BW_CH3(0x0000),
CX25840_SET_DROOP_COMP_CH3(0x0000),
CX25840_SET_DROOP_COMP_CH2(0x0000),
CX25840_SET_CLAMP_EN_CH3(0x0000),
CX25840_SET_CLAMP_EN_CH2(0x0000),
CX25840_SET_VGA_SEL_CH3(0x0000),
CX25840_SET_VGA_SEL_CH1(0x0000),
CX25840_SET_AFD_NTSC_SEL(0x0000),
CX25840_SET_ACFG_DIS(0x0001),
CX25840_SET_SQ_PIXEL(0x0001),
CX25840_SET_VID_FMT_SEL(0x0001),
CX25840_SET_CAGCEN(0x0000),
CX25840_SET_CKILLEN(0x0001),
CX25840_SET_INPUT_MODE(0x0001),
CX25840_SET_CKILL_MODE(0x0001),
CX25840_SET_COMB_NOTCH_MODE(0x0002),
CX25840_SET_BLUE_FIELD_EN(0x0001),
CX25840_SET_ANC_DATA_EN(0x0001),
CX25840_SET_AUX_PLL_POST(0x0018),
CX25840_SET_AUD_STANDARD(audiofmt), // Force
auto-detect of audio
CX25840_SET_AUD_MODE_AUD_SYSTEM(0x000F), // Force auto-detect
of audio
CX25840_SET_PREF_MODE(0x0004), // Preferred audio
mode is stereo
CX25840_SET_MUTE_NO_PREF_MODE(0x0000), // Don't mute if
preferred output unavailable
CX25840_SET_PATH1_SEL_CTL(state->norm!=VIDEO_MODE_NTSC||cardtype==2?0x00
00:0x0002), // Set the audio source
CX25840_SET_SRC3_PHASE_INC(41942880/freq_out),
CX25840_SET_SOFT1_MUTE_EN(0x0001),
CX25840_SET_SRC1_MUTE_EN(0x0000),
CX25840_SET_SA_MUTE_EN(0x0000),
CX25840_SET_PAR_MUTE_EN(0x0001),
CX25840_SET_AC97_MUTE_EN(0x0001),
CX25840_EXECUTE,
CX25840_SET_SOFT_RESET(0x0000), // Deassert soft reset
CX25840_SET_VD_SOFT_RST(0x0000), // Deassert video reset
CX25840_SET_START_MICROCNTL(0x0001), // FW Start
CX25840_EXECUTE,
CX25840_END};
setting_sequencer(client, seq);
break;
}
-Loc
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel