Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3819ybp; Thu, 3 Oct 2019 09:22:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEsYrdBehqmR3VwfW8hz7Y/ZHBRz6hJ0q/oBft0/pM2IYnLbpX3mLwQ4kmwXai4Y40XfCo X-Received: by 2002:a50:93a4:: with SMTP id o33mr10780814eda.0.1570119754080; Thu, 03 Oct 2019 09:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570119754; cv=none; d=google.com; s=arc-20160816; b=bpCT7Cg94R3QkcRcnWJwDQduwM3aOHCuFYU4IaA1DqFxCn+ZUzVRNqiE6Xqsv7kj+1 PRHF73DOyB7HmW2Zm0Q5E+Z8DDptz3GG8gj2L8LAzPzUEEtp4wSDL5p63rqJor7iuu1G dv7AHRhB54mfD501cqjdx2KBQJX9zzi6JNfK9/tU/bn3LP7OyXZXqG/drjmY8pVwwjxy B+ZcY5PlvFnn8v9ITf1pwpux/YJX7r36mUj80XyHZSUFqy5Oey1NV+cElSUrdAc4mPUI IMB0AzeujriP1ZWLLLJeKbFE//oYCeAociZV7mnP0hdjSlMSE4DX1j9efooOzgnEJv3e cVnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LKpsiws+wktNVigGGEqQoiOvdB4eA2SQNtpftfJSerg=; b=hTXHaFgirNB+UUcSQTydAms7vr9sLDyYCPFcF/t9pThd9lemdYTeHvFp119Q4ZK1dj uTAv/2QnMSxjcvSVo7aFz1TQPX9QpD6OKOqXKp43fpBOT99K+UTjXvB9qkrMPizHII0g SM6iUGrTKIXSjZib9Ba0Nc8DTubpyNQ6r+LkYH/zSge6sKIgabuKEf5N7DPJhHLnvfAT S01e6UDR/bYwsFHe8vNjWkTlauZ1oLjHl1oUIuZts6xfNHRM50fXrigSgGYMSX06qnCr F1hTLzVifbVb+b85YdsSQyGyK2bwRzsi8R7weyYnAWW9yCsUfpzOjPpE1v49AwWEiq6r cE0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="RotCV0B/"; 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 u21si1495607ejt.345.2019.10.03.09.22.09; Thu, 03 Oct 2019 09:22:34 -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="RotCV0B/"; 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 S2389457AbfJCQS2 (ORCPT + 99 others); Thu, 3 Oct 2019 12:18:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:45002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387876AbfJCQSZ (ORCPT ); Thu, 3 Oct 2019 12:18:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C34DB20700; Thu, 3 Oct 2019 16:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119504; bh=AsUcjl7bU3ZIWQ/tixJ4jOBHiqJuChzvSZje7Wuze/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RotCV0B/UUKF3M0sedkADIOuWhUQ+6tg9tDswZq8yTR1miYyt8/e4eG2BbvV5ee0s q2eJy3UvfVYvV5mkyGnDUobVrl1TM/EvxKzN+o7G1M4iAHaj/t5kIP5gH/rG9APYb1 SyZ29+Zb4hcdRepRy2gQ+YdthQqBFx4jRO/JW40g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Darius Rad , Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 072/211] media: rc: imon: Allow iMON RC protocol for ffdc 7e device Date: Thu, 3 Oct 2019 17:52:18 +0200 Message-Id: <20191003154504.474769815@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Darius Rad [ Upstream commit b20a6e298bcb8cb8ae18de26baaf462a6418515b ] Allow selecting the IR protocol, MCE or iMON, for a device that identifies as follows (with config id 0x7e): 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller As the driver is structured to default to iMON when both RC protocols are supported, existing users of this device (using MCE protocol) will need to manually switch to MCE (RC-6) protocol from userspace (with ir-keytable, sysfs). Signed-off-by: Darius Rad Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/rc/imon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index 1041c056854d5..f23a220352f7f 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c @@ -1835,12 +1835,17 @@ static void imon_get_ffdc_type(struct imon_context *ictx) break; /* iMON VFD, MCE IR */ case 0x46: - case 0x7e: case 0x9e: dev_info(ictx->dev, "0xffdc iMON VFD, MCE IR"); detected_display_type = IMON_DISPLAY_TYPE_VFD; allowed_protos = RC_PROTO_BIT_RC6_MCE; break; + /* iMON VFD, iMON or MCE IR */ + case 0x7e: + dev_info(ictx->dev, "0xffdc iMON VFD, iMON or MCE IR"); + detected_display_type = IMON_DISPLAY_TYPE_VFD; + allowed_protos |= RC_PROTO_BIT_RC6_MCE; + break; /* iMON LCD, MCE IR */ case 0x9f: dev_info(ictx->dev, "0xffdc iMON LCD, MCE IR"); -- 2.20.1