-obj-$(CONFIG_AMLOGIC_ATV_DEMOD) += aml_atvdemod.o
+obj-$(CONFIG_AMLOGIC_ATV_DEMOD) += atvdemod_fe.o
-aml_atvdemod-objs = atvdemod_func.o atvauddemod_func.o atv_demod_v4l2.o atv_demod_driver.o atv_demod_ops.o
+atvdemod_fe-objs = atvdemod_func.o atvauddemod_func.o atv_demod_v4l2.o atv_demod_driver.o atv_demod_ops.o
ccflags-y += -I.
ccflags-y += -Idrivers/media/dvb-core
last_frq = atvdemod_param->param.frequency;
last_std = atvdemod_param->param.std;
#endif
- if (atvdemod_param->param.std != amlatvdemod_devp->std) {
+ if (1/*atvdemod_param->param.std != amlatvdemod_devp->std*/) {
amlatvdemod_devp->std = atvdemod_param->param.std;
amlatvdemod_devp->if_freq = atvdemod_param->if_freq;
amlatvdemod_devp->if_inv = atvdemod_param->if_inv;
case AML_ATVDEMOD_INIT:
if (get_atvdemod_state() != ATVDEMOD_STATE_WORK) {
atv_demod_enter_mode();
- if (fe->ops.tuner_ops.init)
- fe->ops.tuner_ops.init(fe);
+ if (fe->ops.tuner_ops.set_config)
+ fe->ops.tuner_ops.set_config(fe, NULL);
}
break;
break;
}
-#if 0
- if (*state == AML_ATVDEMOD_INIT && atvdemod_state != *state) {
- atv_demod_enter_mode();
- if (fe->ops.tuner_ops.init)
- fe->ops.tuner_ops.init(fe);
- } else if (*state == AML_ATVDEMOD_UNINIT && atvdemod_state != *state) {
- atv_demod_leave_mode();
- if (fe->ops.tuner_ops.release)
- fe->ops.tuner_ops.release(fe);
- } else if (*state == AML_ATVDEMOD_RESUME && atvdemod_state != *state) {
- if (get_atvdemod_state() == ATVDEMOD_STATE_SLEEP)
- atv_demod_enter_mode();
- if (fe->ops.tuner_ops.resume)
- fe->ops.tuner_ops.resume(fe);
- }
-#endif
-
mutex_unlock(&atv_demod_list_mutex);
return 0;
audio = V4L2_STD_SECAM_L;
} else {
/*V4L2_COLOR_STD_PAL*/
- *video_fmt |= V4L2_COLOR_STD_PAL;
amlatvdemod_set_std(AML_ATV_DEMOD_VIDEO_MODE_PROP_PAL_DK);
audio = aml_audiomode_autodet(fe);
pr_info("autodet audmode 0x%x\n", audio);
* and need tvafe identify signal type.
*/
if (p->std == 0) {
- p->std = V4L2_COLOR_STD_PAL | V4L2_STD_PAL_DK;
+ p->std = V4L2_COLOR_STD_NTSC | V4L2_STD_NTSC_M;
auto_search_std = true;
pr_dbg("[%s] user analog.std is 0, so set it to PAL | DK.\n",
__func__);
broad_std = AML_ATV_DEMOD_VIDEO_MODE_PROP_PAL_M;
if_freq = 4250000;
gde_curve = 0;
- } else if ((ptstd & V4L2_COLOR_STD_NTSC) && (ptstd & V4L2_STD_NTSC_M)) {
+ } else if ((ptstd & V4L2_COLOR_STD_NTSC) &&
+ ((ptstd & V4L2_STD_NTSC_M) || (ptstd & V4L2_STD_PAL_M))) {
amlatvdemod_devp->fre_offset = 1750000;
freq_hz_cvrt = AML_ATV_DEMOD_FREQ_60HZ_VERT;
if_freq = 4250000;
*/
int (*set_frequency)(struct dvb_frontend *fe, u32 frequency);
int (*set_bandwidth)(struct dvb_frontend *fe, u32 bandwidth);
+
+#ifdef CONFIG_AMLOGIC_DVB_COMPAT
+ int (*get_strength)(struct dvb_frontend *fe, s16 *strength);
+#endif
};
/**