Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6384705ybe; Wed, 18 Sep 2019 02:34:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxts3kOGThFKB8LJ7inckcaujrMcxdMR5XJaL132mO3IB3nGbBqsZS7w/hChPjIwzO+GMIi X-Received: by 2002:aa7:cf86:: with SMTP id z6mr8938816edx.230.1568799267579; Wed, 18 Sep 2019 02:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568799267; cv=none; d=google.com; s=arc-20160816; b=jurxVMssc1eblS0DaXSmmt/UcfRgwoVnZ7nXPasCqTvjSZs0xqEH4A8EgcTQrg0JHU IES/f6vqXFKO1dHbeEtn2zYP7gty1QTtrbmWrSBMB4QqLs3gcDnvr6kaTG+EMuRG+J10 1dT8KsF4HAUP7s7MzBlf6Yo4I4FrZzUlMUvGq5afTm0yVQIiUBykiYtRIQWSEBNNyUR3 Q9RvvLxjOynO+fr4sTK76crr4CxklSHNPuKRGWiLt3eCfoVSDxi47MzuvrFOxuy9Vbo8 EiqHDP7PSQ85WZBvPAl4AVpH9okds3lVyjgRHhpOI/5yUC13mZL2Asi0Dl/VsTU7x4WX gC+g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2Eb5XL2gtr4lJ5rnXLq6hKn2qsGsu9ixzGW23+oXREM=; b=hZFse3iSUc218r7hIQxZNdI87jXOAWGmxhq4F5RRMki6EbgoVCAnxbDAe8ddV0XZQD zKhL8N0e8flcbYpeQ+reH2TndNYAASKU4xe/XEMgtozaDSmtbV2E8XsdT+JjV4/xnoPj MhsasB6TgTXkUMtnbu4W2UtpB8lNUKPzQ0zDlfS3kEeJwMZ5vYq6HMibA3V3GQkFnh1/ TdtIXaNdsKlgCXv9ZKIgGZnH/4a7g9X1GCT518ptGH24MRPC+YSxqYmtH/BIF/EctDmh DXESbM6ZVoyYnIRDNzree9mOmyjzsAIXtCZx3AT/iYmKF0NR8i+TTQeWka2t0b1STAMx XypQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PEfuM16P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gl26si326408ejb.17.2019.09.18.02.34.04; Wed, 18 Sep 2019 02:34:27 -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=@chromium.org header.s=google header.b=PEfuM16P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730240AbfIRIZj (ORCPT + 99 others); Wed, 18 Sep 2019 04:25:39 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34281 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730225AbfIRIZj (ORCPT ); Wed, 18 Sep 2019 04:25:39 -0400 Received: by mail-pl1-f194.google.com with SMTP id d3so2782690plr.1 for ; Wed, 18 Sep 2019 01:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2Eb5XL2gtr4lJ5rnXLq6hKn2qsGsu9ixzGW23+oXREM=; b=PEfuM16PUwPuQWzTuJ9LxpdpmgZ6yikA7V4SMd2igAchZPFDw/qlLw/9mjo+liS0Ey 0SEbcZEIRPFhPz4OACoNmUiypiHYUEK8SIZ1LvINDI/mYFIxaGWYG4hPXg2ev+B/kh+j kMMjde0JRZO+y1mz50zH/LklJuMwbFR6Kbb48= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2Eb5XL2gtr4lJ5rnXLq6hKn2qsGsu9ixzGW23+oXREM=; b=HMghtaTcehwz1fDXHn6H4MUoI3Donj4YENtgQkKHqPXnqmQeQo6knx2EFp56XbCH/k kQkBYrBdihILW3yHDE/mNnLuCbtTycOwoL+Cd7DqYQ1IM5lA+9LE/0CY82/ON7IKlX5O R+Xj9QI3PHa5ncWHBe25JDvZMYXG2dNIkaNDUKXVSe+84L1VFLDMshFACP7fVKcW0lAU r76OjRAbu4G7QGNDg232PyWE9Rgs7vMCtV87HeMVosOXfQ/vAJMd/xUs+r7Eumidw5R4 X2+wFOMwbkELUG/wWws9svidywczZimnBIYLaI75sTwcsEwdVIehbMLIZvxY24U5VV12 5U7w== X-Gm-Message-State: APjAAAV4QAslMCztjSmU8devPG/R5q+QtFOQgA0avlCup8k6bUir9O0f ugFqcl6MCPLTcPeMP+Il2qJew/c/L58= X-Received: by 2002:a17:902:8645:: with SMTP id y5mr2925331plt.191.1568795137579; Wed, 18 Sep 2019 01:25:37 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:79b4:bd83:e4a5:a720]) by smtp.gmail.com with ESMTPSA id w6sm8942501pfj.17.2019.09.18.01.25.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Sep 2019 01:25:36 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: Neil Armstrong , Jerome Brunet , Jernej Skrabec , Jonas Karlman , Hans Verkuil , Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela , Russell King , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Cheng-Yi Chiang Subject: [PATCH v6 2/4] drm: dw-hdmi-i2s: Use fixed id for codec device Date: Wed, 18 Sep 2019 16:24:58 +0800 Message-Id: <20190918082500.209281-3-cychiang@chromium.org> X-Mailer: git-send-email 2.23.0.237.gc6a4ce50a0-goog In-Reply-To: <20190918082500.209281-1-cychiang@chromium.org> References: <20190918082500.209281-1-cychiang@chromium.org> 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 The problem of using auto ID is that the device name will be like hdmi-audio-codec..auto. The number might be changed when there are other platform devices being created before hdmi-audio-codec device. Use a fixed name so machine driver can set codec name on the DAI link. Using the fixed name should be fine because there will only be one hdmi-audio-codec device. Fix the codec name in rockchip rk3288_hdmi_analog machine driver. Signed-off-by: Cheng-Yi Chiang --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 2 +- sound/soc/rockchip/rk3288_hdmi_analog.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c index d7e65c869415..86bd482b9f94 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c @@ -193,7 +193,7 @@ static int snd_dw_hdmi_probe(struct platform_device *pdev) memset(&pdevinfo, 0, sizeof(pdevinfo)); pdevinfo.parent = pdev->dev.parent; - pdevinfo.id = PLATFORM_DEVID_AUTO; + pdevinfo.id = PLATFORM_DEVID_NONE; pdevinfo.name = HDMI_CODEC_DRV_NAME; pdevinfo.data = &pdata; pdevinfo.size_data = sizeof(pdata); diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index 767700c34ee2..8286025a8747 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -142,7 +143,7 @@ static const struct snd_soc_ops rk_ops = { SND_SOC_DAILINK_DEFS(audio, DAILINK_COMP_ARRAY(COMP_EMPTY()), DAILINK_COMP_ARRAY(COMP_CODEC(NULL, NULL), - COMP_CODEC("hdmi-audio-codec.2.auto", "i2s-hifi")), + COMP_CODEC(HDMI_CODEC_DRV_NAME, "i2s-hifi")), DAILINK_COMP_ARRAY(COMP_EMPTY())); static struct snd_soc_dai_link rk_dailink = { -- 2.23.0.237.gc6a4ce50a0-goog