Skip to content

Commit bfe432f

Browse files
committed
Remove duplicate writes during PLL configuration.
1 parent 1796b50 commit bfe432f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cxadc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,6 @@ static int cxadc_char_open(struct inode *inode, struct file *file)
297297
/* control gain also bit 16 */
298298
cx_write(MO_AGC_GAIN_ADJ4, (1<<23)|(0<<22)|(0<<21)|(level<<16)|(0xff<<8)|(0x0<<0));
299299

300-
/* set higher clock rate */
301-
if (tenxfsc)
302-
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
303-
else
304-
cx_write(MO_SCONV_REG, 131072); /* set SRC to 8xfsc */
305-
306300
if (tenxfsc) {
307301
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
308302
cx_write(MO_PLL_REG, 0x01400000); /* set PLL to 1.25x/10fsc */
@@ -632,8 +626,6 @@ static int cxadc_probe(struct pci_dev *pci_dev,
632626
}
633627
cx_info("char dev register ok\n");
634628

635-
cx_write(MO_PLL_REG, 0x01000000); /* set PLL to 8xfsc */
636-
637629
if (tenxfsc) {
638630
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
639631
cx_write(MO_PLL_REG, 0x01400000); /* set PLL to 1.25x/10fsc */

0 commit comments

Comments
 (0)