Lines Matching +full:0 +full:xc4000
43 #include "xc4000.h"
95 } while (0)
267 return 0; in fe_set_config()
308 dprintk("tuner 0x%02x: Tuner type absent\n", c->addr); in set_type()
350 buffer[0] = 0x0b; in set_type()
351 buffer[1] = 0xdc; in set_type()
352 buffer[2] = 0x9c; in set_type()
353 buffer[3] = 0x60; in set_type()
356 buffer[2] = 0x86; in set_type()
357 buffer[3] = 0x54; in set_type()
364 buffer[0] = 0x0b; in set_type()
365 buffer[1] = 0xdc; in set_type()
366 buffer[2] = 0x86; in set_type()
367 buffer[3] = 0xa4; in set_type()
381 tune_now = 0; in set_type()
394 .if_khz = 0, in set_type()
400 tune_now = 0; in set_type()
408 .if_khz = 0, in set_type()
415 tune_now = 0; in set_type()
427 tune_now = 0; in set_type()
436 .default_pm = 0, in set_type()
437 .dvb_amplitude = 0, in set_type()
438 .set_smoothedcvbs = 0, in set_type()
439 .if_khz = 0 in set_type()
444 tune_now = 0; in set_type()
494 dprintk("%s %s I2C addr 0x%02x with type %d used for 0x%02x\n", in set_type()
526 dprintk("Calling set_type_addr for type=%d, addr=0x%02x, mode=0x%02x, config=%p\n", in tuner_s_type_addr()
538 …dprintk("set addr discarded for type %i, mask %x. Asked to change tuner at addr 0x%02x, with mask … in tuner_s_type_addr()
542 return 0; in tuner_s_type_addr()
561 return 0; in tuner_s_config()
565 return 0; in tuner_s_config()
569 return 0; in tuner_s_config()
652 memset(buffer, 0, sizeof(buffer)); in tuner_probe()
654 if (rc >= 0) in tuner_probe()
661 case 0x10: in tuner_probe()
664 t->i2c->addr) >= 0) { in tuner_probe()
675 case 0x42: in tuner_probe()
676 case 0x43: in tuner_probe()
677 case 0x4a: in tuner_probe()
678 case 0x4b: in tuner_probe()
682 t->i2c->addr) >= 0) { in tuner_probe()
691 case 0x60: in tuner_probe()
694 >= 0) { in tuner_probe()
720 dprintk("Setting mode_mask to 0x%02x\n", t->mode_mask); in tuner_probe()
739 &t->pad[0]); in tuner_probe()
749 &t->pad[0]); in tuner_probe()
753 if (ret < 0) { in tuner_probe()
771 return 0; in tuner_probe()
808 * returns 0.
824 if ((t_mode & t->mode_mask) == 0) in check_mode()
827 return 0; in check_mode()
837 * Otherwise, changes the mode and returns 0.
855 return 0; in set_mode()
861 * @freq: frequency to set (0 means to use the current frequency)
907 if (freq < tv_range[0] * 16 || freq > tv_range[1] * 16) { in set_tv_freq()
909 freq / 16, freq % 16 * 100 / 16, tv_range[0], in set_tv_freq()
913 if (freq < tv_range[0] * 16) in set_tv_freq()
914 freq = tv_range[0] * 16; in set_tv_freq()
943 if (pal[0] != '-' && (std & V4L2_STD_PAL) == V4L2_STD_PAL) { in tuner_fixup_std()
944 switch (pal[0]) { in tuner_fixup_std()
973 if (secam[0] != '-' && (std & V4L2_STD_SECAM) == V4L2_STD_SECAM) { in tuner_fixup_std()
974 switch (secam[0]) { in tuner_fixup_std()
1000 if (ntsc[0] != '-' && (std & V4L2_STD_NTSC) == V4L2_STD_NTSC) { in tuner_fixup_std()
1001 switch (ntsc[0]) { in tuner_fixup_std()
1048 if (freq < radio_range[0] * 16000 || freq > radio_range[1] * 16000) { in set_radio_freq()
1051 radio_range[0], radio_range[1]); in set_radio_freq()
1054 if (freq < radio_range[0] * 16000) in set_radio_freq()
1055 freq = radio_range[0] * 16000; in set_radio_freq()
1114 pr_info("Standard: 0x%08lx\n", (unsigned long)t->std); in tuner_status()
1118 u32 tuner_status = 0; in tuner_status()
1142 if (set_mode(t, V4L2_TUNER_RADIO) == 0) in tuner_s_radio()
1143 set_freq(t, 0); in tuner_s_radio()
1144 return 0; in tuner_s_radio()
1164 return 0; in tuner_standby()
1172 return 0; in tuner_s_std()
1177 set_freq(t, 0); in tuner_s_std()
1178 return 0; in tuner_s_std()
1185 if (set_mode(t, f->type) == 0) in tuner_s_frequency()
1187 return 0; in tuner_s_frequency()
1206 return 0; in tuner_g_frequency()
1218 return 0; in tuner_g_frequency()
1238 return 0; in tuner_g_tuner()
1249 vt->rangelow = tv_range[0] * 16; in tuner_g_tuner()
1251 return 0; in tuner_g_tuner()
1258 u32 tuner_status = 0; in tuner_g_tuner()
1269 vt->rangelow = radio_range[0] * 16000; in tuner_g_tuner()
1272 return 0; in tuner_g_tuner()
1289 return 0; in tuner_s_tuner()
1303 set_freq(t, 0); in tuner_s_tuner()
1305 return 0; in tuner_s_tuner()
1315 return 0; in tuner_log_status()
1332 return 0; in tuner_suspend()
1345 if (set_mode(t, t->mode) == 0) in tuner_resume()
1346 set_freq(t, 0); in tuner_resume()
1348 return 0; in tuner_resume()