Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1347561
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 3.14 094/130] [media] media: dvb-core: Dont force CAN_INVERSION_AUTO in oneshot mode |
| Date | Wed, 02 Mar 2016 03:00:03 +0100 |
| Message-ID | <r84f1-EO-5@gated-at.bofh.it> (permalink) |
| References | <r82dd-7Iy-13@gated-at.bofh.it> |
| X-Original-To | <linux-kernel@vger.kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=linuxfoundation.org; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=gregkh@linuxfoundation.org; bh=22Xgw5i6v7QaB/ZDjKNa80OZOHE=; b=mpuoEcpGTOHZjyHCU/OTcf4erK/44QRwXKDYdMUqFGwyfEf+FI/o7uPJxy7VvgTXFxv1Ygbi0s+o 0RhazOdV6n0SYnP+met3VZG8sR6mzLAgEuNWvRDRwujQ5OHt93Zzgm3SZkQX+IT3d0yb+sz32bgk UW6zq4T5FA+N2PMLc/8= |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1456876409; h=From : Subject : To : Cc : Message-Id : In-Reply-To : References : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=7VkKoyt4aYtU0/3AZN9Ca9zbxOG5+rHSILtLKjrN3wA=; b=j556zcokojv9txI6Fz42qjoXlO9rAfJby18c3o8mlF/tIu0sDjqx2Ja5m6iqEpUhkU4VAk x6Qd0O3Enl43cMt8+HzpRFsxjVW7tetnCmsjMR3y6tHYZAOfd7osZS2cgR/odEOf1JRel3Zd W91FpsmhQ82WhEPhE8BXaKZl0br4M= |
| X-Mailer | git-send-email 2.7.2 |
| X-Report-Abuse | Please forward a copy of this message, including all headers, to abuse@mandrill.com |
| X-Report-Abuse | You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.9ae1532875f94326a986e410eced8a13 |
| X-Mandrill-User | md_30481620 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <stable@vger.kernel.org>, Malcolm Priestley <tvboxspy@gmail.com>, Mauro Carvalho Chehab <mchehab@osg.samsung.com> |
| X-Original-Date | Tue, 01 Mar 2016 23:53:29 +0000 |
| X-Original-Message-ID | <20160301234503.160467805@linuxfoundation.org> |
| X-Original-References | <20160301234459.768886030@linuxfoundation.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1347561 |
Show key headers only | View raw
3.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Malcolm Priestley <tvboxspy@gmail.com> commit c9d57de6103e343f2d4e04ea8d9e417e10a24da7 upstream. 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 <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/media/dvb-core/dvb_frontend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -2195,9 +2195,9 @@ static int dvb_frontend_ioctl_legacy(str dev_dbg(fe->dvb->device, "%s: current delivery system on cache: %d, V3 type: %d\n", __func__, c->delivery_system, fe->ops.info.type); - /* Force the CAN_INVERSION_AUTO bit on. If the frontend doesn't - * do it, it is done for it. */ - info->caps |= FE_CAN_INVERSION_AUTO; + /* Set CAN_INVERSION_AUTO bit on in other than oneshot mode */ + if (!(fepriv->tune_mode_flags & FE_TUNE_MODE_ONESHOT)) + info->caps |= FE_CAN_INVERSION_AUTO; err = 0; break; }
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 3.14 094/130] [media] media: dvb-core: Dont force CAN_INVERSION_AUTO in oneshot mode Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-02 03:00 +0100
csiph-web