diff --git a/availink/avl62x1/avl62x1_top.c b/availink/avl62x1/avl62x1_top.c index 7a0c62c..8fdafe6 100644 --- a/availink/avl62x1/avl62x1_top.c +++ b/availink/avl62x1/avl62x1_top.c @@ -895,7 +895,7 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status) safe_mutex_unlock(&i2cctl_fe_mutex); - if (!r && lock == avl62x1_status_locked) + if (!r && lock == avl62x1_status_locked) { *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC | @@ -908,7 +908,6 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status) *status = FE_HAS_SIGNAL; } - return r; } diff --git a/availink/avl62x1/sdk_src/avl62x1_lib.h b/availink/avl62x1/sdk_src/avl62x1_lib.h index 993a957..cf91447 100644 --- a/availink/avl62x1/sdk_src/avl62x1_lib.h +++ b/availink/avl62x1/sdk_src/avl62x1_lib.h @@ -19,7 +19,7 @@ //build number = increment on every change to implementation #define AVL62X1_VER_MAJOR 3 #define AVL62X1_VER_MINOR 8 -#define AVL62X1_VER_BUILD 2 +#define AVL62X1_VER_BUILD 3 #define AVL62X1_CHIP_ID 0x62615ca8 diff --git a/availink/avl68x2/avl68x2_top.c b/availink/avl68x2/avl68x2_top.c index 28670ab..d4f2392 100644 --- a/availink/avl68x2/avl68x2_top.c +++ b/availink/avl68x2/avl68x2_top.c @@ -185,37 +185,42 @@ static long i2cctl_dev_ioctl(struct file *file, unsigned int cmd, unsigned long if (_IOC_NR(cmd) > I2CCTL_IOC_MAXNR) return -ENOTTY; - req = (struct i2cctl_ioctl_lock_req *)arg; switch (cmd) { case I2CCTL_IOCLOCK: - if(req->demod) { - mutex_lock(&i2cctl_fe_mutex); - p_debug_lvl(4,"locked demod"); + if (req->demod) + { + mutex_lock(&i2cctl_fe_mutex); + p_debug_lvl(4, "locked demod"); } - if(req->tuner) { - mutex_lock(&i2cctl_tuneri2c_mutex); - p_debug_lvl(4,"locked tuner"); + if (req->tuner) + { + mutex_lock(&i2cctl_tuneri2c_mutex); + p_debug_lvl(4, "locked tuner"); } break; case I2CCTL_IOCUNLOCK: - if(req->demod) { - if(mutex_is_locked(&i2cctl_fe_mutex)) { - mutex_unlock(&i2cctl_fe_mutex); - p_debug_lvl(4,"unlocked demod"); - } + if (req->demod) + { + if (mutex_is_locked(&i2cctl_fe_mutex)) + { + mutex_unlock(&i2cctl_fe_mutex); + p_debug_lvl(4, "unlocked demod"); + } } - if(req->tuner) { - if(mutex_is_locked(&i2cctl_tuneri2c_mutex)) { - mutex_unlock(&i2cctl_tuneri2c_mutex); - p_debug_lvl(4,"unlocked tuner"); - } + if (req->tuner) + { + if (mutex_is_locked(&i2cctl_tuneri2c_mutex)) + { + mutex_unlock(&i2cctl_tuneri2c_mutex); + p_debug_lvl(4, "unlocked tuner"); + } } break; default: /* redundant, as cmd was checked against MAXNR */ - p_error("Unknown IOCTL %d",cmd); + p_error("Unknown IOCTL %d", cmd); return -ENOTTY; } @@ -366,7 +371,7 @@ static int diseqc_set_voltage( p_debug("voltage 18"); break; default: - safe_mutex_unlock(&i2cctl_fe_mutex); + safe_mutex_unlock(&i2cctl_fe_mutex); return -EINVAL; } ret = avl68x2_demod_set_gpio(AVL_Pin37, pwr, priv->chip); @@ -386,7 +391,7 @@ static int avl68x2_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) if (enable) { - mutex_lock(&i2cctl_tuneri2c_mutex); + mutex_lock(&i2cctl_tuneri2c_mutex); ret = avl68x2_demod_i2c_passthru_on(priv->chip); } else @@ -1264,8 +1269,9 @@ static int avl68x2_read_status(struct dvb_frontend *fe, enum fe_status *status) (priv->chip->chip_pub->i2c_addr >> AVL_DEMOD_ID_SHIFT) & AVL_DEMOD_ID_MASK; - if(bs_states[demod_id].bs_mode) { - if(bs_states[demod_id].info.progress == 100) + if (bs_states[demod_id].bs_mode) + { + if (bs_states[demod_id].info.progress == 100) *status = FE_HAS_LOCK; else *status = FE_NONE; @@ -1273,34 +1279,36 @@ static int avl68x2_read_status(struct dvb_frontend *fe, enum fe_status *status) } mutex_lock(&i2cctl_fe_mutex); - + ret = avl68x2_demod_get_lock_status(&lock, priv->chip); - if(debug > 1) { - ret |= avl68x2_demod_get_snr (&SNR_x100db, priv->chip); - ret = (int)avl68x2_demod_get_per(&ber, priv->chip); - printk("read status %d, snr = %d, per = %d\n",*status, SNR_x100db, ber); + if (debug > 1) + { + ret |= avl68x2_demod_get_snr(&SNR_x100db, priv->chip); + ret = (int)avl68x2_demod_get_per(&ber, priv->chip); + printk("read status %d, snr = %d, per = %d\n", + *status, SNR_x100db, ber); } safe_mutex_unlock(&i2cctl_fe_mutex); - - if (!ret && lock == AVL_STATUS_LOCK) + + if (!ret && lock == AVL_STATUS_LOCK) { *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC | FE_HAS_LOCK; ret |= get_frontend(fe, &fe->dtv_property_cache); - avl68x2_set_lock_led(fe,1); + avl68x2_set_lock_led(fe, 1); } else { *status = FE_HAS_SIGNAL; - avl68x2_set_lock_led(fe,0); + avl68x2_set_lock_led(fe, 0); } - #if INCLUDE_STDOUT - if(debug > 2) { - printk("%s",read_stdout(fe)); + if (debug > 2) + { + printk("%s", read_stdout(fe)); } #endif diff --git a/availink/avl68x2/sdk_src/avl68x2_internal.h b/availink/avl68x2/sdk_src/avl68x2_internal.h index d3fa1c4..58da595 100644 --- a/availink/avl68x2/sdk_src/avl68x2_internal.h +++ b/availink/avl68x2/sdk_src/avl68x2_internal.h @@ -17,7 +17,7 @@ //build number = increment on every change to implementation #define AVL68X2_VER_MAJOR 2 #define AVL68X2_VER_MINOR 19 -#define AVL68X2_VER_BUILD 1 +#define AVL68X2_VER_BUILD 2 #define AVL68XX 0x68624955