Message ID | 20221005142734.2724537-2-clca@bang-olufsen.dk (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E85FC4332F for <alsa-devel@archiver.kernel.org>; Wed, 5 Oct 2022 14:28:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2F5C1169B; Wed, 5 Oct 2022 16:27:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2F5C1169B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664980125; bh=WIY1Q6tGMuGnj10oJB5GN4cUXCvvDObiYOC1BMV4+aI=; h=From:To:Subject:Date:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jMkeZTOM89VfLeaQsvMUiMX6kWQsP6bcGo7zhRcTktVqkYftEuS4PC5rK5fDnIUuG PXfTcgs32cSSq7ecChONUHD3bYap6uTUaaLrAIoORGUuess1PVJZx0YN2R67z6+7vX tsbmW4WuN2YF7eCEClI9FftUVt0mI/9lIHftIcDg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C4CB5F800F8; Wed, 5 Oct 2022 16:27:54 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D8F94F80212; Wed, 5 Oct 2022 16:27:52 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130097.outbound.protection.outlook.com [40.107.13.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AA448F800F8 for <alsa-devel@alsa-project.org>; Wed, 5 Oct 2022 16:27:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AA448F800F8 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=bang-olufsen.dk header.i=@bang-olufsen.dk header.b="F2qSN7no" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GHop7QKVVxANogfdWy2VM29PoIzRGxljTnrJe/EwUDepqNVM/LeZjuQ77WbifbI/mWtWP42bVJc07LdNt5vIjmMbVRazxLFIGuS0dAa6BEdNMU0PGjc+YvTiIbwCsbj6rvhXfQqkH9YFow0ttwHIJc7vh/miHi/9eh9tlI6Cqo8FeDMwUoAAyKcx3Ny+sWvOqIKAQbH5gNML12X4z6eElFVdtat7izdSww1REE4ewNs/jhTCiWEpe5+XKLOmbUZvDce1HlZfAWvszU41kQRCMJjnS1Anp/MX2mYtLbM6J7xo2Uj1ZKzeYxOu7IkXx1nfSz/Q9DEHxkQt9Kke/ZBINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WIY1Q6tGMuGnj10oJB5GN4cUXCvvDObiYOC1BMV4+aI=; b=iRI5t7D3ITNYBxA/Kje/EfuvCMpkn+svj/jETYuCelJnTH+24RPLDBfClCBDT7+GmhAJZZrH3T0y0kdDoeZ4SHcmzvEalE2owHyikNXzaykczJDhfIGmVSgNqdgGbFd3qZtdwJDNokF+Nka4oyBt6/fJ8+GedPYuuasRb5rGeKHc79VN7U439PqdXsEebsY2tJuwgd1BsgM2VA3wBgNzTqEHT+Po51MB9DIi2u+hL/Fqf0BvJYFBylSzhLkmaTTbnhvy1oiVhSrHV9T3xSe4hC944RouP4kdkJ0fHl1ozGelautf++By52Fz3H+m5ma74jqXk0HnMicSUOrF7BVGfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bang-olufsen.dk; dmarc=pass action=none header.from=bang-olufsen.dk; dkim=pass header.d=bang-olufsen.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bang-olufsen.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WIY1Q6tGMuGnj10oJB5GN4cUXCvvDObiYOC1BMV4+aI=; b=F2qSN7noOX/KYtY2Z8ktwUYw8qnelpA/Ztp9mhVRc+DqWqRLXFJDY+wM8zakA57FHF0aIRpCvry26AEC25uWtU1EFzwDV3oVCMToPahd+ct8cUTzcWQ7UEUT9Iy5AOwcyWajnURx6iJlbIPrgZVqAzhYNhfiy6fMmSBoCIgCvLg= Received: from DB9PR03MB7794.eurprd03.prod.outlook.com (2603:10a6:10:2bf::13) by DBBPR03MB6700.eurprd03.prod.outlook.com (2603:10a6:10:20c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.32; Wed, 5 Oct 2022 14:27:40 +0000 Received: from DB9PR03MB7794.eurprd03.prod.outlook.com ([fe80::550a:e73d:6a17:4250]) by DB9PR03MB7794.eurprd03.prod.outlook.com ([fe80::550a:e73d:6a17:4250%9]) with mapi id 15.20.5676.032; Wed, 5 Oct 2022 14:27:40 +0000 From: Claudio Cabral <CLCA@bang-olufsen.dk> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 2/2] ASoC: audio-graph-card2: parse pin-switches property Thread-Topic: [PATCH 2/2] ASoC: audio-graph-card2: parse pin-switches property Thread-Index: AQHY2MafNRifnxxxSEWDiLtZbji0tA== Date: Wed, 5 Oct 2022 14:27:40 +0000 Message-ID: <20221005142734.2724537-2-clca@bang-olufsen.dk> References: <20221005142734.2724537-1-clca@bang-olufsen.dk> In-Reply-To: <20221005142734.2724537-1-clca@bang-olufsen.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bang-olufsen.dk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB9PR03MB7794:EE_|DBBPR03MB6700:EE_ x-ms-office365-filtering-correlation-id: f87dc7f6-2221-4d19-fbcf-08daa6ddc238 x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QIjmkti8+PHTH+hB0RKsiq3tgH8x7NDXyQPeo8N5Pd43Yi4a6/KzSjdbmWb2A0ou0SLG5u0kQwg3BwJZxhLBh4c1FwADd1pnsK9Sh7UQDaZwy0mi+G+D679Z8Zy6cYuPPHXSJw0IoYHNIdDX1jykXldVat8th6sMlZ8/iEQQtynZTBuYXSACGBDujbr05tf2Ge8KCG9eNPN1L5nF6JvWZvcdHrNw7IP/VL9Zef66MCpTAyL+r6fA+kcGA1isjD0I3nXGX2Iqb5JM3psCOmLqvdsqcoxUQHfmlf03LKpA1XGCEmbNUSbuNwLPkVMvvT9Fi0Sk3RGDwRXyioxLXljO4C97fjSoAgGOslXYqV/imFFdLYAaTM9YG25l3QNfjUTlprC8CcBm9xt90d0du54QlxEdH80u181yrELrrDRImaNfG/GMRfPaIqbn6/j9QDvPwi3ABwsdQTusumiL/IJUKac2BM9oyZxb3zUeruLKJFPmi0XY0Qdhi1GHayd1Qw159PWkZPb+H0YnlgbHw38KgLnmvN9S1xr3FvdMImm3ykK/i0C4e62RI2yw3M4yLUGDearK8V1QRK5FTda6dXOKEVD+RlwFUKl0wEFEPZv/PEMIYdn/OKW71BBcpAJFV+HUqix2A20k+IRdB6Lmo7esKXbVEdJWn5QNLuo5aZ/7kIwnQWIV46FkQ3PmZWmKDTIAPU/SbvMpV6gNsuvPnXCq6TiuGNK02U62v3P9reRrVcHBMDE2C56AlnIoKkW+Sx9NeyJ2bloEUAzYpW6tAQIhoQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR03MB7794.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(366004)(136003)(396003)(346002)(39860400002)(451199015)(186003)(2906002)(38070700005)(36756003)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(5660300002)(4326008)(7416002)(8936002)(86362001)(8976002)(41300700001)(6506007)(38100700002)(110136005)(122000001)(316002)(1076003)(478600001)(4744005)(26005)(6512007)(2616005)(8676002)(91956017)(71200400001)(6486002)(54906003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?MzQt/R7l9hxep2J02zfr4hEvWFtc?= =?utf-8?q?4+0RE0kFC6MIq0MmZ+mU6h0ybhZycjmcDxH7rQ102kF9SuG1wDPoug2yDM514X9+8?= =?utf-8?q?OTSvO9LNvwMxPe2GDknv34h0IKQ14/Ag1ExgrXVnxa5PKAN+coy2Qn8am7Y4DXJdh?= =?utf-8?q?YNBptbe3WBHfLav5OuhXmFW01JhVB0NNxhwhWlamDs0Z3aKcYpzwBvgfjcx7diNz0?= =?utf-8?q?nyQrM39OaVEq1HSJEkzCHa7r6FDjioCHjhQ3+eKoCvE/kyx35n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eErKaukDBqp24T?= =?utf-8?q?QqCCazIu0gOLBYaW6E9njpmyt3VrwioMqcB12KKfzlJ/dQ0IHCm4kUVEOfpkgla/d?= =?utf-8?q?gIj5gBbGpVjx9sIKS6ouSTTlUTfA/VXThopxrSIEjM5YRsvmGkAQFllu/2GIb/SKF?= =?utf-8?q?5rHMuIuYBViZIVnLlsz66wB9uf6PrWsaRmGHQw480bkFmxFisNmqn6c0uygSKJ61Q?= =?utf-8?q?AxLAXrn7E3f5uevGu0+tIlEq8yE6xqEz7fY92JA/QymKsTowxIlCOfiZho2RlysAW?= =?utf-8?q?zD44oyM0K7XG+J0unK0FGY6R7+bRZm16Scfp5XuAz3PePwH7vPwckbvs0D6fkc+JR?= =?utf-8?q?yaZTqCG9jLxcH6oZ2YntAwlJsx2lZtLuDwrkkz7UqpQvcIBczNv6jdkNKHplbnb62?= =?utf-8?q?YeF5ayFnVNb/gFTHxaMm0a/w08sS70y5Fw=3D=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <DF4360EEF87AD24DBD30B2FF75E85BD4@eurprd03.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: bang-olufsen.dk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR03MB7794.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f87dc7f6-2221-4d19-fbcf-08daa6ddc238 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2022 14:27:40.2374 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 210d08b8-83f7-470a-bc96-381193ca14a1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aI6mbSOMr8IUBXLQb3lfAPJY51lcy0plC5Ik1tUtr9gu5rW4QB3Z05/dWJuoqHux2VjQIcLDv1/7xl2Yb5lwHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR03MB6700 Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>, Claudio Cabral <CLCA@bang-olufsen.dk>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, =?utf-8?q?Al?= =?utf-8?q?vin_=C5=A0ipraga?= <ALSI@bang-olufsen.dk> X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
[1/2] ASoC: dt-bindings: add pin-switches to audio-graph-card2.yaml
|
expand
|
diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index 8ac6df645ee6..aa086a3ebf9c 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -1245,6 +1245,10 @@ int audio_graph2_parse_of(struct asoc_simple_priv *priv, struct device *dev, if (ret < 0) goto err; + ret = asoc_simple_parse_pin_switches(card, NULL); + if (ret < 0) + return ret; + memset(li, 0, sizeof(*li)); ret = graph_for_each_link(priv, hooks, li, graph_link); if (ret < 0)