From patchwork Mon Dec 3 15:53:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10709959 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE65513AF for ; Mon, 3 Dec 2018 16:02:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCD152B570 for ; Mon, 3 Dec 2018 16:02:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0E432B707; Mon, 3 Dec 2018 16:02:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DD722B703 for ; Mon, 3 Dec 2018 16:02:44 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AC81C267ADD; Mon, 3 Dec 2018 16:53:23 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6B8EE267AED; Mon, 3 Dec 2018 16:53:21 +0100 (CET) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by alsa0.perex.cz (Postfix) with ESMTP id 92A4B267ACE for ; Mon, 3 Dec 2018 16:53:19 +0100 (CET) Received: by mail-ed1-f67.google.com with SMTP id y56so11144081edd.11 for ; Mon, 03 Dec 2018 07:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DhRX7GdrWa1eintwejLB4d7a72Ap802ixvYj84okxaY=; b=ZYWDlTvt+KsEiwbZFfZBZrbTL9c0VTIxw+jzuLNzSuYEaE+GO0uiphM/4tA9mt2s3U ooiL7h4qqQDm5D6ohzhEjeu27XX0aCSARDEICoVhjm2Ent+DBocdILWSxh6ppaCMUofL SVS8xZDl9+uoOTNEhVyVqmyBtF+1lHN0PLXwKXRDtnoGBUjPUGuSCybJn89WCE4lSPR5 SHFbaS0pC4W7QNy3nlw1TcDooTYwivLPVlnkE4lwXqDPi1PjTifSrEByGvGfSRt+SncY 33u2Ik7JXPdzyZVwBw3u6oylsYB+b0o1rx5b7ZEH6TI8ad7vXIAlIWuGgppposXsuvar 9mqg== 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=DhRX7GdrWa1eintwejLB4d7a72Ap802ixvYj84okxaY=; b=o2AHJtU+6Qxq9Ei8526+l9gsLdUCTWPQi+b3M3Om5rHYOZKElP1GCMlD9OkGtKx2bA mTrkdqN7H4elKYAFu2w07wamVcw+DYvggZqh4KE/6T/h+U8X3ciB6FIVDl4ckfLE73Y7 Jt6hJQDCf5VHqy+PdpVCstnR2O1oQ08UU95DWFvTg6FhmXx0UOriFpLGA2gUx1Qg4L1S I4E+O+JwB4fgGQTWVtDjwRU+9Aq+1lVf4G7QjRrDj0XUjZaKg8a9UtKIKYq9iLt+HJuj 6B/mRjL5xr9tvRKE08frxfsssJxTp9Ii/W9Ydktuu4bb+rdyF4vmJcNR0mdQoW5O4V/8 LYpA== X-Gm-Message-State: AA+aEWYs6FZLdwOIvSFJxO0cPbmbBQSQvoansnp87NwhZzlzxZ/FCphp vTRb3yEjRrXZnSVHmeVeKOI= X-Google-Smtp-Source: AFSGD/WToOuIfWi4jl+FR7kug7YLt7Ocu6p251r9ucqWm30lff4Ix37z4fNAqPPitPknI38I7ZW35A== X-Received: by 2002:a50:ade7:: with SMTP id b36mr4376493edd.215.1543852398660; Mon, 03 Dec 2018 07:53:18 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id b46sm3924526edc.57.2018.12.03.07.53.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 07:53:18 -0800 (PST) From: Thierry Reding To: Takashi Iwai , Jaroslav Kysela Date: Mon, 3 Dec 2018 16:53:16 +0100 Message-Id: <20181203155317.16627-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Sameer Pujar , linux-kernel@vger.kernel.org, Jon Hunter , Thierry Reding , linux-tegra@vger.kernel.org Subject: [alsa-devel] [PATCH 1/2] ALSA: hda/tegra - Probe up to 8 codecs X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Recent devices support more than the 4 codecs that the AZX core will probe by default. Probe up to 8 codecs to make sure all of them are enumerated. Suggested-by: Sameer Pujar Signed-off-by: Thierry Reding --- sound/pci/hda/hda_tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c index 84ea6069d28b..83befd8d43e8 100644 --- a/sound/pci/hda/hda_tegra.c +++ b/sound/pci/hda/hda_tegra.c @@ -531,7 +531,7 @@ static void hda_tegra_probe_work(struct work_struct *work) goto out_free; /* create codec instances */ - err = azx_probe_codecs(chip, 0); + err = azx_probe_codecs(chip, 8); if (err < 0) goto out_free; From patchwork Mon Dec 3 15:53:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10709961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8678217D5 for ; Mon, 3 Dec 2018 16:02:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 772752B5E3 for ; Mon, 3 Dec 2018 16:02:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B7BF2B6ED; Mon, 3 Dec 2018 16:02:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE3A2B704 for ; Mon, 3 Dec 2018 16:02:44 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4B315267AF4; Mon, 3 Dec 2018 16:53:25 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 90056267AED; Mon, 3 Dec 2018 16:53:22 +0100 (CET) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by alsa0.perex.cz (Postfix) with ESMTP id 02651267ACE for ; Mon, 3 Dec 2018 16:53:20 +0100 (CET) Received: by mail-ed1-f67.google.com with SMTP id f9so4714205eds.10 for ; Mon, 03 Dec 2018 07:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3bWKWoWovkbchqflJqtKRKQbvgYDk8laXhyJA33PSRg=; b=GlEtEwjWXKbBQ4HgfxP+3VuPPWBVwB7jbNAQoCmVZVU0/0vzivYkVfoz3TfczAubyk dgZSeKxE7gx0YNGpOnZLetQTuJ2BVvtQZzb1g88XKXCEHujI5XuGW7pfOw9PUOyKBpIB Aj69/7g2L5Az9/XFxnPE10b24fUnexrcPeL9iyAepCyElkEbQTKCR1hQjrQSWEBcQhZ3 6tnmUNG9VyKhC0FN0mqvN136l2v/df4vVG8bfYaEEhppquNik1BcMbM/9BtUvD7l+Dn9 et8fvOPatJigfCsDcguFb0LNzgWWZWAQHxni5z1h7Me9Bt4rIH94mX/4ivG2cVRDysoV sEOQ== 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=3bWKWoWovkbchqflJqtKRKQbvgYDk8laXhyJA33PSRg=; b=D2Z6pbhLmVogtyyCQen30/i+kT0o7dBMKjicRWL2xQvKAhiZxv9hudjijqZKBTd7Tw frWgHxnIAWZ3sM/hCVz8nZg80P02HjcD0uSYwNpOK/bs91DMQT4o6ePlpbmWRrAvs4oV s1ZdoUkUu8eg18B5RPOiSqzRqVP+KZys03tARIxjZk5ozz3MfUHT2p3k8kava5EUtfH+ 6ckXTe+NnVYQpWl4TAyVXDTXFKL1nOzUF2JIE3bJfDwc2o0gaDLgNnpXLwvfV7AfvA8u 1mYh8EBXVguNGoKTRas7R8GSW3zesKSGisBzOXPtJRsJSsjfk9CeQb7a2XRN5AhFehb4 P5kA== X-Gm-Message-State: AA+aEWbfdT/thSBwPWXb3Ry/XB7GBE/6tyxNk+zHh2IWqXnigZicYLs6 P3UwBjK+TyKm9XfiG7m5DkA= X-Google-Smtp-Source: AFSGD/VD/CF20SDtTAwMaGQZLGuz7Ak/GBOHi9gS9t6JbMaw4gdlXTxMgB305t2qTrjeu7EazXCoig== X-Received: by 2002:a17:906:1ec4:: with SMTP id m4-v6mr13267338ejj.35.1543852400206; Mon, 03 Dec 2018 07:53:20 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id gz20-v6sm2245688ejb.56.2018.12.03.07.53.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 07:53:19 -0800 (PST) From: Thierry Reding To: Takashi Iwai , Jaroslav Kysela Date: Mon, 3 Dec 2018 16:53:17 +0100 Message-Id: <20181203155317.16627-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181203155317.16627-1-thierry.reding@gmail.com> References: <20181203155317.16627-1-thierry.reding@gmail.com> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Sameer Pujar , linux-kernel@vger.kernel.org, Jon Hunter , Thierry Reding , linux-tegra@vger.kernel.org Subject: [alsa-devel] [PATCH 2/2] ALSA: hda/hdmi - Add Tegra186 and Tegra194 support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Tegra186 and Tegra194 contain the same codecs as earlier chips and can be supported using the same patch function. Signed-off-by: Thierry Reding --- sound/pci/hda/patch_hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 67099cbb6be2..5fb3fa660b89 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -3834,6 +3834,10 @@ HDA_CODEC_ENTRY(0x10de0020, "Tegra30 HDMI", patch_tegra_hdmi), HDA_CODEC_ENTRY(0x10de0022, "Tegra114 HDMI", patch_tegra_hdmi), HDA_CODEC_ENTRY(0x10de0028, "Tegra124 HDMI", patch_tegra_hdmi), HDA_CODEC_ENTRY(0x10de0029, "Tegra210 HDMI/DP", patch_tegra_hdmi), +HDA_CODEC_ENTRY(0x10de002d, "Tegra186 HDMI/DP0", patch_tegra_hdmi), +HDA_CODEC_ENTRY(0x10de002e, "Tegra186 HDMI/DP1", patch_tegra_hdmi), +HDA_CODEC_ENTRY(0x10de002f, "Tegra194 HDMI/DP2", patch_tegra_hdmi), +HDA_CODEC_ENTRY(0x10de0030, "Tegra194 HDMI/DP3", patch_tegra_hdmi), HDA_CODEC_ENTRY(0x10de0040, "GPU 40 HDMI/DP", patch_nvhdmi), HDA_CODEC_ENTRY(0x10de0041, "GPU 41 HDMI/DP", patch_nvhdmi), HDA_CODEC_ENTRY(0x10de0042, "GPU 42 HDMI/DP", patch_nvhdmi),