Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285342
b: refs/heads/master
c: 48763e2
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 9, 2011
1 parent 8458560 commit e9f3efc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0433cd28f3a421e0be708c856c7d0c66d3f60bd7
refs/heads/master: 48763e2c6e76fbaa64229219593c1a456fd32c67
15 changes: 10 additions & 5 deletions trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,13 +1847,16 @@ static int SetOperationMode(struct drxk_state *state,
*/
switch (oMode) {
case OM_DVBT:
dprintk(1, ": DVB-T\n");
state->m_OperationMode = oMode;
status = SetDVBTStandard(state, oMode);
if (status < 0)
goto error;
break;
case OM_QAM_ITU_A: /* fallthrough */
case OM_QAM_ITU_C:
dprintk(1, ": DVB-C Annex %c\n",
(state->m_OperationMode == OM_QAM_ITU_A) ? 'A' : 'C');
state->m_OperationMode = oMode;
status = SetQAMStandard(state, oMode);
if (status < 0)
Expand Down Expand Up @@ -6183,7 +6186,10 @@ static int drxk_c_init(struct dvb_frontend *fe)
dprintk(1, "\n");
if (mutex_trylock(&state->ctlock) == 0)
return -EBUSY;
SetOperationMode(state, OM_QAM_ITU_A);
if (state->m_itut_annex_c)
SetOperationMode(state, OM_QAM_ITU_C);
else
SetOperationMode(state, OM_QAM_ITU_A);
return 0;
}

Expand Down Expand Up @@ -6219,12 +6225,11 @@ static int drxk_set_parameters(struct dvb_frontend *fe,
return -EINVAL;
}

if (state->m_OperationMode == OM_QAM_ITU_A ||
state->m_OperationMode == OM_QAM_ITU_C) {
if (fe->ops.info.type == FE_QAM) {
if (fe->dtv_property_cache.rolloff == ROLLOFF_13)
state->m_OperationMode = OM_QAM_ITU_C;
state->m_itut_annex_c = true;
else
state->m_OperationMode = OM_QAM_ITU_A;
state->m_itut_annex_c = false;
}

if (fe->ops.i2c_gate_ctrl)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/frontends/drxk_hard.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ struct drxk_state {
u8 m_TSDataStrength;
u8 m_TSClockkStrength;

bool m_itut_annex_c; /* If true, uses ITU-T DVB-C Annex C, instead of Annex A */

enum DRXMPEGStrWidth_t m_widthSTR; /**< MPEG start width */
u32 m_mpegTsStaticBitrate; /**< Maximum bitrate in b/s in case
static clockrate is selected */
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,8 @@ static int em28xx_dvb_init(struct em28xx *dev)
&dvb->fe[0]->ops.tuner_ops,
sizeof(dvb->fe[0]->ops.tuner_ops));

mfe_shared = 1;

break;
}
case EM2884_BOARD_TERRATEC_H5:
Expand Down Expand Up @@ -935,6 +937,8 @@ static int em28xx_dvb_init(struct em28xx *dev)
&dvb->fe[0]->ops.tuner_ops,
sizeof(dvb->fe[0]->ops.tuner_ops));

mfe_shared = 1;

break;
case EM28174_BOARD_PCTV_460E:
/* attach demod */
Expand Down

0 comments on commit e9f3efc

Please sign in to comment.