Lines Matching +full:1 +full:mhz
71 MODULE_PARM_DESC(debug, "Debugging messages [0=Off (default) 1=On]");
81 buffer[1] = addr & 0xff; in cx25840_write()
91 buffer[1] = addr & 0xff; in cx25840_write4()
102 u8 tx_buf[2], rx_buf[1]; in cx25840_read()
106 tx_buf[1] = addr & 0xff; in cx25840_read()
113 msgs[1].addr = client->addr; in cx25840_read()
114 msgs[1].flags = I2C_M_RD; in cx25840_read()
115 msgs[1].len = 1; in cx25840_read()
116 msgs[1].buf = (char *)rx_buf; in cx25840_read()
131 tx_buf[1] = addr & 0xff; in cx25840_read4()
138 msgs[1].addr = client->addr; in cx25840_read4()
139 msgs[1].flags = I2C_M_RD; in cx25840_read4()
140 msgs[1].len = 4; in cx25840_read4()
141 msgs[1].buf = (char *)rx_buf; in cx25840_read4()
146 return (rx_buf[3] << 24) | (rx_buf[2] << 16) | (rx_buf[1] << 8) | in cx25840_read4()
233 gpio_oe |= (0x1 << 1); in cx23885_s_io_pin_config()
242 gpio_oe &= ~(0x1 << 1); in cx23885_s_io_pin_config()
244 gpio_data &= ~(0x1 << 1); in cx23885_s_io_pin_config()
245 gpio_data |= ((p[i].value & 0x1) << 1); in cx23885_s_io_pin_config()
378 *voutctrl4 |= BIT(1); in cx25840_set_invert()
380 *voutctrl4 &= ~BIT(1); in cx25840_set_invert()
434 pinctrl[4] |= 1 << 2; in cx25840_s_io_pin_config()
446 pinctrl[1] &= ~BIT(0); in cx25840_s_io_pin_config()
448 pinctrl[1] |= BIT(0); in cx25840_s_io_pin_config()
463 pinctrl[4] |= 1 << 2; in cx25840_s_io_pin_config()
485 pinconf[6] = 1; in cx25840_s_io_pin_config()
542 * initialize the Delay Lock Loop 1 (ADC DLL). in init_dll1()
633 voutctrl[0] |= 1; in cx25840_vconfig_apply()
659 1, 2, CX25840_VCONFIG_ACTIVE_HORIZONTAL); in cx25840_vconfig_apply()
661 1, 3, CX25840_VCONFIG_VALID_ANDACTIVE); in cx25840_vconfig_apply()
663 1, 4, CX25840_VCONFIG_HRESETW_PIXCLK); in cx25840_vconfig_apply()
666 voutctrl[1] &= ~(3 << 6); in cx25840_vconfig_apply()
669 voutctrl[1] |= 2; in cx25840_vconfig_apply()
673 voutctrl[1] |= 3; in cx25840_vconfig_apply()
685 2, 1, CX25840_VCONFIG_IDID0S_LINECNT); in cx25840_vconfig_apply()
800 * '885: 28.636363... MHz in cx23885_initialize()
801 * '887: 25.000000 MHz in cx23885_initialize()
802 * '888: 50.000000 MHz in cx23885_initialize()
813 * 50.0 MHz * (0xb + 0xe8ba26/0x2000000)/4 = 5 * 28.636363 MHz in cx23885_initialize()
814 * 572.73 MHz before post divide in cx23885_initialize()
817 /* 888/ImpactVCBe or 25Mhz xtal */ in cx23885_initialize()
820 /* HVR1850 or 50MHz xtal */ in cx23885_initialize()
831 * 25.0 MHz * (0x16 + 0x1d1744c/0x2000000)/4 = 5 * 28.636363 MHz in cx23885_initialize()
832 * 572.73 MHz before post divide in cx23885_initialize()
840 * 28.636363 MHz * (0x14 + 0x0/0x2000000)/4 = 5 * 28.636363 MHz in cx23885_initialize()
841 * 572.73 MHz before post divide in cx23885_initialize()
858 * 28.636363 MHz * (0xf + 0x02be2c9/0x2000000)/4 = 8 * 13.5 MHz in cx23885_initialize()
859 * 432.0 MHz before post divide in cx23885_initialize()
866 /* 888/ImpactVCBe or 25MHz xtal */ in cx23885_initialize()
870 /* 888/HVR1250 or 50MHz xtal */ in cx23885_initialize()
892 * 48 ksps, 16 bits/sample, x160 multiplier = 122.88 MHz in cx23885_initialize()
894 * 48 ksps, 16 bits/sample, x16 multiplier = 12.288 MHz in cx23885_initialize()
899 * 50.0 MHz * (0x7 + 0x0bedfa4/0x2000000)/3 = 122.88 MHz in cx23885_initialize()
900 * 368.64 MHz before post divide in cx23885_initialize()
901 * 122.88 MHz / 0xa = 12.288 MHz in cx23885_initialize()
903 /* HVR1850 or 50MHz xtal or 25MHz xtal */ in cx23885_initialize()
909 * 25.0 MHz * (0xe + 0x17dbf48/0x2000000)/3 = 122.88 MHz in cx23885_initialize()
910 * 368.64 MHz before post divide in cx23885_initialize()
911 * 122.88 MHz / 0xa = 12.288 MHz in cx23885_initialize()
919 * 28.636363 MHz * (0xc + 0x1bf0c9e/0x2000000)/3 = 122.88 MHz in cx23885_initialize()
920 * 368.64 MHz before post divide in cx23885_initialize()
921 * 122.88 MHz / 0xa = 12.288 MHz in cx23885_initialize()
1017 * Master, Sony, Left justified, left sample on WS=1 in cx23885_initialize()
1151 luma_lpf = 1; in cx25840_std_setup()
1153 uv_lpf = 1; in cx25840_std_setup()
1157 uv_lpf = 1; in cx25840_std_setup()
1165 luma_lpf = 1; in cx25840_std_setup()
1166 uv_lpf = 1; in cx25840_std_setup()
1206 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1215 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1216 "PLL = %d.%06d MHz\n", in cx25840_std_setup()
1218 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1219 "PLL/8 = %d.%06d MHz\n", in cx25840_std_setup()
1223 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1224 "ADC Sampling freq = %d.%06d MHz\n", in cx25840_std_setup()
1228 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1229 "Chroma sub-carrier freq = %d.%06d MHz\n", in cx25840_std_setup()
1232 v4l_dbg(1, cx25840_debug, client, in cx25840_std_setup()
1303 cx25840_and_or(client, 0x810, ~0x01, 1); in input_change()
1335 * 6.5 MHz carrier to be interpreted as System DK, in input_change()
1344 * 6.5MHz carrier, else autodetect it in input_change()
1348 /* 6.5 MHz carrier to be interpreted as System DK */ in input_change()
1352 /* 6.5 MHz carrier to be interpreted as System L */ in input_change()
1355 /* 6.5 MHz carrier to be autodetected */ in input_change()
1381 v4l_dbg(1, cx25840_debug, client, in set_input()
1386 v4l_dbg(1, cx25840_debug, client, "vid_input 0x%x\n", in set_input()
1392 v4l_dbg(1, cx25840_debug, client, "mux cfg 0x%x comp=%d\n", in set_input()
1524 /* Set CH_SEL_ADC2 to 1 if input comes from CH3 */ in set_input()
1526 /* Set DUAL_MODE_ADC2 to 1 if input comes from both CH2&CH3 */ in set_input()
1532 /* Set DUAL_MODE_ADC2 to 1 if component*/ in set_input()
1583 /* Audio channel 1 src : Parallel 1 */ in set_input()
1589 /* I2S_IN_CTL: I2S_IN_SONY_MODE, LEFT SAMPLE on WS=1 */ in set_input()
1593 * I2S_IN_SONY_MODE, LEFT SAMPLE on WS=1 in set_input()
1599 /* Audio channel 1 src : Parallel 1 */ in set_input()
1602 /* I2S_IN_CTL: I2S_IN_SONY_MODE, LEFT SAMPLE on WS=1 */ in set_input()
1606 * I2S_IN_SONY_MODE, LEFT SAMPLE on WS=1 in set_input()
1629 * - Channel 1 src - Parallel1 (Merlin out) in set_input()
1662 pal_m = 1; in set_v4lstd()
1680 v4l_dbg(1, cx25840_debug, client, in set_v4lstd()
1690 cx25840_and_or(client, 0x400, ~0xf, 1); in set_v4lstd()
1719 cx25840_write(client, 0x415, ctrl->val << 1); in cx25840_s_ctrl()
1724 cx25840_write(client, 0x418, ctrl->val << 1); in cx25840_s_ctrl()
1725 cx25840_write(client, 0x419, ctrl->val << 1); in cx25840_s_ctrl()
1727 cx25840_write(client, 0x420, ctrl->val << 1); in cx25840_s_ctrl()
1728 cx25840_write(client, 0x421, ctrl->val << 1); in cx25840_s_ctrl()
1812 fmt->height = clamp(fmt->height, (u32)1, v_src - v_add); in cx25840_set_fmt()
1820 hsc = (h_src * (1 << 20)) / fmt->width - (1 << 20); in cx25840_set_fmt()
1821 vsc = (1 << 16) - (v_src * (1 << 9) / (fmt->height + v_add) - (1 << 9)); in cx25840_set_fmt()
1827 filter = 1; in cx25840_set_fmt()
1833 v4l_dbg(1, cx25840_debug, client, in cx25840_set_fmt()
1840 cx25840_write4(client, 0x434, hsc | (1 << 24)); in cx25840_set_fmt()
1841 /* VSCALE=vsc VS_INTRLACE=1 VFILT=filter */ in cx25840_set_fmt()
1842 cx25840_write4(client, 0x438, vsc | (1 << 19) | (filter << 16)); in cx25840_set_fmt()
1850 /* VS_INTRLACE=1 VFILT=filter */ in cx25840_set_fmt()
1886 vid_input - CX25840_COMPOSITE1 + 1); in log_video_status()
1968 p = "A1 (6.0 MHz FM Mono)"; in log_audio_status()
1986 p = "BTSC/EIAJ/A2-M Mono (4.5 MHz FMMono)"; in log_audio_status()
2043 p = "A1 (6.0 MHz FM Mono)"; in log_audio_status()
2162 case 1: in log_audio_status()
2193 case 1: in log_audio_status()
2202 v4l_info(client, "Selected 65 MHz format: %s\n", p); in log_audio_status()
2208 case 1: in log_audio_status()
2223 v4l_info(client, "Selected 45 MHz format: %s\n", p); in log_audio_status()
2288 WARN_ON(1); in cx25840_init()
2308 state->is_initialized = 1; in cx25840_reset()
2344 reg->size = 1; in cx25840_g_register()
2368 v4l_dbg(1, cx25840_debug, client, "%s audio output\n", in cx25840_s_audio_stream()
2391 v4l_dbg(1, cx25840_debug, client, "%s video output\n", in cx25840_s_stream()
2447 v4l_dbg(1, cx25840_debug, client, in cx25840_querystd()
2495 state->radio = 1; in cx25840_s_radio()
2557 if ((mode & 0xf) == 1) in cx25840_g_tuner()
2742 { // 3.0 MHz
2748 }, { // 3.1 MHz
2754 }, { // 3.2 MHz
2760 }, { // 3.3 MHz
2766 }, { // 3.4 MHz
2772 }, { // 3.5 MHz
2778 }, { // 3.6 MHz
2784 }, { // 3.7 MHz
2790 }, { // 3.8 MHz
2796 }, { // 3.9 MHz
2802 }, { // 4.0 MHz
2808 }, { // 4.1 MHz
2814 }, { // 4.2 MHz
2820 }, { // 4.3 MHz
2826 }, { // 4.4 MHz
2832 }, { // 4.5 MHz
2838 }, { // 4.6 MHz
2844 }, { // 4.7 MHz
2850 }, { // 4.8 MHz
2856 }, { // 4.9 MHz
2862 }, { // 5.0 MHz
2868 }, { // 5.1 MHz
2874 }, { // 5.2 MHz
2880 }, { // 5.3 MHz
2886 }, { // 5.4 MHz
2892 }, { // 5.5 MHz
2898 }, { // 5.6 MHz
2904 }, { // 5.7 MHz
2910 }, { // 5.8 MHz
2916 }, { // 5.9 MHz
2922 }, { // 6.0 MHz
2928 }, { // 6.1 MHz
2934 }, { // 6.2 MHz
2940 }, { // 6.3 MHz
2946 }, { // 6.4 MHz
2952 }, { // 6.5 MHz
2958 }, { // 6.6 MHz
2964 }, { // 6.7 MHz
2970 }, { // 6.8 MHz
2976 }, { // 6.9 MHz
2982 }, { // 7.0 MHz
2988 }, { // 7.1 MHz
2994 }, { // 7.2 MHz
3000 }, { // 7.3 MHz
3006 }, { // 7.4 MHz
3012 }, { // 7.5 MHz
3018 }, { // 7.6 MHz
3024 }, { // 7.7 MHz
3030 }, { // 7.8 MHz
3036 }, { // 7.9 MHz
3042 }, { // 8.0 MHz
3048 }, { // 8.1 MHz
3054 }, { // 8.2 MHz
3060 }, { // 8.3 MHz
3066 }, { // 8.4 MHz
3072 }, { // 8.5 MHz
3078 }, { // 8.6 MHz
3084 }, { // 8.7 MHz
3090 }, { // 8.8 MHz
3096 }, { // 8.9 MHz
3102 }, { // 9.0 MHz
3108 }, { // 9.1 MHz
3114 }, { // 9.2 MHz
3120 }, { // 9.3 MHz
3126 }, { // 9.4 MHz
3132 }, { // 9.5 MHz
3138 }, { // 9.6 MHz
3144 }, { // 9.7 MHz
3150 }, { // 9.8 MHz
3156 }, { // 9.9 MHz
3162 }, { // 10.0 MHz
3168 }, { // 10.1 MHz
3174 }, { // 10.2 MHz
3180 }, { // 10.3 MHz
3186 }, { // 10.4 MHz
3192 }, { // 10.5 MHz
3198 }, { // 10.6 MHz
3204 }, { // 10.7 MHz
3210 }, { // 10.8 MHz
3216 }, { // 10.9 MHz
3222 }, { // 11.0 MHz
3228 }, { // 11.1 MHz
3234 }, { // 11.2 MHz
3240 }, { // 11.3 MHz
3246 }, { // 11.4 MHz
3252 }, { // 11.5 MHz
3258 }, { // 11.6 MHz
3264 }, { // 11.7 MHz
3270 }, { // 11.8 MHz
3276 }, { // 11.9 MHz
3282 }, { // 12.0 MHz
3288 }, { // 12.1 MHz
3294 }, { // 12.2 MHz
3300 }, { // 12.3 MHz
3306 }, { // 12.4 MHz
3312 }, { // 12.5 MHz
3318 }, { // 12.6 MHz
3324 }, { // 12.7 MHz
3330 }, { // 12.8 MHz
3336 }, { // 12.9 MHz
3342 }, { // 13.0 MHz
3348 }, { // 13.1 MHz
3354 }, { // 13.2 MHz
3360 }, { // 13.3 MHz
3366 }, { // 13.4 MHz
3372 }, { // 13.5 MHz
3378 }, { // 13.6 MHz
3384 }, { // 13.7 MHz
3390 }, { // 13.8 MHz
3396 }, { // 13.9 MHz
3402 }, { // 14.0 MHz
3408 }, { // 14.1 MHz
3414 }, { // 14.2 MHz
3420 }, { // 14.3 MHz
3426 }, { // 14.4 MHz
3432 }, { // 14.5 MHz
3438 }, { // 14.6 MHz
3444 }, { // 14.7 MHz
3450 }, { // 14.8 MHz
3456 }, { // 14.9 MHz
3462 }, { // 15.0 MHz
3468 }, { // 15.1 MHz
3474 }, { // 15.2 MHz
3480 }, { // 15.3 MHz
3486 }, { // 15.4 MHz
3492 }, { // 15.5 MHz
3498 }, { // 15.6 MHz
3504 }, { // 15.7 MHz
3510 }, { // 15.8 MHz
3516 }, { // 15.9 MHz
3522 }, { // 16.0 MHz
3537 v4l_dbg(1, cx25840_debug, client, "%s(%d)\n", __func__, ifHz); in cx23885_dif_setup()
3555 v4l_dbg(1, cx25840_debug, client, "%s(%d) again\n", __func__, ifHz); in cx23885_dif_setup()
3559 cx25840_write4(client, DIF_BPF_COEFF23, coeffs[1]); in cx23885_dif_setup()
3591 v4l_dbg(1, cx25840_debug, client, "%s() Selecting NTSC", in cx23888_std_setup()
3615 v4l_dbg(1, cx25840_debug, client, "%s() Selecting PAL-BG", in cx23888_std_setup()
3771 v4l_dbg(1, cx25840_debug, client, in cx25840_probe()
3773 client->addr << 1); in cx25840_probe()
3777 v4l_dbg(1, cx25840_debug, client, "device_id = 0x%04x\n", device_id); in cx25840_probe()
3795 client->addr << 1, client->adapter->name); in cx25840_probe()
3800 v4l_dbg(1, cx25840_debug, client, "cx25840 not found\n"); in cx25840_probe()
3842 client->addr << 1, client->adapter->name); in cx25840_probe()
3846 client->addr << 1, client->adapter->name); in cx25840_probe()
3850 client->addr << 1, client->adapter->name); in cx25840_probe()
3854 device_id, client->addr << 1, client->adapter->name); in cx25840_probe()
3866 (device_id & 0x0f) < 3 ? (device_id & 0x0f) + 1 in cx25840_probe()
3868 client->addr << 1, client->adapter->name); in cx25840_probe()
3875 client->addr << 1, client->adapter->name); in cx25840_probe()
3891 V4L2_CID_BRIGHTNESS, 0, 255, 1, 128); in cx25840_probe()
3893 V4L2_CID_CONTRAST, 0, 127, 1, 64); in cx25840_probe()
3895 V4L2_CID_SATURATION, 0, 127, 1, 64); in cx25840_probe()
3897 V4L2_CID_HUE, -128, 127, 1, 0); in cx25840_probe()
3914 default_volume = (((228 - default_volume) >> 1) + 23) << 9; in cx25840_probe()
3924 0, 1, 1, 0); in cx25840_probe()