Skip to content

Commit 6649b11

Browse files
Malcolm Priestleysashalevin
authored andcommitted
[media] media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode
[ Upstream commit c9d57de ] When in FE_TUNE_MODE_ONESHOT the frontend must report the actual capabilities so user can take appropriate action. With frontends that can't do auto inversion this is done by dvb-core automatically so CAN_INVERSION_AUTO is valid. However, when in FE_TUNE_MODE_ONESHOT this is not true. So only set FE_CAN_INVERSION_AUTO in modes other than FE_TUNE_MODE_ONESHOT Signed-off-by: Malcolm Priestley <[email protected]> Cc: <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent bf114c8 commit 6649b11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/media/dvb-core/dvb_frontend.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,9 +2333,9 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
23332333
dev_dbg(fe->dvb->device, "%s: current delivery system on cache: %d, V3 type: %d\n",
23342334
__func__, c->delivery_system, fe->ops.info.type);
23352335

2336-
/* Force the CAN_INVERSION_AUTO bit on. If the frontend doesn't
2337-
* do it, it is done for it. */
2338-
info->caps |= FE_CAN_INVERSION_AUTO;
2336+
/* Set CAN_INVERSION_AUTO bit on in other than oneshot mode */
2337+
if (!(fepriv->tune_mode_flags & FE_TUNE_MODE_ONESHOT))
2338+
info->caps |= FE_CAN_INVERSION_AUTO;
23392339
err = 0;
23402340
break;
23412341
}

0 commit comments

Comments
 (0)