Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4183338imu; Mon, 14 Jan 2019 17:02:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QlwCxp63uk2XhlvuGOtd3RV1L/rYmB8Wr6vXQuVgQ8bCjBqxbPQOdQ/GotcPC8oTXfY2s X-Received: by 2002:a65:6392:: with SMTP id h18mr1260723pgv.107.1547514138260; Mon, 14 Jan 2019 17:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547514138; cv=none; d=google.com; s=arc-20160816; b=NsEAgKDHf7WF5VJoPE3Ug9aPZpKRZp56VLkttYL+24dzF8z1TJDHabASn44qmzF3WS laJNjbslt7H+lcBLNJscn1uKQ5w5Souh2pVQKg2wKH8jl0OKArVOTnZU6wHlGMSS6Alg 6oaS/27/+QMUTrJNowuEAuTWNMPNwYb53mmsaTA3pps5PZM4WptMe+IZP8rTlpiR4bNs e6VrR3YTscW6GVp2Nox7aEheB6Adrrm1jEz7riA7/S8YBdg1N/GVbi7+FNGTJqfnaTRI EPO7bwS8KLdjzVo1UZq906WRAYzzoYmx4Wql0VnLxNR1mtdF9DbJP6pEmr2r2nFgGwnq gVxg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=U3/XlavFaV+83MK62S0qixF0uFWWpLHgt5a5yu35Agc=; b=MdTaXfTZJ6Mgg6VlZp4tdg+uCetcsiKhnwEwOeqB6T0nvC0LiFsA9E/1oQzZeWuUEv 91xvjxAn2cCSuL3Q3gsAw+FGQHeKOjneGjY0yLcbwjLgrSVCCI59f1jlMbs3jUrza1jv zjqakxrlYvAhXqrTpj//4nMrsylL0fJCSgEveEeRy2AcjsiE5ERM+CL3L/spyVtpbh2y 4IFEUf+0GUMtf0TT+uIyI0JeVh+loZTajhZ/3zi5T0UXkl1Fr0IzPlu8PzaZdZLQX+jB YbTPyWInLvGC85169wsMXdu8F9yUosNkKwBNdsIHZ4UjZPDrfK1XCty/lXpdd3yJYSFv lEgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codyps.com header.s=google header.b=buicu8ZM; 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 a26si1804502pgl.282.2019.01.14.17.02.00; Mon, 14 Jan 2019 17:02:18 -0800 (PST) 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=@codyps.com header.s=google header.b=buicu8ZM; 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 S1727163AbfAOAOi (ORCPT + 99 others); Mon, 14 Jan 2019 19:14:38 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:40602 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbfAOAOi (ORCPT ); Mon, 14 Jan 2019 19:14:38 -0500 Received: by mail-qk1-f195.google.com with SMTP id y16so590155qki.7 for ; Mon, 14 Jan 2019 16:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codyps.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U3/XlavFaV+83MK62S0qixF0uFWWpLHgt5a5yu35Agc=; b=buicu8ZMu5wkDF6oZmeci2+cyaWDaWjxu06XOAv2AVC9GSdgFvHoHQbKIMqOHuLQxR G1wXyqqBkSadPFjr04BL3Z0kE5QiuWUnZev9swbfASvDsj6WUMM7QvjntNXCr46Cohoq l/l2MEiDmoShBWss73LQgN0CVHoMCxCpCWJ3E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U3/XlavFaV+83MK62S0qixF0uFWWpLHgt5a5yu35Agc=; b=RCdIPfreUerJbfhCSTnppnv4t1yD0Ph6XS0T38xXba/Lpu1wNNn5/bJksqBPhc+yAi 42daoeHi70ZRRY/BegrvrNDBjav9ZdSOoFLf1EUEtej369+uKHA8Qu+9/Zbvo9QZmGWo YnzVql3X7HjKLuWA9Zr3cwtsMB2etM9p0HNE+/C1x0juXTGyRPUVDtOpSsachOdmkZfa N0wT5kLYyENPi+ZF7BNDh3RC+P452VwZOLjk7d18kkspBaFi4iCJawBnl9jlcyf4XFrT u/NbLgfnaC/lHQ/dqXLw7uRWTswd4PkNAIdkltQWJT6XupUG/PWELSmAzzp4gqCwNfSV FF9Q== X-Gm-Message-State: AJcUukcFYzpiJOgJ7FIuIrFTrLqtbWpxJzYXXMu2fRE0IM2phxb1xCG/ bjWc0Cjd2eDXwzoxJRmcTgt7 X-Received: by 2002:a37:aa0c:: with SMTP id t12mr795204qke.358.1547511276388; Mon, 14 Jan 2019 16:14:36 -0800 (PST) Received: from localhost ([2601:18f:880:9aee::8bb]) by smtp.gmail.com with ESMTPSA id a17sm52358384qtk.82.2019.01.14.16.14.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 16:14:35 -0800 (PST) From: Cody P Schafer To: "Maciej S. Szmigiero" , Brad Love , Cody P Schafer , Hans Verkuil , Mauro Carvalho Chehab Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH] media: cx25840: mark pad sig_types to fix cx231xx init Date: Mon, 14 Jan 2019 19:14:24 -0500 Message-Id: <20190115001431.10276-1-dev@codyps.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this, we get failures like this when the kernel attempts to initialize a cx231xx device: [16046.153653] cx231xx 3-1.2:1.1: New device Hauppauge Hauppauge Device @ 480 Mbps (2040:c200) with 6 interfaces [16046.153900] cx231xx 3-1.2:1.1: can't change interface 3 alt no. to 3: Max. Pkt size = 0 [16046.153907] cx231xx 3-1.2:1.1: Identified as Hauppauge USB Live 2 (card=9) [16046.154350] i2c i2c-11: Added multiplexed i2c bus 13 [16046.154379] i2c i2c-11: Added multiplexed i2c bus 14 [16046.267194] cx25840 10-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0-0) [16048.424551] cx25840 10-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes) [16048.463224] cx231xx 3-1.2:1.1: v4l2 driver version 0.0.3 [16048.567878] cx231xx 3-1.2:1.1: Registered video device video2 [v4l2] [16048.568001] cx231xx 3-1.2:1.1: Registered VBI device vbi0 [16048.568419] cx231xx 3-1.2:1.1: audio EndPoint Addr 0x83, Alternate settings: 3 [16048.568425] cx231xx 3-1.2:1.1: video EndPoint Addr 0x84, Alternate settings: 5 [16048.568431] cx231xx 3-1.2:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2 [16048.568436] cx231xx 3-1.2:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2 [16048.568448] usb 3-1.2: couldn't get decoder output pad for V4L I/O [16048.568453] cx231xx 3-1.2:1.1: V4L2 device vbi0 deregistered [16048.568579] cx231xx 3-1.2:1.1: V4L2 device video2 deregistered [16048.569001] cx231xx: probe of 3-1.2:1.1 failed with error -22 Likely a regession since Commit 9d6d20e652c0 ("media: v4l2-mc: switch it to use the new approach to setup pipelines") (v4.19-rc1-100-g9d6d20e652c0), which introduced the use of PAD_SIGNAL_DV within v4l2_mc_create_media_graph(). This also modifies cx25840 to remove the VBI pad, matching the action taken in Commit 092a37875a22 ("media: v4l2: remove VBI output pad"). Fixes: 9d6d20e652c0 ("media: v4l2-mc: switch it to use the new approach to setup pipelines") Cc: stable@vger.kernel.org Signed-off-by: Cody P Schafer --- drivers/media/i2c/cx25840/cx25840-core.c | 3 ++- drivers/media/i2c/cx25840/cx25840-core.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index b168bf3635b6..8b0b8b5aa531 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.c +++ b/drivers/media/i2c/cx25840/cx25840-core.c @@ -5216,8 +5216,9 @@ static int cx25840_probe(struct i2c_client *client, * those extra inputs. So, let's add it only when needed. */ state->pads[CX25840_PAD_INPUT].flags = MEDIA_PAD_FL_SINK; + state->pads[CX25840_PAD_INPUT].sig_type = PAD_SIGNAL_ANALOG; state->pads[CX25840_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE; - state->pads[CX25840_PAD_VBI_OUT].flags = MEDIA_PAD_FL_SOURCE; + state->pads[CX25840_PAD_VID_OUT].sig_type = PAD_SIGNAL_DV; sd->entity.function = MEDIA_ENT_F_ATV_DECODER; ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), diff --git a/drivers/media/i2c/cx25840/cx25840-core.h b/drivers/media/i2c/cx25840/cx25840-core.h index c323b1af1f83..9efefa15d090 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.h +++ b/drivers/media/i2c/cx25840/cx25840-core.h @@ -40,7 +40,6 @@ enum cx25840_model { enum cx25840_media_pads { CX25840_PAD_INPUT, CX25840_PAD_VID_OUT, - CX25840_PAD_VBI_OUT, CX25840_NUM_PADS }; -- 2.20.1