mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
media: dvb-frontends/stid135: More debug info in stid135_read_status().
This commit is contained in:
@@ -664,6 +664,8 @@ static int stid135_read_status(struct dvb_frontend *fe, enum fe_status *status)
|
|||||||
//err |= fe_stid135_set_maxllr_rate(state->base->handle, state->nr +1, 90);
|
//err |= fe_stid135_set_maxllr_rate(state->base->handle, state->nr +1, 90);
|
||||||
|
|
||||||
*status |= FE_HAS_SIGNAL;
|
*status |= FE_HAS_SIGNAL;
|
||||||
|
dev_dbg(&state->base->i2c->dev, "%s: No lock, signal strength %d dBm !\n", __func__,
|
||||||
|
state->signal_info.power/1000);
|
||||||
|
|
||||||
p->strength.len = 2;
|
p->strength.len = 2;
|
||||||
p->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
p->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
||||||
@@ -688,6 +690,9 @@ static int stid135_read_status(struct dvb_frontend *fe, enum fe_status *status)
|
|||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev_dbg(&state->base->i2c->dev, "%s: Locked, signal strength %d dBm, C/N %d dB !\n", __func__,
|
||||||
|
state->signal_info.power/1000, state->signal_info.C_N/10);
|
||||||
|
|
||||||
p->strength.len = 2;
|
p->strength.len = 2;
|
||||||
p->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
p->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
||||||
p->strength.stat[0].svalue = state->signal_info.power;
|
p->strength.stat[0].svalue = state->signal_info.power;
|
||||||
|
Reference in New Issue
Block a user