* [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
@ 2008-09-17 22:45 Tim Lucas
2008-09-19 6:53 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-17 22:45 UTC (permalink / raw)
To: linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 10704 bytes --]
Please excuse my previous message. I hit the send button too early.
OK, so I am going to take the advice of others and be persistant. I am
trying to add analog support for the
DViCO FusionHDTV7 Dual Express by working with the current code for the
HVR-1500. Loading the HVR-1500 driver doesn't work. I have thoughts about
the dmesg output.
[ 11.088311] CORE cx23885[0]: subsystem: 18ac:d618, board: Hauppauge
WinTV-HVR1500 [card=6,insmod option]
[ 11.224568] cx23885[0]: i2c bus 0 registered
[ 11.224609] cx23885[0]: i2c bus 1 registered
[ 11.224632] cx23885[0]: i2c bus 2 registered
[ 11.251024] tveeprom 2-0050: Encountered bad packet header [ff].
Corrupt or not a Hauppauge eeprom.
[ 11.251026] cx23885[0]: warning: unknown hauppauge model #0
[ 11.251027] cx23885[0]: hauppauge eeprom: model=0
This makes sense because it is not a hauppauge card, but I think it might be
a harmless warning.
[ 11.268639] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
[ 11.283305] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
[ 11.285887] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
[ 11.288377] cx23885[0]/0: registered device video0 [v4l2]
[ 11.288653] cx23885[0]/1: registered ALSA audio device
[ 11.288658] tuner' 3-0064: tuner type not set
2-0064 and 3-0064 are probably the dual digital tuners. 3-0064 tuner type
is not set because the HVR1500 card
is a single tuner card and so it only sets one tuner. I am guessing that
cx25840' 4-0044 has something to
do with the analog support.
[ 11.292131] firmware: requesting v4l-cx23885-avcore-01.fw
[ 11.310299] cx25840' 4-0044: unable to open
firmware v4l-cx23885-avcore-01.fw
Why is it trying to load v4l-cx23885-avcore-01.fw? I have the xc5000
firmware installed from
http://www.steventoth.net/linux/xc5000/
because that is the correct firmware for my card.
[ 11.324551] cx23885[0]: cx23885 based dvb card
[ 11.348947] cx23885[0]: frontend initialization failed
[ 11.348949] cx23885_dvb_register() dvb_register failed err = -1
[ 11.348951] cx23885_dev_setup() Failed to register dvb on VID_C
[ 11.348955] cx23885_dev_checkrevision() Hardware revision = 0xb0
Is this error a big deal or is it fatal?
Next I tried to go out and find v4l-cx23885-avcore-01.fw which was at
<http://www.steventoth.net/linux/hvr1800/>
http://www.steventoth.net/linux/hvr1800/
I loaded this firmware too. Results are the same until:
[ 11.254199] firmware: requesting v4l-cx23885-avcore-01.fw
[ 11.876323] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
(16382 bytes)
[ 11.890444] cx23885[0]: cx23885 based dvb card
[ 11.920769] cx23885[0]: frontend initialization failed
[ 11.920771] cx23885_dvb_register() dvb_register failed err = -1
[ 11.920773] cx23885_dev_setup() Failed to register dvb on VID_C
[ 11.920777] cx23885_dev_checkrevision() Hardware revision = 0xb0
So it loaded the firmware, but it didn't help with tuning channels. Next
attempt was to copy the relevant code from the HVR-1500 section to the
FusionHDTV7 Dual Express section. This was just a few lines in
/linux/drivers/media/video/cx23885/cx23885-cards.c
that you will see a little later in this message. The dmesg output was
[ 11.613432] cx23885 0000:08:00.0: PCI INT A -> Link[APC6] -> GSI 16
(level, low) -> IRQ
16
[ 11.613491] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
FusionHDTV7 Dual Expres
s [card=10,autodetected]
[ 11.752552] cx23885[0]: i2c bus 0 registered
[ 11.752824] cx23885[0]: i2c bus 1 registered
[ 11.752850] cx23885[0]: i2c bus 2 registered
[ 11.806061] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
[ 11.815419] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
[ 11.818004] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
[ 11.820086] cx23885[0]/0: registered device video0 [v4l2]
[ 11.820356] cx23885[0]/1: registered ALSA audio device
[ 11.820360] tuner' 3-0064: tuner type not set
[ 11.833710] firmware: requesting v4l-cx23885-avcore-01.fw
[ 12.504759] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
(16382 bytes)
[ 12.518893] cx23885[0]: cx23885 based dvb card
[ 12.694643] xc5000: Successfully identified at address 0x64
[ 12.694645] xc5000: Firmware has not been loaded previously
[ 12.694651] DVB: registering new adapter (cx23885[0])
[ 12.694654] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
Frontend)...
[ 12.696204] cx23885[0]: cx23885 based dvb card
[ 12.741530] xc5000: Successfully identified at address 0x64
[ 12.741531] xc5000: Firmware has not been loaded previously
[ 12.741533] DVB: registering new adapter (cx23885[0])
[ 12.741535] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
Frontend)...
[ 12.743028] cx23885_dev_checkrevision() Hardware revision = 0xb0
[ 12.743034] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
latency: 0, mmio: 0xf
d800000
[ 12.743039] cx23885 0000:08:00.0: setting latency timer to 64
I don't get dvb_register() or dev_checkrevision() errors, but I still can't
tune channels. I suspect that
I have loaded the digital stuff, but the analog stuff hasn't been loaded
successfully.
Were there things that were HVR1500 specific? I took a look at
/linux/drivers/media/video/cx23885/cx23885-cards.c:
[CX23885_BOARD_HAUPPAUGE_HVR1500] = {
.name = "Hauppauge WinTV-HVR1500",
// The section for my card is
[CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP] = {
.name = "DViCO FusionHDTV7 Dual Express",
.porta = CX23885_ANALOG_VIDEO,
// I added the following for the dvico card
.portb = CX23885_MPEG_DVB,
// back to original code
.portc = CX23885_MPEG_DVB,
// the following is probably not compatible with the dvico card
.tuner_type = TUNER_XC2028,
.tuner_addr = 0x61, /* 0xc2 >> 1 */
// I tried replacing it with the following code. It is a guess, but the
following dmesg makes it seem like a good guess.
.tuner_type = TUNER_XC5000,
.tuner_addr = 0x64, /* 0xc2 >> 1 */
// Why is the stuff below referring to 25480? Probably because that has
analog support.
// Is that why it asks for the v4l-cx23885-avcore-01.fw firmware?
// Why are there three different versions below? I would think that TV,
Composite and SVideo are outputs,
// but the mythtv tuning setup makes it seem like they are input.
.input = {{
.type = CX23885_VMUX_TELEVISION,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN5_CH2 |
CX25840_VIN2_CH1,
.gpio0 = 0,
}, {
.type = CX23885_VMUX_COMPOSITE1,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN4_CH2 |
CX25840_VIN6_CH1,
.gpio0 = 0,
}, {
.type = CX23885_VMUX_SVIDEO,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN4_CH2 |
CX25840_VIN8_CH1 |
CX25840_SVIDEO_ON,
.gpio0 = 0,
} },
With those minor changes I tried loading the cx23885 module again.
[ 10.977705] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
FusionHDTV7 Dual Express [card=10,autodetected]
[ 11.116725] cx23885[0]: i2c bus 0 registered
[ 11.116738] cx23885[0]: i2c bus 1 registered
[ 11.116752] cx23885[0]: i2c bus 2 registered
[ 11.158834] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
[ 11.186669] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
[ 11.228894] xc5000: Successfully identified at address 0x64
[ 11.228896] xc5000: Firmware has not been loaded previously
[ 11.229567] xc5000: waiting for firmware upload (dvb-fe-xc5000-1.1.fw)...
[ 11.229570] firmware: requesting dvb-fe-xc5000-1.1.fw
[ 11.301703] xc5000: firmware read 12332 bytes.
[ 11.301706] xc5000: firmware upload
[ 11.301708] xc5000: no tuner reset callback function, fatal
[ 13.766578] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
[ 13.767308] xc5000: Successfully identified at address 0x64
[ 13.767309] xc5000: Firmware has not been loaded previously
[ 13.767979] xc5000: waiting for firmware upload (dvb-fe-xc5000-1.1.fw)...
[ 13.767980] firmware: requesting dvb-fe-xc5000-1.1.fw
[ 13.769073] xc5000: firmware read 12332 bytes.
[ 13.769074] xc5000: firmware upload
[ 13.769075] xc5000: no tuner reset callback function, fatal
[ 16.238788] xc5000: Successfully identified at address 0x64
[ 16.238790] xc5000: Firmware has been loaded previously
[ 17.384118] cx23885[0]/0: registered device video0 [v4l2]
[ 17.384429] cx23885[0]/1: registered ALSA audio device
[ 19.479469] firmware: requesting v4l-cx23885-avcore-01.fw
[ 20.084869] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
(16382 bytes)
Why is this still asking for v4l-cx23885-avcore-01.fw firmware? I thought
that
my alterations would have changed that? I could remove it, but
I bet it would still be asking for it. It seems to load the xc5000
over and over again so I am guessing my changes were wrong.
[ 20.098995] cx23885[0]: cx23885 based dvb card
[ 20.178461] xc5000: Successfully identified at address 0x64
[ 20.178462] xc5000: Firmware has been loaded previously
[ 20.178470] DVB: registering new adapter (cx23885[0])
[ 20.178474] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
Frontend)...
[ 20.180029] cx23885[0]: cx23885 based dvb card
[ 20.225399] xc5000: Successfully identified at address 0x64
[ 20.225400] xc5000: Firmware has been loaded previously
[ 20.225403] DVB: registering new adapter (cx23885[0])
[ 20.225404] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
Frontend)...
[ 20.226909] cx23885_dev_checkrevision() Hardware revision = 0xb0
[ 20.226915] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
latency: 0, mmio: 0xf
d800000
[ 20.226920] cx23885 0000:08:00.0: setting latency timer to 64
Again I don't get dvb_register() or dev_checkrevision() errors, but I still
can't tune channels.
What should go here for my card?
.tuner_type = ?
.tuner_addr = ?
As you can see I have made several attempts to dive into the code and
understand the error messages. I have tried to identify problem areas so
that someone more familiar with the code could possibly see what the errors
may be.
--Tim
[-- Attachment #1.2: Type: text/html, Size: 16393 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-17 22:45 [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one) Tim Lucas
@ 2008-09-19 6:53 ` Steven Toth
2008-09-24 3:45 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Steven Toth @ 2008-09-19 6:53 UTC (permalink / raw)
To: Tim Lucas; +Cc: linux dvb
Tim Lucas wrote:
> Please excuse my previous message. I hit the send button too early.
>
> OK, so I am going to take the advice of others and be persistant. I am
> trying to add analog support for the
> DViCO FusionHDTV7 Dual Express by working with the current code for the
> HVR-1500. Loading the HVR-1500 driver doesn't work. I have thoughts
> about the dmesg output.
>
> [ 11.088311] CORE cx23885[0]: subsystem: 18ac:d618, board: Hauppauge
> WinTV-HVR1500 [card=6,insmod option]
> [ 11.224568] cx23885[0]: i2c bus 0 registered
> [ 11.224609] cx23885[0]: i2c bus 1 registered
> [ 11.224632] cx23885[0]: i2c bus 2 registered
> [ 11.251024] tveeprom 2-0050: Encountered bad packet header [ff].
> Corrupt or not a Hauppauge eeprom.
> [ 11.251026] cx23885[0]: warning: unknown hauppauge model #0
> [ 11.251027] cx23885[0]: hauppauge eeprom: model=0
>
> This makes sense because it is not a hauppauge card, but I think it
> might be a harmless warning.
You can ignore the eeprom error, it is not effecting your tests.
>
> [ 11.268639] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
> [ 11.283305] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
> [ 11.285887] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
> [ 11.288377] cx23885[0]/0: registered device video0 [v4l2]
> [ 11.288653] cx23885[0]/1: registered ALSA audio device
> [ 11.288658] tuner' 3-0064: tuner type not set
>
> 2-0064 and 3-0064 are probably the dual digital tuners. 3-0064 tuner
> type is not set because the HVR1500 card
> is a single tuner card and so it only sets one tuner. I am guessing
> that cx25840' 4-0044 has something to
> do with the analog support.
>
> [ 11.292131] firmware: requesting v4l-cx23885-avcore-01.fw
> [ 11.310299] cx25840' 4-0044: unable to open
> firmware v4l-cx23885-avcore-01.fw
>
> Why is it trying to load v4l-cx23885-avcore-01.fw? I have the xc5000
> firmware installed from
> http://www.steventoth.net/linux/xc5000/
> because that is the correct firmware for my card.
If you specify analog .porta in the card struct, it has to load the
analog audio encoder firmware. This is why this firmware is loaded.
>
> [ 11.324551] cx23885[0]: cx23885 based dvb card
> [ 11.348947] cx23885[0]: frontend initialization failed
> [ 11.348949] cx23885_dvb_register() dvb_register failed err = -1
> [ 11.348951] cx23885_dev_setup() Failed to register dvb on VID_C
> [ 11.348955] cx23885_dev_checkrevision() Hardware revision = 0xb0
>
> Is this error a big deal or is it fatal?
remove the portb and portc entries in your newly defined cards struct,
these errors will be removed.
Focus on fixing analog first, enabling portb and portc only complicates
things.
>
> Next I tried to go out and find v4l-cx23885-avcore-01.fw which was at
> <http://www.steventoth.net/linux/hvr1800/>
> http://www.steventoth.net/linux/hvr1800/
>
> I loaded this firmware too. Results are the same until:
> [ 11.254199] firmware: requesting v4l-cx23885-avcore-01.fw
> [ 11.876323] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
> (16382 bytes)
> [ 11.890444] cx23885[0]: cx23885 based dvb card
> [ 11.920769] cx23885[0]: frontend initialization failed
> [ 11.920771] cx23885_dvb_register() dvb_register failed err = -1
> [ 11.920773] cx23885_dev_setup() Failed to register dvb on VID_C
> [ 11.920777] cx23885_dev_checkrevision() Hardware revision = 0xb0
>
> So it loaded the firmware, but it didn't help with tuning channels.
> Next attempt was to copy the relevant code from the HVR-1500 section to
> the FusionHDTV7 Dual Express section. This was just a few lines in
> /linux/drivers/media/video/cx23885/cx23885-cards.c
> that you will see a little later in this message. The dmesg output was
>
> [ 11.613432] cx23885 0000:08:00.0: PCI INT A -> Link[APC6] -> GSI 16
> (level, low) -> IRQ
> 16
> [ 11.613491] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
> FusionHDTV7 Dual Expres
> s [card=10,autodetected]
> [ 11.752552] cx23885[0]: i2c bus 0 registered
> [ 11.752824] cx23885[0]: i2c bus 1 registered
> [ 11.752850] cx23885[0]: i2c bus 2 registered
> [ 11.806061] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
> [ 11.815419] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
> [ 11.818004] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
> [ 11.820086] cx23885[0]/0: registered device video0 [v4l2]
> [ 11.820356] cx23885[0]/1: registered ALSA audio device
> [ 11.820360] tuner' 3-0064: tuner type not set
> [ 11.833710] firmware: requesting v4l-cx23885-avcore-01.fw
> [ 12.504759] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
> (16382 bytes)
> [ 12.518893] cx23885[0]: cx23885 based dvb card
> [ 12.694643] xc5000: Successfully identified at address 0x64
> [ 12.694645] xc5000: Firmware has not been loaded previously
> [ 12.694651] DVB: registering new adapter (cx23885[0])
> [ 12.694654] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
> Frontend)...
> [ 12.696204] cx23885[0]: cx23885 based dvb card
> [ 12.741530] xc5000: Successfully identified at address 0x64
> [ 12.741531] xc5000: Firmware has not been loaded previously
> [ 12.741533] DVB: registering new adapter (cx23885[0])
> [ 12.741535] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
> Frontend)...
> [ 12.743028] cx23885_dev_checkrevision() Hardware revision = 0xb0
> [ 12.743034] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
> latency: 0, mmio: 0xf
> d800000
> [ 12.743039] cx23885 0000:08:00.0: setting latency timer to 64
>
> I don't get dvb_register() or dev_checkrevision() errors, but I still
> can't tune channels. I suspect that
> I have loaded the digital stuff, but the analog stuff hasn't been loaded
> successfully.
Use tvtime and switch he input to svideo or composite, does this work?
>
> Were there things that were HVR1500 specific? I took a look at
> /linux/drivers/media/video/cx23885/cx23885-cards.c:
>
> [CX23885_BOARD_HAUPPAUGE_HVR1500] = {
> .name = "Hauppauge WinTV-HVR1500",
> // The section for my card is
> [CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP] = {
> .name = "DViCO FusionHDTV7 Dual Express",
>
> .porta = CX23885_ANALOG_VIDEO,
> // I added the following for the dvico card
> .portb = CX23885_MPEG_DVB,
remove the portb definition for the time being.
> // back to original code
> .portc = CX23885_MPEG_DVB,
> // the following is probably not compatible with the dvico card
> .tuner_type = TUNER_XC2028,
> .tuner_addr = 0x61, /* 0xc2 >> 1 */
Acccording to the logs, shouldn't this be 0xc8 >> 1? or 0xc4 >> 1?
> // I tried replacing it with the following code. It is a guess, but the
> following dmesg makes it seem like a good guess.
> .tuner_type = TUNER_XC5000,
> .tuner_addr = 0x64, /* 0xc2 >> 1 */
> // Why is the stuff below referring to 25480? Probably because that
> has analog support.
Correct.
> // Is that why it asks for the v4l-cx23885-avcore-01.fw firmware?
Yes.
> // Why are there three different versions below? I would think that TV,
> Composite and SVideo are outputs,
One section for each available input. TVTuner, Composite and Svideo.
They configure the video mux to the correct signals are received by the
video hardware.
> // but the mythtv tuning setup makes it seem like they are input.
> .input = {{
> .type = CX23885_VMUX_TELEVISION,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN5_CH2 |
> CX25840_VIN2_CH1,
> .gpio0 = 0,
> }, {
> .type = CX23885_VMUX_COMPOSITE1,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN4_CH2 |
> CX25840_VIN6_CH1,
> .gpio0 = 0,
> }, {
> .type = CX23885_VMUX_SVIDEO,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN4_CH2 |
> CX25840_VIN8_CH1 |
> CX25840_SVIDEO_ON,
> .gpio0 = 0,
> } },
>
> With those minor changes I tried loading the cx23885 module again.
> [ 10.977705] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
> FusionHDTV7 Dual Express [card=10,autodetected]
> [ 11.116725] cx23885[0]: i2c bus 0 registered
> [ 11.116738] cx23885[0]: i2c bus 1 registered
> [ 11.116752] cx23885[0]: i2c bus 2 registered
> [ 11.158834] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
> [ 11.186669] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
> [ 11.228894] xc5000: Successfully identified at address 0x64
> [ 11.228896] xc5000: Firmware has not been loaded previously
> [ 11.229567] xc5000: waiting for firmware upload (dvb-fe-xc5000-1.1.fw)...
> [ 11.229570] firmware: requesting dvb-fe-xc5000-1.1.fw
> [ 11.301703] xc5000: firmware read 12332 bytes.
> [ 11.301706] xc5000: firmware upload
> [ 11.301708] xc5000: no tuner reset callback function, fatal
You need to modify the tuner_callback function to toggle the correct
GPIO and reset the tuner hardware, else you will get this error.
> [ 13.766578] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
> [ 13.767308] xc5000: Successfully identified at address 0x64
> [ 13.767309] xc5000: Firmware has not been loaded previously
> [ 13.767979] xc5000: waiting for firmware upload (dvb-fe-xc5000-1.1.fw)...
> [ 13.767980] firmware: requesting dvb-fe-xc5000-1.1.fw
> [ 13.769073] xc5000: firmware read 12332 bytes.
> [ 13.769074] xc5000: firmware upload
> [ 13.769075] xc5000: no tuner reset callback function, fatal
> [ 16.238788] xc5000: Successfully identified at address 0x64
> [ 16.238790] xc5000: Firmware has been loaded previously
> [ 17.384118] cx23885[0]/0: registered device video0 [v4l2]
> [ 17.384429] cx23885[0]/1: registered ALSA audio device
> [ 19.479469] firmware: requesting v4l-cx23885-avcore-01.fw
> [ 20.084869] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
> (16382 bytes)
>
> Why is this still asking for v4l-cx23885-avcore-01.fw firmware? I
> thought that
Because porta is defined as being an analog input.
> my alterations would have changed that? I could remove it, but
> I bet it would still be asking for it. It seems to load the xc5000
> over and over again so I am guessing my changes were wrong.
>
> [ 20.098995] cx23885[0]: cx23885 based dvb card
> [ 20.178461] xc5000: Successfully identified at address 0x64
> [ 20.178462] xc5000: Firmware has been loaded previously
> [ 20.178470] DVB: registering new adapter (cx23885[0])
> [ 20.178474] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
> Frontend)...
> [ 20.180029] cx23885[0]: cx23885 based dvb card
> [ 20.225399] xc5000: Successfully identified at address 0x64
> [ 20.225400] xc5000: Firmware has been loaded previously
> [ 20.225403] DVB: registering new adapter (cx23885[0])
> [ 20.225404] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
> Frontend)...
> [ 20.226909] cx23885_dev_checkrevision() Hardware revision = 0xb0
> [ 20.226915] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
> latency: 0, mmio: 0xf
> d800000
> [ 20.226920] cx23885 0000:08:00.0: setting latency timer to 64
>
> Again I don't get dvb_register() or dev_checkrevision() errors, but I
> still can't tune channels.
Try tvtime, and switch tvtime to use the composite or svideo inputs
connected to a video source. Does this help?
> What should go here for my card?
> .tuner_type = ?
> .tuner_addr = ?
>
> As you can see I have made several attempts to dive into the code and
> understand the error messages. I have tried to identify problem areas
> so that someone more familiar with the code could possibly see what the
> errors may be.
Good good. Disable all of the portb and portc code. Focus on getting
analog svideo or composite working first. After this the tuner changes
should be small.
Once analog is working correctly, digital can be enabled.
Thanks Tim,
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
[not found] <mailman.1.1221645602.2795.linux-dvb@linuxtv.org>
@ 2008-09-22 1:04 ` Craig Cook
2008-09-22 2:22 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Craig Cook @ 2008-09-22 1:04 UTC (permalink / raw)
To: linux-dvb
I am watching this development with great interest as well. My cable provider seems to send QAM 256 and ATSC signals to me. I can pick up some channels but am missing quite a few.
I have setup a wiki page for the card:
http://linuxtv.org/wiki/index.php/DViCO_FusionHDTV7_Dual_Express
I can't add the regspy output since I run windows in a VM.
I'm happy to test anything but I do not have the skills to help develop code for it.
Thanks for everyones efforts.
Craig
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-22 1:04 ` Craig Cook
@ 2008-09-22 2:22 ` Steven Toth
2008-09-22 12:28 ` Craig Cook
0 siblings, 1 reply; 15+ messages in thread
From: Steven Toth @ 2008-09-22 2:22 UTC (permalink / raw)
To: cncook001; +Cc: linux-dvb
Craig Cook wrote:
> I am watching this development with great interest as well. My cable provider seems to send QAM 256 and ATSC signals to me. I can pick up some channels but am missing quite a few.
>
> I have setup a wiki page for the card:
> http://linuxtv.org/wiki/index.php/DViCO_FusionHDTV7_Dual_Express
Just FYI.
The FusionHDTV7 Dual Express is working very well for me, in both ATSC
and QAM modes. Analog is not supported.
Check your signal levels if your missing channels, you could be too low
or too high.
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-22 2:22 ` Steven Toth
@ 2008-09-22 12:28 ` Craig Cook
0 siblings, 0 replies; 15+ messages in thread
From: Craig Cook @ 2008-09-22 12:28 UTC (permalink / raw)
To: linux-dvb
> The FusionHDTV7 Dual Express is working very well for me,
> in both ATSC
> and QAM modes. Analog is not supported.
>
Duh! I meant to say analog. I get some channels on a 7+yr old CRT TV that I do not get on my Fusion card.
Craig
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-19 6:53 ` Steven Toth
@ 2008-09-24 3:45 ` Tim Lucas
2008-09-24 3:50 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-24 3:45 UTC (permalink / raw)
To: Steven Toth, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 15600 bytes --]
On Thu, Sep 18, 2008 at 11:53 PM, Steven Toth <stoth@linuxtv.org> wrote:
> Tim Lucas wrote:
>
>> Please excuse my previous message. I hit the send button too early.
>>
>> OK, so I am going to take the advice of others and be persistant. I am
>> trying to add analog support for the
>> DViCO FusionHDTV7 Dual Express by working with the current code for the
>> HVR-1500. Loading the HVR-1500 driver doesn't work. I have thoughts about
>> the dmesg output.
>>
>> [ 11.088311] CORE cx23885[0]: subsystem: 18ac:d618, board: Hauppauge
>> WinTV-HVR1500 [card=6,insmod option]
>> [ 11.224568] cx23885[0]: i2c bus 0 registered
>> [ 11.224609] cx23885[0]: i2c bus 1 registered
>> [ 11.224632] cx23885[0]: i2c bus 2 registered
>> [ 11.251024] tveeprom 2-0050: Encountered bad packet header [ff].
>> Corrupt or not a Hauppauge eeprom.
>> [ 11.251026] cx23885[0]: warning: unknown hauppauge model #0
>> [ 11.251027] cx23885[0]: hauppauge eeprom: model=0
>>
>> This makes sense because it is not a hauppauge card, but I think it might
>> be a harmless warning.
>>
>
> You can ignore the eeprom error, it is not effecting your tests.
>
>
>> [ 11.268639] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
>> [ 11.283305] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
>> [ 11.285887] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
>> [ 11.288377] cx23885[0]/0: registered device video0 [v4l2]
>> [ 11.288653] cx23885[0]/1: registered ALSA audio device
>> [ 11.288658] tuner' 3-0064: tuner type not set
>>
>> 2-0064 and 3-0064 are probably the dual digital tuners. 3-0064 tuner type
>> is not set because the HVR1500 card
>> is a single tuner card and so it only sets one tuner. I am guessing that
>> cx25840' 4-0044 has something to
>> do with the analog support.
>> [ 11.292131] firmware: requesting v4l-cx23885-avcore-01.fw
>> [ 11.310299] cx25840' 4-0044: unable to open firmware
>> v4l-cx23885-avcore-01.fw
>>
>> Why is it trying to load v4l-cx23885-avcore-01.fw? I have the xc5000
>> firmware installed from
>> http://www.steventoth.net/linux/xc5000/
>> because that is the correct firmware for my card.
>>
>
> If you specify analog .porta in the card struct, it has to load the analog
> audio encoder firmware. This is why this firmware is loaded.
>
>>
>> [ 11.324551] cx23885[0]: cx23885 based dvb card
>> [ 11.348947] cx23885[0]: frontend initialization failed
>> [ 11.348949] cx23885_dvb_register() dvb_register failed err = -1
>> [ 11.348951] cx23885_dev_setup() Failed to register dvb on VID_C
>> [ 11.348955] cx23885_dev_checkrevision() Hardware revision = 0xb0
>>
>> Is this error a big deal or is it fatal?
>>
>
> remove the portb and portc entries in your newly defined cards struct,
> these errors will be removed.
>
> Focus on fixing analog first, enabling portb and portc only complicates
> things.
>
>
>
>> Next I tried to go out and find v4l-cx23885-avcore-01.fw which was at <
>> http://www.steventoth.net/linux/hvr1800/>
>> http://www.steventoth.net/linux/hvr1800/
>>
>> I loaded this firmware too. Results are the same until:
>> [ 11.254199] firmware: requesting v4l-cx23885-avcore-01.fw
>> [ 11.876323] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
>> (16382 bytes)
>> [ 11.890444] cx23885[0]: cx23885 based dvb card
>> [ 11.920769] cx23885[0]: frontend initialization failed
>> [ 11.920771] cx23885_dvb_register() dvb_register failed err = -1
>> [ 11.920773] cx23885_dev_setup() Failed to register dvb on VID_C
>> [ 11.920777] cx23885_dev_checkrevision() Hardware revision = 0xb0
>>
>> So it loaded the firmware, but it didn't help with tuning channels. Next
>> attempt was to copy the relevant code from the HVR-1500 section to the
>> FusionHDTV7 Dual Express section. This was just a few lines in
>> /linux/drivers/media/video/cx23885/cx23885-cards.c that you will see a
>> little later in this message. The dmesg output was
>>
>> [ 11.613432] cx23885 0000:08:00.0: PCI INT A -> Link[APC6] -> GSI 16
>> (level, low) -> IRQ
>> 16
>> [ 11.613491] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
>> FusionHDTV7 Dual Expres
>> s [card=10,autodetected]
>> [ 11.752552] cx23885[0]: i2c bus 0 registered
>> [ 11.752824] cx23885[0]: i2c bus 1 registered
>> [ 11.752850] cx23885[0]: i2c bus 2 registered
>> [ 11.806061] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
>> [ 11.815419] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
>> [ 11.818004] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
>> [ 11.820086] cx23885[0]/0: registered device video0 [v4l2]
>> [ 11.820356] cx23885[0]/1: registered ALSA audio device
>> [ 11.820360] tuner' 3-0064: tuner type not set
>> [ 11.833710] firmware: requesting v4l-cx23885-avcore-01.fw
>> [ 12.504759] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
>> (16382 bytes)
>> [ 12.518893] cx23885[0]: cx23885 based dvb card
>> [ 12.694643] xc5000: Successfully identified at address 0x64
>> [ 12.694645] xc5000: Firmware has not been loaded previously
>> [ 12.694651] DVB: registering new adapter (cx23885[0])
>> [ 12.694654] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
>> Frontend)...
>> [ 12.696204] cx23885[0]: cx23885 based dvb card
>> [ 12.741530] xc5000: Successfully identified at address 0x64
>> [ 12.741531] xc5000: Firmware has not been loaded previously
>> [ 12.741533] DVB: registering new adapter (cx23885[0])
>> [ 12.741535] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
>> Frontend)...
>> [ 12.743028] cx23885_dev_checkrevision() Hardware revision = 0xb0
>> [ 12.743034] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
>> latency: 0, mmio: 0xf
>> d800000
>> [ 12.743039] cx23885 0000:08:00.0: setting latency timer to 64
>>
>> I don't get dvb_register() or dev_checkrevision() errors, but I still
>> can't tune channels. I suspect that
>> I have loaded the digital stuff, but the analog stuff hasn't been loaded
>> successfully.
>>
>
> Use tvtime and switch he input to svideo or composite, does this work?
>
>
>> Were there things that were HVR1500 specific? I took a look at
>> /linux/drivers/media/video/cx23885/cx23885-cards.c:
>>
>> [CX23885_BOARD_HAUPPAUGE_HVR1500] = {
>> .name = "Hauppauge WinTV-HVR1500",
>> // The section for my card is
>> [CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP] = {
>> .name = "DViCO FusionHDTV7 Dual Express",
>> .porta = CX23885_ANALOG_VIDEO,
>> // I added the following for the dvico card .portb =
>> CX23885_MPEG_DVB,
>>
>
> remove the portb definition for the time being.
>
> // back to original code
>> .portc = CX23885_MPEG_DVB,
>> // the following is probably not compatible with the dvico card
>> .tuner_type = TUNER_XC2028,
>> .tuner_addr = 0x61, /* 0xc2 >> 1 */
>>
>
> Acccording to the logs, shouldn't this be 0xc8 >> 1? or 0xc4 >> 1?
>
> // I tried replacing it with the following code. It is a guess, but the
>> following dmesg makes it seem like a good guess.
>> .tuner_type = TUNER_XC5000,
>> .tuner_addr = 0x64, /* 0xc2 >> 1 */
>> // Why is the stuff below referring to 25480? Probably because that has
>> analog support.
>>
>
> Correct.
>
> // Is that why it asks for the v4l-cx23885-avcore-01.fw firmware?
>>
>
> Yes.
>
> // Why are there three different versions below? I would think that TV,
>> Composite and SVideo are outputs,
>>
>
> One section for each available input. TVTuner, Composite and Svideo. They
> configure the video mux to the correct signals are received by the video
> hardware.
>
>
> // but the mythtv tuning setup makes it seem like they are input.
>> .input = {{
>> .type = CX23885_VMUX_TELEVISION,
>> .vmux = CX25840_VIN7_CH3 |
>> CX25840_VIN5_CH2 |
>> CX25840_VIN2_CH1,
>> .gpio0 = 0,
>> }, {
>> .type = CX23885_VMUX_COMPOSITE1,
>> .vmux = CX25840_VIN7_CH3 |
>> CX25840_VIN4_CH2 |
>> CX25840_VIN6_CH1,
>> .gpio0 = 0,
>> }, {
>> .type = CX23885_VMUX_SVIDEO,
>> .vmux = CX25840_VIN7_CH3 |
>> CX25840_VIN4_CH2 |
>> CX25840_VIN8_CH1 |
>> CX25840_SVIDEO_ON,
>> .gpio0 = 0,
>> } },
>>
>> With those minor changes I tried loading the cx23885 module again.
>> [ 10.977705] CORE cx23885[0]: subsystem: 18ac:d618, board: DViCO
>> FusionHDTV7 Dual Express [card=10,autodetected]
>> [ 11.116725] cx23885[0]: i2c bus 0 registered
>> [ 11.116738] cx23885[0]: i2c bus 1 registered
>> [ 11.116752] cx23885[0]: i2c bus 2 registered
>> [ 11.158834] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
>> [ 11.186669] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
>> [ 11.228894] xc5000: Successfully identified at address 0x64
>> [ 11.228896] xc5000: Firmware has not been loaded previously
>> [ 11.229567] xc5000: waiting for firmware upload
>> (dvb-fe-xc5000-1.1.fw)...
>> [ 11.229570] firmware: requesting dvb-fe-xc5000-1.1.fw
>> [ 11.301703] xc5000: firmware read 12332 bytes.
>> [ 11.301706] xc5000: firmware upload
>> [ 11.301708] xc5000: no tuner reset callback function, fatal
>>
>
> You need to modify the tuner_callback function to toggle the correct GPIO
> and reset the tuner hardware, else you will get this error.
>
> [ 13.766578] tuner' 3-0064: chip found @ 0xc8 (cx23885[0])
>> [ 13.767308] xc5000: Successfully identified at address 0x64
>> [ 13.767309] xc5000: Firmware has not been loaded previously
>> [ 13.767979] xc5000: waiting for firmware upload
>> (dvb-fe-xc5000-1.1.fw)...
>> [ 13.767980] firmware: requesting dvb-fe-xc5000-1.1.fw
>> [ 13.769073] xc5000: firmware read 12332 bytes.
>> [ 13.769074] xc5000: firmware upload
>> [ 13.769075] xc5000: no tuner reset callback function, fatal
>> [ 16.238788] xc5000: Successfully identified at address 0x64
>> [ 16.238790] xc5000: Firmware has been loaded previously
>> [ 17.384118] cx23885[0]/0: registered device video0 [v4l2]
>> [ 17.384429] cx23885[0]/1: registered ALSA audio device
>> [ 19.479469] firmware: requesting v4l-cx23885-avcore-01.fw
>> [ 20.084869] cx25840' 4-0044: loaded v4l-cx23885-avcore-01.fw firmware
>> (16382 bytes)
>>
>> Why is this still asking for v4l-cx23885-avcore-01.fw firmware? I thought
>> that
>>
>
> Because porta is defined as being an analog input.
>
> my alterations would have changed that? I could remove it, but
>> I bet it would still be asking for it. It seems to load the xc5000
>> over and over again so I am guessing my changes were wrong.
>>
>> [ 20.098995] cx23885[0]: cx23885 based dvb card
>> [ 20.178461] xc5000: Successfully identified at address 0x64
>> [ 20.178462] xc5000: Firmware has been loaded previously
>> [ 20.178470] DVB: registering new adapter (cx23885[0])
>> [ 20.178474] DVB: registering frontend 0 (Samsung S5H1411 QAM/8VSB
>> Frontend)...
>> [ 20.180029] cx23885[0]: cx23885 based dvb card
>> [ 20.225399] xc5000: Successfully identified at address 0x64
>> [ 20.225400] xc5000: Firmware has been loaded previously
>> [ 20.225403] DVB: registering new adapter (cx23885[0])
>> [ 20.225404] DVB: registering frontend 1 (Samsung S5H1411 QAM/8VSB
>> Frontend)...
>> [ 20.226909] cx23885_dev_checkrevision() Hardware revision = 0xb0
>> [ 20.226915] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
>> latency: 0, mmio: 0xf
>> d800000
>> [ 20.226920] cx23885 0000:08:00.0: setting latency timer to 64
>>
>> Again I don't get dvb_register() or dev_checkrevision() errors, but I
>> still can't tune channels.
>>
>
> Try tvtime, and switch tvtime to use the composite or svideo inputs
> connected to a video source. Does this help?
>
> What should go here for my card?
>> .tuner_type = ?
>> .tuner_addr = ?
>>
>> As you can see I have made several attempts to dive into the code and
>> understand the error messages. I have tried to identify problem areas so
>> that someone more familiar with the code could possibly see what the errors
>> may be.
>>
>
> Good good. Disable all of the portb and portc code. Focus on getting analog
> svideo or composite working first. After this the tuner changes should be
> small.
>
> Once analog is working correctly, digital can be enabled.
>
> Thanks Tim,
>
> - Steve
>
>
I followed you advice and changed the tuner to 0xc8 >> 1. I get a warning
about outdated support for tuners and a request for xc3028-v27.fw. I went
looking for the file, but could not find it. Any ideas? I still cannot
tune channels with tvtime. Thanks for your help. My dmesg output is below.
[ 11.066472] cx23885 driver version 0.0.1 loaded
[ 11.067254] ACPI: PCI Interrupt Link [APC6] enabled at IRQ 16
[ 11.067257] cx23885 0000:08:00.0: PCI INT A -> Link[APC6] -> GSI 16
(level, low) -> IRQ 16
[ 11.067327] CORE cx23885[0]: subsystem: 18ac:d618, board: Hauppauge
WinTV-HVR1500 [card=6,insmod option]
[ 11.176039] cx23885[0]: i2c bus 0 registered
[ 11.176063] cx23885[0]: i2c bus 1 registered
[ 11.176085] cx23885[0]: i2c bus 2 registered
[ 11.202476] tveeprom 2-0050: Encountered bad packet header [ff]. Corrupt
or not a Hauppauge eeprom.
[ 11.202479] cx23885[0]: warning: unknown hauppauge model #0
[ 11.202480] cx23885[0]: hauppauge eeprom: model=0
[ 11.210785] cx25840' 4-0044: cx25 0-21 found @ 0x88 (cx23885[0])
[ 11.236265] tuner' 2-0064: chip found @ 0xc8 (cx23885[0])
[ 11.298695] xc2028 2-0064: creating new instance
[ 11.298697] xc2028 2-0064: type set to XCeive xc2028/xc3028 tuner
[ 11.298699] tuner' 2-0064: ====================== WARNING!
======================
[ 11.298701] tuner' 2-0064: Support for tuners in i2c address range 0x64
thru 0x6f
[ 11.298702] tuner' 2-0064: will soon be dropped. This message indicates
that your
[ 11.298704] tuner' 2-0064: hardware has a Xceive XC3028 tuner at i2c
address 0x64.
[ 11.298705] tuner' 2-0064: To ensure continued support for your device,
please
[ 11.298706] tuner' 2-0064: send a copy of this message, along with full
dmesg
[ 11.298708] tuner' 2-0064: output to v4l-dvb-maintainer@linuxtv.org
[ 11.298709] tuner' 2-0064: Please use subject line: "obsolete tuner i2c
address."
[ 11.298710] tuner' 2-0064: driver: cx23885[0], addr: 0x64, type: 71
(Xceive XC3028)
[ 11.298712] tuner' 2-0064: ====================== WARNING!
======================
The warning gets repeated several times for 2-0064 and 3-0064.
[ 11.303497] cx23885[0]/0: registered device video0 [v4l2]
[ 11.303770] cx23885[0]/1: registered ALSA audio device
[ 11.303779] firmware: requesting xc3028-v27.fw
[ 11.329126] xc2028 3-0064: Error: firmware xc3028-v27.fw not found.
[ 11.332622] firmware: requesting v4l-cx23885-avcore-01.fw
[ 11.333993] cx25840' 4-0044: unable to open firmware
v4l-cx23885-avcore-01.fw
[ 11.348605] cx23885_dev_checkrevision() Hardware revision = 0xb0
[ 11.348611] cx23885[0]/0: found at 0000:08:00.0, rev: 2, irq: 16,
latency: 0, mmio: 0xfd800000
[ 11.348617] cx23885 0000:08:00.0: setting latency timer to 64
--
--Tim
[-- Attachment #1.2: Type: text/html, Size: 21813 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-24 3:45 ` Tim Lucas
@ 2008-09-24 3:50 ` Tim Lucas
2008-09-24 19:21 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-24 3:50 UTC (permalink / raw)
To: Steven Toth, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 238 bytes --]
I forgot to mention that I commented out the digital tuner at .portc first.
Then I tried to tune channels, but could not. Then I changed the tuner to
0xc8 >> 1, leaving .portc commented out. I still could not tune channels.
--Tim
[-- Attachment #1.2: Type: text/html, Size: 365 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-24 3:50 ` Tim Lucas
@ 2008-09-24 19:21 ` Steven Toth
2008-09-24 20:15 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Steven Toth @ 2008-09-24 19:21 UTC (permalink / raw)
To: Tim Lucas; +Cc: linux dvb
Tim Lucas wrote:
> I forgot to mention that I commented out the digital tuner at .portc
> first. Then I tried to tune channels, but could not. Then I changed
> the tuner to 0xc8 >> 1, leaving .portc commented out. I still could not
> tune channels.
>
> --Tim
>
>
I really need you to test composite or svideo, did you do this?
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-24 19:21 ` Steven Toth
@ 2008-09-24 20:15 ` Tim Lucas
2008-09-25 0:23 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-24 20:15 UTC (permalink / raw)
To: Steven Toth, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 596 bytes --]
OK, so I'm a little dumb. How do you want me to test those. Should I hook
up some device to the S-Video input like my DVD player?
--Tim
On Wed, Sep 24, 2008 at 12:21 PM, Steven Toth <stoth@linuxtv.org> wrote:
> Tim Lucas wrote:
>
>> I forgot to mention that I commented out the digital tuner at .portc
>> first. Then I tried to tune channels, but could not. Then I changed the
>> tuner to 0xc8 >> 1, leaving .portc commented out. I still could not tune
>> channels.
>>
>> --Tim
>>
>>
>>
> I really need you to test composite or svideo, did you do this?
>
> - Steve
>
--
--Tim
[-- Attachment #1.2: Type: text/html, Size: 1114 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-24 20:15 ` Tim Lucas
@ 2008-09-25 0:23 ` Steven Toth
2008-09-26 1:07 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Steven Toth @ 2008-09-25 0:23 UTC (permalink / raw)
To: Tim Lucas; +Cc: linux dvb
Tim Lucas wrote:
> OK, so I'm a little dumb. How do you want me to test those. Should I
> hook up some device to the S-Video input like my DVD player?
>
> --Tim
>
> On Wed, Sep 24, 2008 at 12:21 PM, Steven Toth <stoth@linuxtv.org
> <mailto:stoth@linuxtv.org>> wrote:
>
> Tim Lucas wrote:
>
> I forgot to mention that I commented out the digital tuner at
> .portc first. Then I tried to tune channels, but could not.
> Then I changed the tuner to 0xc8 >> 1, leaving .portc commented
> out. I still could not tune channels.
>
> --Tim
>
>
>
> I really need you to test composite or svideo, did you do this?
>
> - Steve
>
>
>
>
> --
> --Tim
Yes, hook up a dvd player to the svideo adapter cable, then use tvtime
to switch the inputs to svideo.
I suspect (hope?) this should instantly work for you. If not, something
is really wrong inside the cx25840 driver.
Let me know.... also, be sure to try the composite input also.
Regards,
Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-25 0:23 ` Steven Toth
@ 2008-09-26 1:07 ` Tim Lucas
2008-09-28 15:29 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-26 1:07 UTC (permalink / raw)
To: Steven Toth, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 1476 bytes --]
OK, so I tested both s-video and composite inputs. I get video for s-video,
but not composite. The video seems to flicker a little bit in tv time. I
just have standard rca cables plugged in for audio, but I can;t get any
sound.I tried changing the "tuner-type" to 0xc2, 0xc4, and 0x61. All three
gave the same results.
--Tim
On Wed, Sep 24, 2008 at 5:23 PM, Steven Toth <stoth@linuxtv.org> wrote:
> Tim Lucas wrote:
>
>> OK, so I'm a little dumb. How do you want me to test those. Should I
>> hook up some device to the S-Video input like my DVD player?
>> --Tim
>>
>> On Wed, Sep 24, 2008 at 12:21 PM, Steven Toth <stoth@linuxtv.org <mailto:
>> stoth@linuxtv.org>> wrote:
>>
>> Tim Lucas wrote:
>>
>> I forgot to mention that I commented out the digital tuner at
>> .portc first. Then I tried to tune channels, but could not.
>> Then I changed the tuner to 0xc8 >> 1, leaving .portc commented
>> out. I still could not tune channels.
>>
>> --Tim
>>
>>
>>
>> I really need you to test composite or svideo, did you do this?
>>
>> - Steve
>>
>>
>>
>>
>> --
>> --Tim
>>
>
> Yes, hook up a dvd player to the svideo adapter cable, then use tvtime to
> switch the inputs to svideo.
>
> I suspect (hope?) this should instantly work for you. If not, something is
> really wrong inside the cx25840 driver.
>
> Let me know.... also, be sure to try the composite input also.
>
> Regards,
>
> Steve
>
--
--Tim
[-- Attachment #1.2: Type: text/html, Size: 2398 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-26 1:07 ` Tim Lucas
@ 2008-09-28 15:29 ` Tim Lucas
2008-09-29 18:05 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-28 15:29 UTC (permalink / raw)
To: Steven Toth, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]
On Thu, Sep 25, 2008 at 6:07 PM, Tim Lucas <lucastim@gmail.com> wrote:
> OK, so I tested both s-video and composite inputs. I get video for
> s-video, but not composite. The video seems to flicker a little bit in tv
> time. I just have standard rca cables plugged in for audio, but I can;t get
> any sound. I tried changing the "tuner-type" to 0xc2, 0xc4, and 0x61. All
> three gave the same results.
>
> --Tim
>
So the good news was that the s-video was working. I want to make sure that
I hooked up the sound correctly. I can't imagine that there is any other
way than the rca cables. So what is next?
The only things that I can adjust in cx23885-cards.c is the "tuner-type"
I've tried various suggestions, but had no luck. Are there other
parameters that can be changed?
--Tim
[-- Attachment #1.2: Type: text/html, Size: 1270 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-28 15:29 ` Tim Lucas
@ 2008-09-29 18:05 ` Steven Toth
2008-09-30 2:02 ` Tim Lucas
0 siblings, 1 reply; 15+ messages in thread
From: Steven Toth @ 2008-09-29 18:05 UTC (permalink / raw)
To: Tim Lucas; +Cc: linux dvb
Tim Lucas wrote:
> On Thu, Sep 25, 2008 at 6:07 PM, Tim Lucas <lucastim@gmail.com
> <mailto:lucastim@gmail.com>> wrote:
>
> OK, so I tested both s-video and composite inputs. I get video for
> s-video, but not composite. The video seems to flicker a little bit
> in tv time. I just have standard rca cables plugged in for audio,
> but I can;t get any sound.
> I tried changing the "tuner-type" to 0xc2, 0xc4, and 0x61. All
> three gave the same results.
>
> --Tim
>
>
> So the good news was that the s-video was working. I want to make sure
> that I hooked up the sound correctly. I can't imagine that there is any
> other way than the rca cables. So what is next?
That's a great step forward. That means the tv input will probably
produce the correct input if the tuner is set correctly.
Switch to this tree http://linuxtv.org/hg/~stoth/cx23885-audio and try
again with the svideo and audio tests.
Mijhail Moreyra wrote some HVR1500 audio patches, which I have not
tested yet. Do these produce audio for you via the svideo and breakout
RCA audio input cable?
>
> The only things that I can adjust in cx23885-cards.c is the "tuner-type"
> I've tried various suggestions, but had no luck. Are there other
> parameters that can be changed?
Look at how the HVR1500 analog tuner is setup in this tree, it may help
- especially with the tuner setup.
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-29 18:05 ` Steven Toth
@ 2008-09-30 2:02 ` Tim Lucas
2008-09-30 15:11 ` Steven Toth
0 siblings, 1 reply; 15+ messages in thread
From: Tim Lucas @ 2008-09-30 2:02 UTC (permalink / raw)
To: Steven Toth, Michael Krufky, linux dvb
[-- Attachment #1.1: Type: text/plain, Size: 4879 bytes --]
On Mon, Sep 29, 2008 at 11:05 AM, Steven Toth <stoth@linuxtv.org> wrote:
> Tim Lucas wrote:
>
>> On Thu, Sep 25, 2008 at 6:07 PM, Tim Lucas <lucastim@gmail.com <mailto:
>> lucastim@gmail.com>> wrote:
>>
>> OK, so I tested both s-video and composite inputs. I get video for
>> s-video, but not composite. The video seems to flicker a little bit
>> in tv time. I just have standard rca cables plugged in for audio,
>> but I can;t get any sound.
>> I tried changing the "tuner-type" to 0xc2, 0xc4, and 0x61. All
>> three gave the same results.
>>
>> --Tim
>>
>>
>> So the good news was that the s-video was working. I want to make sure
>> that I hooked up the sound correctly. I can't imagine that there is any
>> other way than the rca cables. So what is next?
>>
>
> That's a great step forward. That means the tv input will probably produce
> the correct input if the tuner is set correctly.
>
> Switch to this tree http://linuxtv.org/hg/~stoth/cx23885-audio and try
> again with the svideo and audio tests.
>
> Mijhail Moreyra wrote some HVR1500 audio patches, which I have not tested
> yet. Do these produce audio for you via the svideo and breakout RCA audio
> input cable?
>>
>>
>> The only things that I can adjust in cx23885-cards.c is the "tuner-type"
>> I've tried various suggestions, but had no luck. Are there other
>> parameters that can be changed?
>>
>
> Look at how the HVR1500 analog tuner is setup in this tree, it may help -
> especially with the tuner setup.
>
> - Steve
>
I have been using the cx23885-audio branch the entire time. I still do not
get audio.
I have a thought about the setup. I was looking at this part of the HVR-1500
driver
.input = {{
.type = CX23885_VMUX_TELEVISION,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN5_CH2 |
CX25840_VIN2_CH1,
.gpio0 = 0,
}, {
.type = CX23885_VMUX_COMPOSITE1,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN4_CH2 |
CX25840_VIN6_CH1,
.gpio0 = 0,
}, {
.type = CX23885_VMUX_SVIDEO,
.vmux = CX25840_VIN7_CH3 |
CX25840_VIN4_CH2 |
CX25840_VIN8_CH1 |
CX25840_SVIDEO_ON,
.gpio0 = 0,
} },
The DVICO FusionHDTV5 board has the following
[CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
.name = "DViCO FusionHDTV 5 Gold",
.tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
.radio_type = UNSET,
.tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET,
.tda9887_conf = TDA9887_PRESENT,
.input = {{
.type = CX88_VMUX_TELEVISION,
.vmux = 0,
.gpio0 = 0x87fd,
},{
.type = CX88_VMUX_COMPOSITE1,
.vmux = 1,
.gpio0 = 0x87f9,
},{
.type = CX88_VMUX_SVIDEO,
.vmux = 2,
.gpio0 = 0x87f9,
}},
.mpeg = CX88_MPEG_DVB,
},
Notice that .vmux and .gpio0 are set very differently. Evidently these
values were set according to the rules
/*
GPIO[0] resets DT3302 DTV receiver
0 - reset asserted
1 - normal operation
GPIO[1] mutes analog audio output connector
0 - enable selected source
1 - mute
GPIO[2] selects source for analog audio output connector
0 - analog audio input connector on tab
1 - analog DAC output from CX23881 chip
GPIO[3] selects RF input connector on tuner module
0 - RF connector labeled CABLE
1 - RF connector labeled ANT
GPIO[4] selects high RF for QAM256 mode
0 - normal RF
1 - high RF
*/
which are found in the dvico fusionhdtv 3 section. Of course, I could just
be grasping at straws. I have included Michael on this email to possibly
shed some light on this. I figure that .vmux and .gpio0 have to be set
differently so that it uses settings from the dvico board, but then if I
changed those values, it wouldn't be using settings from the cx25840 driver.
--
--Tim
[-- Attachment #1.2: Type: text/html, Size: 14127 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one)
2008-09-30 2:02 ` Tim Lucas
@ 2008-09-30 15:11 ` Steven Toth
0 siblings, 0 replies; 15+ messages in thread
From: Steven Toth @ 2008-09-30 15:11 UTC (permalink / raw)
To: Tim Lucas; +Cc: linux dvb, Michael Krufky
Tim Lucas wrote:
> On Mon, Sep 29, 2008 at 11:05 AM, Steven Toth <stoth@linuxtv.org
> <mailto:stoth@linuxtv.org>> wrote:
>
> Tim Lucas wrote:
>
> On Thu, Sep 25, 2008 at 6:07 PM, Tim Lucas <lucastim@gmail.com
> <mailto:lucastim@gmail.com> <mailto:lucastim@gmail.com
> <mailto:lucastim@gmail.com>>> wrote:
>
> OK, so I tested both s-video and composite inputs. I get
> video for
> s-video, but not composite. The video seems to flicker a
> little bit
> in tv time. I just have standard rca cables plugged in for
> audio,
> but I can;t get any sound.
> I tried changing the "tuner-type" to 0xc2, 0xc4, and 0x61. All
> three gave the same results.
>
> --Tim
>
>
> So the good news was that the s-video was working. I want to
> make sure that I hooked up the sound correctly. I can't imagine
> that there is any other way than the rca cables. So what is next?
>
>
> That's a great step forward. That means the tv input will probably
> produce the correct input if the tuner is set correctly.
>
> Switch to this tree http://linuxtv.org/hg/~stoth/cx23885-audio and
> try again with the svideo and audio tests.
>
> Mijhail Moreyra wrote some HVR1500 audio patches, which I have not
> tested yet. Do these produce audio for you via the svideo and
> breakout RCA audio input cable?
>
>
> The only things that I can adjust in cx23885-cards.c is the
> "tuner-type" I've tried various suggestions, but had no luck.
> Are there other parameters that can be changed?
>
>
> Look at how the HVR1500 analog tuner is setup in this tree, it may
> help - especially with the tuner setup.
>
> - Steve
>
>
> I have been using the cx23885-audio branch the entire time. I still do
> not get audio.
OK.
>
> I have a thought about the setup. I was looking at this part of the
> HVR-1500 driver
>
> .input = {{
> .type = CX23885_VMUX_TELEVISION,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN5_CH2 |
> CX25840_VIN2_CH1,
> .gpio0 = 0,
> }, {
> .type = CX23885_VMUX_COMPOSITE1,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN4_CH2 |
> CX25840_VIN6_CH1,
> .gpio0 = 0,
> }, {
> .type = CX23885_VMUX_SVIDEO,
> .vmux = CX25840_VIN7_CH3 |
> CX25840_VIN4_CH2 |
> CX25840_VIN8_CH1 |
> CX25840_SVIDEO_ON,
> .gpio0 = 0,
> } },
>
>
> The DVICO FusionHDTV5 board has the following
>
> [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
> .name = "DViCO FusionHDTV 5 Gold",
> .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
> .radio_type = UNSET,
> .tuner_addr = ADDR_UNSET,
> .radio_addr = ADDR_UNSET,
> .tda9887_conf = TDA9887_PRESENT,
> .input = {{
> .type = CX88_VMUX_TELEVISION,
> .vmux = 0,
> .gpio0 = 0x87fd,
> },{
> .type = CX88_VMUX_COMPOSITE1,
> .vmux = 1,
> .gpio0 = 0x87f9,
> },{
> .type = CX88_VMUX_SVIDEO,
> .vmux = 2,
> .gpio0 = 0x87f9,
> }},
> .mpeg = CX88_MPEG_DVB,
> },
>
> Notice that .vmux and .gpio0 are set very differently. Evidently these
> values were set according to the rules
>
> /*
>
> GPIO[0] resets DT3302 DTV receiver
>
> 0 - reset asserted
>
> 1 - normal operation
>
> GPIO[1] mutes analog audio output connector
>
> 0 - enable selected source
>
> 1 - mute
>
> GPIO[2] selects source for analog audio output
> connector
> 0 - analog audio input connector on tab
>
> 1 - analog DAC output from CX23881 chip
>
> GPIO[3] selects RF input connector on tuner module
>
> 0 - RF connector labeled CABLE
>
> 1 - RF connector labeled ANT
>
> GPIO[4] selects high RF for QAM256 mode
>
> 0 - normal RF
>
> 1 - high RF
>
> */
>
> which are found in the dvico fusionhdtv 3 section. Of course, I could
> just be grasping at straws. I have included Michael on this email to
> possibly shed some light on this. I figure that .vmux and .gpio0 have
> to be set differently so that it uses settings from the dvico board, but
> then if I changed those values, it wouldn't be using settings from the
> cx25840 driver.
Well, you are grasping at straws but so is everyone else. :) You're the
only person with the hardware and everyone else is working blind - so
things are very slow moving. It's the best we can expect at this point.
You've raised an interesting point. Given that dvico have two gpio's
that are audio related on another product it could well be that this
card has a yet-unknown customer GPIO audio related configuration. RegSpy
would show the GPIO configurations when running under windows, and this
may help if we think it's GPIO related.
Other than that I'm drowning in 3 other Linux projects and I'm trying to
support you with occasional emails, so if the responses feel limited
it's largely because that's the only time I can give you right now. I
don't have the hardware and this is pretty much a guess game - using a
tree that I haven't even tested myself - which could have many other issues.
I would like to see this supported, but unless someone has a bright idea
then I can't offer much other advise until my workload clears and I can
get some quality time to look at the -audio tree generally.
If the work appears to stall, the best thing to do is to grab as much
information as possible (regspy register dumps, important debug
messages) and get the wiki up to date, so that when someone has time to
dig back into this - the wiki will be a one-stop-shop for getting back
up to speed.
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-09-30 15:11 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 22:45 [linux-dvb] Porting analog support from HVR-1500 to the DViCO FusionHDTV7 Dual Express (Read this one) Tim Lucas
2008-09-19 6:53 ` Steven Toth
2008-09-24 3:45 ` Tim Lucas
2008-09-24 3:50 ` Tim Lucas
2008-09-24 19:21 ` Steven Toth
2008-09-24 20:15 ` Tim Lucas
2008-09-25 0:23 ` Steven Toth
2008-09-26 1:07 ` Tim Lucas
2008-09-28 15:29 ` Tim Lucas
2008-09-29 18:05 ` Steven Toth
2008-09-30 2:02 ` Tim Lucas
2008-09-30 15:11 ` Steven Toth
[not found] <mailman.1.1221645602.2795.linux-dvb@linuxtv.org>
2008-09-22 1:04 ` Craig Cook
2008-09-22 2:22 ` Steven Toth
2008-09-22 12:28 ` Craig Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox