Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp582061ybi; Wed, 17 Jul 2019 01:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGYj98nJdn3JNB3Ckqs/DFoNzwpT0uXkQZcAz0K3EDFNYnKLz3TaK9lPQLPOlWpUhJ1hXa X-Received: by 2002:a17:902:ba96:: with SMTP id k22mr42646359pls.44.1563352583810; Wed, 17 Jul 2019 01:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563352583; cv=none; d=google.com; s=arc-20160816; b=mlT2AL5ATCchLPqxGuGDl3aWrcL3reBCMn5VaErlhhl/hLu6nDR1PtWxnJzAss7x4P 2+fIdWK0z36wVOgniJaMB86QTDwrCXPorhkTV6qVCXWshaDTJpK+YI4RN+Se7ayeTW+M CQi8pyezdi7YAjUX5S2HVP0rSKpaL0vSxbhBa02warRELXGbDPd/8k94xUKSL5n/J3RH PN4IieMXUtpvPL/vQsrGgaWADIWY27joUfVhgte27AcasYiCv1B9CRQYXYeY8JT8ACGG MSxHuIwYRcUC+xNzGAsEoOso3qGKVycYc2rZBRRAjPdedlnwF4j3w7mDxPyPKYzxHZtk gCYQ== 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=Iwx8d0RGJRMbsUh5MH2Q2PhdCBXrR+QSvVmkF9EObNI=; b=GUDC8doHDkLYox4Xt1xQW+HVo+AKoS6T/SAfysT66bRpWSDN3NvDzPGeS8phn/8kMX Mh/p6HTkfvmytnWmojGf/ldTquX0t8cEGxuS6aIFLJINjEv0Jk02uWSDfHlFOaPQPFO2 Dop4BxMWx94LllUn78wwD0u9ul9sYrrwwR2dKtBUn0xjDfKG2ly39cwiDmD2O7nHFt/u wEjxz29q7CwH67uFd+mmbuTDBKShgXYydtj84CfS3DEdmg+bVWKkvzyefOBvSN4Ci3/G 3EeIm8BEajdENGFI+3GSg/6FLhQHncmuxFGUdf7Et6sHl0V7CQZBnCfjYOCibcw0CfRs E++A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F73HcBqr; 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 m5si21734602pll.439.2019.07.17.01.36.07; Wed, 17 Jul 2019 01:36:23 -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=F73HcBqr; 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 S1727146AbfGQId5 (ORCPT + 99 others); Wed, 17 Jul 2019 04:33:57 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33360 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbfGQIdz (ORCPT ); Wed, 17 Jul 2019 04:33:55 -0400 Received: by mail-pl1-f194.google.com with SMTP id c14so11563299plo.0 for ; Wed, 17 Jul 2019 01:33:55 -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=Iwx8d0RGJRMbsUh5MH2Q2PhdCBXrR+QSvVmkF9EObNI=; b=F73HcBqrBdoliIS0TswjZsyoSTqV3pr2Ql2l/+xRVG6vho0qliFDVTHs//UMlQounu kEc4t3ESghyIZxz4hI2DjAdn2PYy6Oil5zMAepaL1RrirWnjneNK4E+B4sYNLYJgquCv S4jUygxjiyQWrQTWl4lWN1R5b/Et1sgk6xOm8= 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=Iwx8d0RGJRMbsUh5MH2Q2PhdCBXrR+QSvVmkF9EObNI=; b=K1tXNZQM6L7gZTnRUNoFMRo5yvlQdV7RzhFOb/PFmjHn5PaQWNdYVLzJf8DJIlqxkh rltuWU5uHmq3soRbKLsGbTRpOk8yEi+irBGx2+31PB9TD7UsQRYOmKl/zhJz6anY1ZZk 198AebzdUaeelj2SMbq7i+9mKSTE5f5I/DWGZwrQdflU5Sc30HQlNPkYkCZG78WntxGl t1y1kC9ow7SVdg3+FBNoPdRgGbmH+Svt8PylW4b6L3rii0BKfOR1hiuBs8+bpsFr/QQi tz/pRokoIEppaI800yLHuaXCwJCZBfTKtibjmaMuqfANUs169xX8k5b3Ny//ePLLQzK4 oRuQ== X-Gm-Message-State: APjAAAWlfrV09DUe1tMuC15JELgL5Pw/9OCjjuxruVvlEy949MgBsBdc PvuoWHScdn/w4g3MBNa9xyJ3pWwqQVs= X-Received: by 2002:a17:902:3181:: with SMTP id x1mr40824727plb.135.1563352434649; Wed, 17 Jul 2019 01:33:54 -0700 (PDT) Received: from localhost ([2401:fa00:1:b:e688:dfd2:a1a7:2956]) by smtp.gmail.com with ESMTPSA id b1sm22020443pfi.91.2019.07.17.01.33.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 01:33:54 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: 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 v5 3/5] drm: dw-hdmi-i2s: Use fixed id for codec device Date: Wed, 17 Jul 2019 16:33:25 +0800 Message-Id: <20190717083327.47646-4-cychiang@chromium.org> X-Mailer: git-send-email 2.22.0.510.g264f2c817a-goog In-Reply-To: <20190717083327.47646-1-cychiang@chromium.org> References: <20190717083327.47646-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 ca56783fae47..bc608f9258be 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c @@ -135,7 +135,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.22.0.510.g264f2c817a-goog