Skip to content

Commit 779c79d

Browse files
b-rad-NDimchehab
authored andcommitted
media: cx23885: Override 888 ImpactVCBe crystal frequency
Hauppauge produced a revision of ImpactVCBe using an 888, with a 25MHz crystal, instead of using the default third overtone 50Mhz crystal. This overrides that frequency so that the cx25840 is properly configured. Without the proper crystal setup the cx25840 cannot load the firmware or decode video. Signed-off-by: Brad Love <brad@nextdimension.cc> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 5ceade1 commit 779c79d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎drivers/media/pci/cx23885/cx23885-core.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,16 @@ static int cx23885_dev_setup(struct cx23885_dev *dev)
881881
if (cx23885_boards[dev->board].clk_freq > 0)
882882
dev->clk_freq = cx23885_boards[dev->board].clk_freq;
883883

884+
if (dev->board == CX23885_BOARD_HAUPPAUGE_IMPACTVCBE &&
885+
dev->pci->subsystem_device == 0x7137) {
886+
/* Hauppauge ImpactVCBe device ID 0x7137 is populated
887+
* with an 888, and a 25Mhz crystal, instead of the
888+
* usual third overtone 50Mhz. The default clock rate must
889+
* be overridden so the cx25840 is properly configured
890+
*/
891+
dev->clk_freq = 25000000;
892+
}
893+
884894
dev->pci_bus = dev->pci->bus->number;
885895
dev->pci_slot = PCI_SLOT(dev->pci->devfn);
886896
cx23885_irq_add(dev, 0x001f00);

0 commit comments

Comments
 (0)