static int power_down_aud(struct drx_demod_instance *demod);
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
static int power_up_aud(struct drx_demod_instance *demod, bool set_standard);
-#endif
static int
aud_ctrl_set_standard(struct drx_demod_instance *demod, enum drx_aud_standard *standard);
+#endif
static int
ctrl_set_cfg_pre_saw(struct drx_demod_instance *demod, struct drxj_cfg_pre_saw *pre_saw);
/*============================================================================*/
/*============================================================================*/
+#if 0
/**
* \fn void mult32(u32 a, u32 b, u32 *h, u32 *l)
* \brief 32bitsx32bits signed multiplication
}
}
}
+#endif
/*============================================================================*/
/*============================================================================*/
+#if 0
/**
* \brief Compute: 100 * 10^( gd_b / 200 ).
* \param u32 gd_b Gain in 0.1dB
return (result + 50) / 100;
}
-#ifndef DRXJ_DIGITAL_ONLY
#define FRAC_FLOOR 0
#define FRAC_CEIL 1
#define FRAC_ROUND 2
/*----------------------------------------------------------------------------*/
+#if 0
/**
* \fn int ctrl_get_cfg_mpeg_output()
* \brief Get MPEG output configuration of the device.
rw_error:
return -EIO;
}
+#endif
/*----------------------------------------------------------------------------*/
/* MPEG Output Configuration Functions - end */
* This routine should be called during a set channel of QAM/VSB
*
*/
+#if 0
static int set_mpeg_output_clock_rate(struct drx_demod_instance *demod)
{
struct drxj_data *ext_attr = (struct drxj_data *) (NULL);
rw_error:
return -EIO;
}
+#endif
/*----------------------------------------------------------------------------*/
/**
return -EIO;
}
+#if 0
/*----------------------------------------------------------------------------*/
/**
* \fn int ctrl_set_cfg_mpeg_output_misc()
rw_error:
return -EIO;
}
+#endif
/*----------------------------------------------------------------------------*/
/* miscellaneous configuartions - end */
return -EIO;
}
+#if 0
/*============================================================================*/
/**
* \fn int ctrl_getuio_cfg()
return 0;
}
+#endif
/**
* \fn int ctrl_uio_write()
return -EIO;
}
+#if 0
/**
*\fn int ctrl_uio_read
*\brief Read from a UIO.
rw_error:
return -EIO;
}
+#endif
/*---------------------------------------------------------------------------*/
/* UIO Configuration Functions - end */
return -EIO;
}
+#if 0
/**
* \fn int ctrl_set_cfg_smart_ant()
* \brief Set Smart Antenna.
rw_error:
return -EIO;
}
+#endif
static int scu_command(struct i2c_device_addr *dev_addr, struct drxjscu_cmd *cmd)
{
return rc;
}
-static int
-ctrl_i2c_write_read(struct drx_demod_instance *demod, struct drxi2c_data *i2c_data)
-{
- return -ENOTSUPP;
-}
-
/* -------------------------------------------------------------------------- */
/**
* \brief Measure result of ADC synchronisation
return -EIO;
}
+#if 0
/**
* \brief Configure IQM AF registers
* \param demod instance of demodulator.
return 0;
}
-
-/**
-* \brief Verifies whether microcode can be loaded.
-* \param demod Demodulator instance.
-* \return int.
-*/
-static int ctrl_validate_u_code(struct drx_demod_instance *demod)
-{
- u32 mc_dev, mc_patch;
- u16 ver_type;
-
- /* Check device.
- * Disallow microcode if:
- * - MC has version record AND
- * - device ID in version record is not 0 AND
- * - product ID in version record's device ID does not
- * match DRXJ1 product IDs - 0x393 or 0x394
- */
- ver_type = DRX_ATTR_MCRECORD(demod).aux_type;
- mc_dev = DRX_ATTR_MCRECORD(demod).mc_dev_type;
- mc_patch = DRX_ATTR_MCRECORD(demod).mc_base_version;
-
- if (DRX_ISMCVERTYPE(ver_type)) {
- if ((mc_dev != 0) &&
- (((mc_dev >> 16) & 0xFFF) != 0x393) &&
- (((mc_dev >> 16) & 0xFFF) != 0x394)) {
- /* Microcode is marked for another device - error */
- return -EINVAL;
- } else if (mc_patch != 0) {
- /* Patch not allowed because there is no ROM */
- return -EINVAL;
- }
- }
-
- /* Everything else: OK */
- return 0;
-}
+#endif
/*============================================================================*/
/*== END AUXILIARY FUNCTIONS ==*/
}
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_FM:
clp_sum_max = 1023;
sns_sum_max = 1023;
return -EIO;
}
+#if 0
/**
* \fn int get_sig_strength()
* \brief Retrieve signal strength for VSB and QAM.
rw_error:
return -EIO;
}
+#endif
/**
* \fn int get_acc_pkt_err()
}
#endif
+#if 0
/**
* \fn int ResetAccPktErr()
* \brief Reset Accumulating packet error count.
*/
static int ctrl_set_cfg_reset_pkt_err(struct drx_demod_instance *demod)
{
-#ifdef DRXJ_SIGNAL_ACCUM_ERR
struct drxj_data *ext_attr = NULL;
int rc;
u16 packet_error = 0;
return 0;
rw_error:
-#endif
return -EIO;
}
rw_error:
return -EIO;
}
+#endif
/*============================================================================*/
ext_attr->qam_rf_agc_cfg = *agc_settings;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
case DRX_STANDARD_PAL_SECAM_I:
return -EIO;
}
+#if 0
/**
* \fn int get_agc_rf ()
* \brief get configuration of RF AGC
*agc_settings = ext_attr->qam_rf_agc_cfg;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
case DRX_STANDARD_PAL_SECAM_I:
rw_error:
return -EIO;
}
+#endif
/**
* \fn int set_agc_if ()
ext_attr->qam_if_agc_cfg = *agc_settings;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
case DRX_STANDARD_PAL_SECAM_I:
return -EIO;
}
+#if 0
/**
* \fn int get_agc_if ()
* \brief get configuration of If AGC
*agc_settings = ext_attr->qam_if_agc_cfg;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
case DRX_STANDARD_PAL_SECAM_I:
case DRX_STANDARD_FM:
*agc_settings = ext_attr->atv_if_agc_cfg;
break;
-#endif
default:
return -EIO;
}
rw_error:
return -EIO;
}
+#endif
/**
* \fn int set_iqm_af ()
return -EIO;
}
+#if 0
/**
* \fn static short get_vsb_symb_err(struct i2c_device_addr *dev_addr, u32 *ber)
* \brief Get the values of ber in VSB mode
rw_error:
return -EIO;
}
+#endif
/**
* \fn static int get_vsbmer(struct i2c_device_addr *dev_addr, u16 *mer)
return -EIO;
}
+#if 0
/*============================================================================*/
/**
* \fn int ctrl_get_vsb_constel()
rw_error:
return -EIO;
}
+#endif
/*============================================================================*/
/*== END 8VSB DATAPATH FUNCTIONS ==*/
return -EIO;
}
+#if 0
/**
* \fn int ctrl_get_qam_constel()
* \brief Retreive a QAM constellation point via I2C.
rw_error:
return -EIO;
}
+#endif /* #if 0 */
#endif /* #ifndef DRXJ_VSB_ONLY */
/*============================================================================*/
*/
/* -------------------------------------------------------------------------- */
+#if 0
/**
* \brief Get array index for atv coef (ext_attr->atvTopCoefX[index])
* \param standard
}
/* -------------------------------------------------------------------------- */
-#ifndef DRXJ_DIGITAL_ONLY
/**
* \fn int ctrl_set_cfg_atv_equ_coef()
* \brief Set ATV equalizer coefficients
rw_error:
return -EIO;
}
-#endif /* #ifndef DRXJ_DIGITAL_ONLY */
+#endif
/* -------------------------------------------------------------------------- */
* Assuming that IQM, ATV and AUD blocks have been reset and are in STOP mode
*
*/
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
#define SCU_RAM_ATV_ENABLE_IIR_WA__A 0x831F6D /* TODO remove after done with reg import */
static int
set_atv_standard(struct drx_demod_instance *demod, enum drx_standard *standard)
rw_error:
return -EIO;
}
-#endif
/* -------------------------------------------------------------------------- */
-#ifndef DRXJ_DIGITAL_ONLY
/**
* \fn int set_atv_channel ()
* \brief Set ATV channel.
rw_error:
return -EIO;
}
-#endif
/* -------------------------------------------------------------------------- */
* channel->frequency. Determines the value for channel->bandwidth.
*
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
get_atv_channel(struct drx_demod_instance *demod,
struct drx_channel *channel, enum drx_standard standard)
rw_error:
return -EIO;
}
-#endif /* DRXJ_DIGITAL_ONLY */
/*============================================================================*/
/*== END ATV DATAPATH FUNCTIONS ==*/
/*============================================================================*/
-#ifndef DRXJ_EXCLUDE_AUDIO
/*===========================================================================*/
/*===========================================================================*/
/*== AUDIO DATAPATH FUNCTIONS ==*/
rw_error:
return -EIO;
}
+#endif
/*============================================================================*/
return -EIO;
}
+#if 0
/*============================================================================*/
/**
* \brief Get Modus data from audio RAM
return -EIO;
}
-#endif
-
/*===========================================================================*/
/*== END AUDIO DATAPATH FUNCTIONS ==*/
/*===========================================================================*/
/*== OOB DATAPATH FUNCTIONS ==*/
/*============================================================================*/
/*============================================================================*/
-#ifndef DRXJ_DIGITAL_ONLY
/**
* \fn int get_oob_lock_status ()
* \brief Get OOB lock status.
rw_error:
return -EIO;
}
-#endif /*#ifndef DRXJ_DIGITAL_ONLY */
+#endif
/**
* \fn int set_orx_nsu_aox()
/* Coefficients for the nyquist fitler (total: 27 taps) */
#define NYQFILTERLEN 27
+#if 0
static int ctrl_set_oob(struct drx_demod_instance *demod, struct drxoob *oob_param)
{
-#ifndef DRXJ_DIGITAL_ONLY
int rc;
s32 freq = 0; /* KHz */
struct i2c_device_addr *dev_addr = NULL;
return 0;
rw_error:
-#endif
return -EIO;
}
static int
ctrl_get_oob(struct drx_demod_instance *demod, struct drxoob_status *oob_status)
{
-#ifndef DRXJ_DIGITAL_ONLY
int rc;
struct i2c_device_addr *dev_addr = NULL;
struct drxj_data *ext_attr = NULL;
return 0;
rw_error:
-#endif
return -EIO;
}
* \param cfg_data Pointer to configuration parameter
* \return Error code
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
ctrl_set_cfg_oob_pre_saw(struct drx_demod_instance *demod, u16 *cfg_data)
{
rw_error:
return -EIO;
}
-#endif
/**
* \fn int ctrl_get_cfg_oob_pre_saw()
* \param cfg_data Pointer to configuration parameter
* \return Error code
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
ctrl_get_cfg_oob_pre_saw(struct drx_demod_instance *demod, u16 *cfg_data)
{
return 0;
}
-#endif
/**
* \fn int ctrl_set_cfg_oob_lo_power()
* \brief Configure LO Power value
* \param cfg_data Pointer to enum drxj_cfg_oob_lo_power ** \return Error code
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
ctrl_set_cfg_oob_lo_power(struct drx_demod_instance *demod, enum drxj_cfg_oob_lo_power *cfg_data)
{
rw_error:
return -EIO;
}
-#endif
/**
* \fn int ctrl_get_cfg_oob_lo_power()
* \brief Configure LO Power value
* \param cfg_data Pointer to enum drxj_cfg_oob_lo_power ** \return Error code
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
ctrl_get_cfg_oob_lo_power(struct drx_demod_instance *demod, enum drxj_cfg_oob_lo_power *cfg_data)
{
case DRX_STANDARD_ITU_B:
case DRX_STANDARD_ITU_C:
#endif /* DRXJ_VSB_ONLY */
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC:
case DRX_STANDARD_FM:
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_I:
case DRX_STANDARD_PAL_SECAM_L:
case DRX_STANDARD_PAL_SECAM_LP:
-#endif /* DRXJ_DIGITAL_ONLY */
+#endif
break;
case DRX_STANDARD_UNKNOWN:
default:
return -EINVAL;
}
}
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
if (standard == DRX_STANDARD_PAL_SECAM_BG) {
switch (channel->bandwidth) {
case DRX_BANDWIDTH_7MHZ: /* fall through */
if (demod->my_tuner != NULL) {
/* Determine tuner mode and freq to tune to ... */
switch (standard) {
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
goto rw_error;
}
break;
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_FM: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
return -EIO;
}
+#if 0
/*=============================================================================
===== ctrl_get_channel() ==========================================================
===========================================================================*/
}
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_NTSC: /* fall trough */
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
goto rw_error;
}
break;
-#endif
case DRX_STANDARD_UNKNOWN: /* fall trough */
default:
return -EIO;
rw_error:
return -EIO;
}
+#endif
/*=============================================================================
===== SigQuality() ==========================================================
max_mer);
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
case DRX_STANDARD_PAL_SECAM_I:
SCU_RAM_COMMAND_CMD_DEMOD_GET_LOCK;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC:
case DRX_STANDARD_PAL_SECAM_BG:
case DRX_STANDARD_PAL_SECAM_DK:
/*============================================================================*/
+#if 0
/**
* \fn int ctrl_constel()
* \brief Retreive a constellation point via I2C.
rw_error:
return -EIO;
}
+#endif
/*============================================================================*/
goto rw_error;
}
break;
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_FM: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
goto rw_error;
}
break;
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_FM: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
return -EIO;
}
+#if 0
/*============================================================================*/
/**
rw_error:
return -EIO;
}
+#endif
/*============================================================================*/
ext_attr->vsb_pre_saw_cfg.reference = 0x07;
ext_attr->vsb_pre_saw_cfg.use_pre_saw = true;
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
/* Initialize default AFE configuartion for ATV */
ext_attr->atv_rf_agc_cfg.standard = DRX_STANDARD_NTSC;
ext_attr->atv_rf_agc_cfg.ctrl_mode = DRX_AGC_CTRL_AUTO;
return -EIO;
}
-/*============================================================================*/
-
-/**
-* \fn int ctrl_version()
-* \brief Report version of microcode and if possible version of device
-* \param demod Pointer to demodulator instance.
-* \param version_list Pointer to pointer of linked list of versions.
-* \return int.
-*
-* Using static structures so no allocation of memory is needed.
-* Filling in all the fields each time, cause you don't know if they are
-* changed by the application.
-*
-* For device:
-* Major version number will be last two digits of family number.
-* Minor number will be full respin number
-* Patch will be metal fix number+1
-* Examples:
-* DRX3942J A2 => number: 42.1.2 text: "DRX3942J:A2"
-* DRX3933J B1 => number: 33.2.1 text: "DRX3933J:B1"
-*
-*/
-static int
-ctrl_version(struct drx_demod_instance *demod, struct drx_version_list **version_list)
-{
- struct drxj_data *ext_attr = (struct drxj_data *) (NULL);
- struct i2c_device_addr *dev_addr = (struct i2c_device_addr *)(NULL);
- struct drx_common_attr *common_attr = (struct drx_common_attr *) (NULL);
- int rc;
- u16 ucode_major_minor = 0; /* BCD Ma:Ma:Ma:Mi */
- u16 ucode_patch = 0; /* BCD Pa:Pa:Pa:Pa */
- u16 major = 0;
- u16 minor = 0;
- u16 patch = 0;
- u16 idx = 0;
- u32 jtag = 0;
- u16 subtype = 0;
- u16 mfx = 0;
- u16 bid = 0;
- u16 key = 0;
- static char ucode_name[] = "Microcode";
- static char device_name[] = "Device";
-
- dev_addr = demod->my_i2c_dev_addr;
- ext_attr = (struct drxj_data *) demod->my_ext_attr;
- common_attr = (struct drx_common_attr *) demod->my_common_attr;
-
- /* Microcode version *************************************** */
-
- ext_attr->v_version[0].module_type = DRX_MODULE_MICROCODE;
- ext_attr->v_version[0].module_name = ucode_name;
- ext_attr->v_version[0].v_string = ext_attr->v_text[0];
-
- if (common_attr->is_opened == true) {
- rc = drxj_dap_scu_atomic_read_reg16(dev_addr, SCU_RAM_VERSION_HI__A, &ucode_major_minor, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
- rc = drxj_dap_scu_atomic_read_reg16(dev_addr, SCU_RAM_VERSION_LO__A, &ucode_patch, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
-
- /* Translate BCD to numbers and string */
- /* TODO: The most significant Ma and Pa will be ignored, check with spec */
- minor = (ucode_major_minor & 0xF);
- ucode_major_minor >>= 4;
- major = (ucode_major_minor & 0xF);
- ucode_major_minor >>= 4;
- major += (10 * (ucode_major_minor & 0xF));
- patch = (ucode_patch & 0xF);
- ucode_patch >>= 4;
- patch += (10 * (ucode_patch & 0xF));
- ucode_patch >>= 4;
- patch += (100 * (ucode_patch & 0xF));
- } else {
- /* No microcode uploaded, No Rom existed, set version to 0.0.0 */
- patch = 0;
- minor = 0;
- major = 0;
- }
- ext_attr->v_version[0].v_major = major;
- ext_attr->v_version[0].v_minor = minor;
- ext_attr->v_version[0].v_patch = patch;
-
- if (major / 10 != 0) {
- ext_attr->v_version[0].v_string[idx++] =
- ((char)(major / 10)) + '0';
- major %= 10;
- }
- ext_attr->v_version[0].v_string[idx++] = ((char)major) + '0';
- ext_attr->v_version[0].v_string[idx++] = '.';
- ext_attr->v_version[0].v_string[idx++] = ((char)minor) + '0';
- ext_attr->v_version[0].v_string[idx++] = '.';
- if (patch / 100 != 0) {
- ext_attr->v_version[0].v_string[idx++] =
- ((char)(patch / 100)) + '0';
- patch %= 100;
- }
- if (patch / 10 != 0) {
- ext_attr->v_version[0].v_string[idx++] =
- ((char)(patch / 10)) + '0';
- patch %= 10;
- }
- ext_attr->v_version[0].v_string[idx++] = ((char)patch) + '0';
- ext_attr->v_version[0].v_string[idx] = '\0';
-
- ext_attr->v_list_elements[0].version = &(ext_attr->v_version[0]);
- ext_attr->v_list_elements[0].next = &(ext_attr->v_list_elements[1]);
-
- /* Device version *************************************** */
- /* Check device id */
- rc = DRXJ_DAP.read_reg16func(dev_addr, SIO_TOP_COMM_KEY__A, &key, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
- rc = DRXJ_DAP.write_reg16func(dev_addr, SIO_TOP_COMM_KEY__A, 0xFABA, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
- rc = DRXJ_DAP.read_reg32func(dev_addr, SIO_TOP_JTAGID_LO__A, &jtag, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
- rc = DRXJ_DAP.read_reg16func(dev_addr, SIO_PDR_UIO_IN_HI__A, &bid, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
- rc = DRXJ_DAP.write_reg16func(dev_addr, SIO_TOP_COMM_KEY__A, key, 0);
- if (rc != 0) {
- pr_err("error %d\n", rc);
- goto rw_error;
- }
-
- ext_attr->v_version[1].module_type = DRX_MODULE_DEVICE;
- ext_attr->v_version[1].module_name = device_name;
- ext_attr->v_version[1].v_string = ext_attr->v_text[1];
- ext_attr->v_version[1].v_string[0] = 'D';
- ext_attr->v_version[1].v_string[1] = 'R';
- ext_attr->v_version[1].v_string[2] = 'X';
- ext_attr->v_version[1].v_string[3] = '3';
- ext_attr->v_version[1].v_string[4] = '9';
- ext_attr->v_version[1].v_string[7] = 'J';
- ext_attr->v_version[1].v_string[8] = ':';
- ext_attr->v_version[1].v_string[11] = '\0';
-
- /* DRX39xxJ type Ax */
- /* TODO semantics of mfx and spin are unclear */
- subtype = (u16) ((jtag >> 12) & 0xFF);
- mfx = (u16) (jtag >> 29);
- ext_attr->v_version[1].v_minor = 1;
- if (mfx == 0x03)
- ext_attr->v_version[1].v_patch = mfx + 2;
- else
- ext_attr->v_version[1].v_patch = mfx + 1;
- ext_attr->v_version[1].v_string[6] = ((char)(subtype & 0xF)) + '0';
- ext_attr->v_version[1].v_major = (subtype & 0x0F);
- subtype >>= 4;
- ext_attr->v_version[1].v_string[5] = ((char)(subtype & 0xF)) + '0';
- ext_attr->v_version[1].v_major += 10 * subtype;
- ext_attr->v_version[1].v_string[9] = 'A';
- if (mfx == 0x03)
- ext_attr->v_version[1].v_string[10] = ((char)(mfx & 0xF)) + '2';
- else
- ext_attr->v_version[1].v_string[10] = ((char)(mfx & 0xF)) + '1';
-
- ext_attr->v_list_elements[1].version = &(ext_attr->v_version[1]);
- ext_attr->v_list_elements[1].next = (struct drx_version_list *) (NULL);
-
- *version_list = &(ext_attr->v_list_elements[0]);
-
- return 0;
-
-rw_error:
- *version_list = (struct drx_version_list *) (NULL);
- return -EIO;
-
-}
-
+#if 0
/*============================================================================*/
/**
common_attr->current_power_mode = org_power_mode;
return -EIO;
}
+#endif
/*============================================================================*/
/*== CTRL Set/Get Config related functions ===================================*/
/*============================================================================*/
+#if 0
/*===== SigStrength() =========================================================*/
/**
* \fn int ctrl_sig_strength()
goto rw_error;
}
break;
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
goto rw_error;
}
break;
-#endif
case DRX_STANDARD_UNKNOWN: /* fallthrough */
default:
return -EINVAL;
* \return int.
*
*/
-#ifndef DRXJ_DIGITAL_ONLY
static int
ctrl_get_cfg_oob_misc(struct drx_demod_instance *demod, struct drxj_cfg_oob_misc *misc)
{
rw_error:
return -EIO;
}
-#endif
/**
* \fn int ctrl_get_cfg_vsb_misc()
case DRX_STANDARD_ITU_B: /* fallthrough */
case DRX_STANDARD_ITU_C:
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
case DRX_STANDARD_ITU_B: /* fallthrough */
case DRX_STANDARD_ITU_C:
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
case DRX_STANDARD_ITU_B: /* fallthrough */
case DRX_STANDARD_ITU_C:
#endif
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_LP: /* fallthrough */
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_FM:
-#endif
return set_agc_rf(demod, agc_settings, true);
case DRX_STANDARD_UNKNOWN:
default:
case DRX_STANDARD_ITU_B: /* fallthrough */
case DRX_STANDARD_ITU_C:
#endif
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_LP: /* fallthrough */
case DRX_STANDARD_NTSC: /* fallthrough */
case DRX_STANDARD_FM:
-#endif
return get_agc_rf(demod, agc_settings);
case DRX_STANDARD_UNKNOWN:
default:
}
/*============================================================================*/
+#endif
/**
* \fn int ctrl_set_cfg_pre_saw()
ext_attr->qam_pre_saw_cfg = *pre_saw;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
/*============================================================================*/
+#if 0
/**
* \fn int ctrl_get_cfg_pre_saw()
* \brief Get Pre-saw reference setting.
*pre_saw = ext_attr->qam_pre_saw_cfg;
break;
#endif
-#ifndef DRXJ_DIGITAL_ONLY
case DRX_STANDARD_PAL_SECAM_BG: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_DK: /* fallthrough */
case DRX_STANDARD_PAL_SECAM_I: /* fallthrough */
ext_attr->atv_pre_saw_cfg.standard = DRX_STANDARD_FM;
*pre_saw = ext_attr->atv_pre_saw_cfg;
break;
-#endif
+
default:
return -EINVAL;
}
cfg_data));
case DRXJ_CFG_RESET_PACKET_ERR:
return ctrl_set_cfg_reset_pkt_err(demod);
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRXJ_CFG_OOB_PRE_SAW:
return ctrl_set_cfg_oob_pre_saw(demod, (u16 *)(config->cfg_data));
case DRXJ_CFG_OOB_LO_POW:
case DRXJ_CFG_SYMBOL_CLK_OFFSET:
return ctrl_get_cfg_symbol_clock_offset(demod,
(s32 *)config->cfg_data);
-#ifndef DRXJ_DIGITAL_ONLY
+#if 0
case DRXJ_CFG_OOB_MISC:
return ctrl_get_cfg_oob_misc(demod,
(struct drxj_cfg_oob_misc *) config->cfg_data);
rw_error:
return -EIO;
}
+#endif
/*=============================================================================
===== EXPORTED FUNCTIONS ====================================================*/