Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2015170imm; Thu, 24 May 2018 04:33:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroMeJ50t1vuCEqPtJPwkMKvxnNH2wdz8FKFRsPled+vUbX+NCjBfXsWZ4l/WJztPacTODO X-Received: by 2002:a65:52cc:: with SMTP id z12-v6mr5522149pgp.126.1527161582771; Thu, 24 May 2018 04:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161582; cv=none; d=google.com; s=arc-20160816; b=t7YHx9hvWHx6uNy1f15bfcqehlcvbuTTMUaXRLeAeAS8N3YngoUEgIBo3Gpkr8U04u SsytMd9PHtSbMccEa1+56GwZ1RGXVE36MN67Jay4pX57lDe57ENk+4gFs5IGAXUXRftI O6jsbSnrnRD2/cXadlKTZrMQSE2dJSqQgd+rRoSCES4ZUmZ+29KeIo6lBBNcixrw7IC/ H/WhzB0fGOycwv0FTyKZwdGtGkNX8gycIO25GrAOlekt5qtRvG6YQ3o91eCY8sveVwyv Am3u6xzhpNq8gtizCPfIEfo993Lv41D8wXYvzkdVNuv56lW5/kfQ7N/WR4jo8ICqoftq WwqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=yQfiXnTRn67I+DxEO4uuS3B+EleyIXfwpt7JAagsy2k=; b=JOoo1vwov2MxTwa/UCpULLyQLQLtn7FQk7kJMCS5w1PqKwWK6KQHy1acQI4qwnOZT9 rrvAaPxdznxgyCMhiFd73s0R1muVsMjASzzFHivJCxXF2uw1XsibXqgwreat4fwuXkTc f1PaLXlrRUuqAL4DZKeGHxurKJ8jJdtU+fmquB9vAxgrrjoWADZEwhbcA6PEM9nQXxNv RVtOR277Q7MSQtMhrHDbRB4VM+A2q/LDO6SIhhymJVXszzKyYD64SQOI66ej7DPVTLS0 FVyIzIShpiZEdKalaM0xAZlZU/nOywW1ptWyS03NVDXNrNUYgtxbtPj5jCihdOIXgxfb qm5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BomcxnyV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s70-v6si14055358pfs.157.2018.05.24.04.32.47; Thu, 24 May 2018 04:33:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BomcxnyV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967621AbeEXJuo (ORCPT + 99 others); Thu, 24 May 2018 05:50:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:42326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967238AbeEXJui (ORCPT ); Thu, 24 May 2018 05:50:38 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 593F9208A0; Thu, 24 May 2018 09:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155437; bh=5KLrJnAxAFiFcu2+PIBulB5wTDCSbiCmJRS3vPIzg30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BomcxnyVjpDk1qW0WN3c1ZFdR+xbANrf5FV/zCQjtXQ0cwjowqu01lHOoM5iHqoO5 34r0C14WuB/cihaL8GMFo/YyqCGZqlQxCTUeMoVTA1o/8lnqRQUAze4Kc73DfvT+kF qXJCTA5Abh9UK4/dR1+8/v+K56jZXYWK4qz6nvng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 85/96] media: vivid: fix incorrect capabilities for radio Date: Thu, 24 May 2018 11:39:08 +0200 Message-Id: <20180524093610.271506787@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans Verkuil [ Upstream commit 65243386f41d38460bfd4375d231a7c0346d0401 ] The vivid driver has two custom controls that change the behavior of RDS. Depending on the control setting the V4L2_CAP_READWRITE capability is toggled. However, after an earlier commit the capability was no longer set correctly. This is now fixed. Fixes: 9765a32cd8 ("vivid: set device_caps in video_device") Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/vivid/vivid-ctrls.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/platform/vivid/vivid-ctrls.c +++ b/drivers/media/platform/vivid/vivid-ctrls.c @@ -1167,6 +1167,7 @@ static int vivid_radio_rx_s_ctrl(struct v4l2_ctrl_activate(dev->radio_rx_rds_ta, dev->radio_rx_rds_controls); v4l2_ctrl_activate(dev->radio_rx_rds_tp, dev->radio_rx_rds_controls); v4l2_ctrl_activate(dev->radio_rx_rds_ms, dev->radio_rx_rds_controls); + dev->radio_rx_dev.device_caps = dev->radio_rx_caps; break; case V4L2_CID_RDS_RECEPTION: dev->radio_rx_rds_enabled = ctrl->val; @@ -1241,6 +1242,7 @@ static int vivid_radio_tx_s_ctrl(struct dev->radio_tx_caps &= ~V4L2_CAP_READWRITE; if (!dev->radio_tx_rds_controls) dev->radio_tx_caps |= V4L2_CAP_READWRITE; + dev->radio_tx_dev.device_caps = dev->radio_tx_caps; break; case V4L2_CID_RDS_TX_PTY: if (dev->radio_rx_rds_controls)