Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4748372ybl; Mon, 9 Dec 2019 16:10:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyK5jkbMHShGvR14Ouw4pRmMhMXBMLCIOauag2eCWCwkbcfpbPSfzmVoN5fb2mg9m+bDLPG X-Received: by 2002:aca:c646:: with SMTP id w67mr1579309oif.171.1575936618649; Mon, 09 Dec 2019 16:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575936618; cv=none; d=google.com; s=arc-20160816; b=Am/wrW5zwFo95a3DEYKLfmgCg1Hkoc824/rKzVArAIRmI1b0pJhuPcWAjSUsextA9b fvUsIdmxnzQLwxeS/RrUz42cvhUfoxOfopfExr41JJWMrCoRnvO4+EsIY1ptc96W2uGd VGfr5B+DVfaxmq8lg5Ff17ELFO8Txx07tmB5t/RRrxDKLXKCUEeliTWYiUgLRm3iC0Sy Q+gq+jAfS8BcIGZSJ52aoy6vFjIIIRrDsp9SUh/YU4hsOsurLJr6p2hKGIgcvGQ3VadH xsjvO0rWtBkQQI9tY/U5nzTO7WZbX4wYQlCHV1iCvmdMLM8zK7gv5oECIX1dVfCYw3wY qKEQ== 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:subject:cc:to:from:message-id:date; bh=JM+yKKaIVpwSxB0kW6APpVWlBznc+81UPTK2XberQgI=; b=qpDWaOtjgExMgPcHT5u1OQj3KOLrPLanlRY2OGLVGzj/RBRQRrLmm4o1DLe49II+Y1 4fMCpKvb2FTc5Uapsj8HCPQrlBqNb6bGZ1FkoXs+jsWRue90krTQla/rmHApCTw1qCu2 ZwlCctC1ySIag8lAlacm9u/KAoEQ3jaBnWfYGJW1F4LPo5lFQ4BWgvC6Ul7Xk07NvrTW 4KlBO9cKRI9oTGXbBwv6GftDWEaa9VoUXcmd7WwQroW3tOMgpBuhnxxPGLmRAEk/S6kE 9tic88rzFwPuLrj9ewBcBVN2+7QrPb7PX9+gOffv6mZ1K70lm/XRGeWZrNklRunkjFM5 QTvA== ARC-Authentication-Results: i=1; mx.google.com; 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 e5si905117otr.247.2019.12.09.16.10.05; Mon, 09 Dec 2019 16:10: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; 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 S1727407AbfLJAJR (ORCPT + 99 others); Mon, 9 Dec 2019 19:09:17 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:31776 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbfLJAJR (ORCPT ); Mon, 9 Dec 2019 19:09:17 -0500 Date: 10 Dec 2019 09:09:15 +0900 X-IronPort-AV: E=Sophos;i="5.69,297,1571670000"; d="scan'208";a="33931092" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 10 Dec 2019 09:09:15 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 68A8F40EAE82; Tue, 10 Dec 2019 09:09:15 +0900 (JST) Message-ID: <87o8whyrbo.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Daniel Baluta Cc: broonie@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: simple-card: Don't create separate link when platform is present In-Reply-To: <20191209135353.17427-1-daniel.baluta@nxp.com> References: <20191209135353.17427-1-daniel.baluta@nxp.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi > In normal sound case all DAIs are detected as CPU-Codec. > simple_dai_link_of supports the presence of a platform but it counts > it as a CPU DAI resulting in the creation of an extra link. > > Adding a platform property to a link description like: > > simple-audio-card,dai-link { > cpu { > sound-dai = <&sai1>; > }; > plat { > sound-dai = <&dsp>; > }; > codec { > sound-dai = <&wm8960>; > } > > will result in the creation of two links: > * sai1 <-> wm8960 > * dsp <-> wm8960 > > which is obviously not what we want. We just want one single link > with: > * sai1 <-> wm8960 (and platform set to dsp). > > Signed-off-by: Daniel Baluta > --- Acked-by: Kuninori Morimoto Thank you for your help !! Best regards --- Kuninori Morimoto