Skip to content

Commit 5ceade1

Browse files
b-rad-NDimchehab
authored andcommitted
media: cx23885: Set subdev host data to clk_freq pointer
Currently clk_freq is ignored entirely, because the cx235840 driver configures the xtal at the chip defaults. This is an issue if a board is produced with a non-default frequency crystal. If clk_freq is not zero the cx25840 will attempt to use the setting provided, or fall back to defaults otherwise. Signed-off-by: Brad Love <brad@nextdimension.cc> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 5da1a68 commit 5ceade1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,6 +2362,10 @@ void cx23885_card_setup(struct cx23885_dev *dev)
23622362
&dev->i2c_bus[2].i2c_adap,
23632363
"cx25840", 0x88 >> 1, NULL);
23642364
if (dev->sd_cx25840) {
2365+
/* set host data for clk_freq configuration */
2366+
v4l2_set_subdev_hostdata(dev->sd_cx25840,
2367+
&dev->clk_freq);
2368+
23652369
dev->sd_cx25840->grp_id = CX23885_HW_AV_CORE;
23662370
v4l2_subdev_call(dev->sd_cx25840, core, load_fw);
23672371
}

0 commit comments

Comments
 (0)