Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2950930pxj; Sun, 23 May 2021 16:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYdRyyrlykhGxVrn9FQFgvM3/EAbgfAlYnZDzyvI01pUTyeLE6HvalQbhfLEuHOguoojVf X-Received: by 2002:a50:ec91:: with SMTP id e17mr23001764edr.228.1621813624968; Sun, 23 May 2021 16:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621813624; cv=none; d=google.com; s=arc-20160816; b=a9lP5Q86DLmvBS8olp0C0k52yu8NEiwUrXOlzcFFeHLo4G5YHujaNthKCWQaMzhqBu 06KLdMJbecmlgCcW97ziokbtfmxOovG1XPp0c68bj1oUKLS2R5Jv+aQ/Yy5+WzxhL8w1 Q6BJIT2cO4krSOzQQrfIbJu2U8UXlzKuhR3jAYx0LsqoC6oNiAITdTAWlJPdS2BHgE17 eYCjuu7a0IxxGNncmMhFlX2MHor2ipQr//Q9yOWLqN4059ZrNISwP6SZNzjl/Ie7DXWL 6/ZfJbshUspCwQLUnUS3w835KO8oSkc9/s/JAGNNzUP+LUDQNBaDYBc+1H0Fy1Mv5nZ2 wDHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=odIUAzVpSvIL7IIcBvAsTMdmbOsZaWug4GlMmmm0+sI=; b=0QMmhVPuSamK7f0bCJsTJYvkbLXfgRqf4wFar0xFkrsSdy+FxKP5slGTEBSDIz00Hc B49MXvDbUUVGU9RsSS9KPgqlINnkkYHaYI7/WixeIOURwjgn+q+tV5QnJ4DC0odYtavY 3HZFSdVXRIGmroCnCPE0Qg0CFCEzwMUcvenisu0NWAj/nea9ZvOpHT8Ssxu5U3LpVtC6 SkLhc/JxhKwAgQapT8VZER623HPGVwPN74VfcCzw1LQRwluIPnIoa2yDr5xvrDLitnro NGl8Cx0ru/WQc7H2FNArHOXFslhlU9dmBYvxKfniQEVk/GwRmFTuyUitvttwfCLhg1Fw ufQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fkGG6opg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si8348318ejy.385.2021.05.23.16.46.28; Sun, 23 May 2021 16:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fkGG6opg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232052AbhEWXqb (ORCPT + 99 others); Sun, 23 May 2021 19:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbhEWXqb (ORCPT ); Sun, 23 May 2021 19:46:31 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1516C061756; Sun, 23 May 2021 16:45:01 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id c15so31171811ljr.7; Sun, 23 May 2021 16:45:01 -0700 (PDT) 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=odIUAzVpSvIL7IIcBvAsTMdmbOsZaWug4GlMmmm0+sI=; b=fkGG6opg4zBrpQJQyrI6xpQMXkeqAD12j2ubkEyWxo5Ai/p6UaH1OUtD/thK1AjfPh Of39n9ioUdZ9f7gwPRTPm1fCD8frSaVYb8KhZE64AH5GGaWhYl/RarYfAmbiM0FvuMxB Ez6aT6wanG9uYm6170p34R38fn7GiuQ+CXn30ESlx7+LYTJKok4yI+muKBLzicqcFIjG Cu/p5BWvbaq/aalwfR4Ahs6HKMHmKpory6VAhP7xvngU/nnF+xq4KX5sXe+7Pq791Th/ ZoAeKSftIii96aNMYalr77qABpmguSW7ku21nofIWYp0rzRsvxJKVF0x8TV8vqKJWGAC PoOA== 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=odIUAzVpSvIL7IIcBvAsTMdmbOsZaWug4GlMmmm0+sI=; b=hdHsXe27PHDpH78HMHmirkUTudz0zMfQQgX3bysvhCaXAmSRCA5xLa5EY5PlrKTeoR hSHXNnQZCw9d72pa8w2KjD0R/bVrj0gD/NoWsFqHhsb0FZJY5uA7th9RrvPRS3cxcDg9 52DvH9w0yTEckkfruQhaWAgpUu8EzUPZX7xrvUElbDJKIZTB6y47kxacOs0ullLXHXZV nsxVZbUiuC2rYKDXWFQd4gMk3dyIgLx5PuN+aKf9BB7H6PhVOvjfVAxP24vayJICFAW3 xTX3xLH6Zd83b6mDfd9+4Xr/dt0l7xodMpqYgVaXNEarmV97/7jVF8fDSLetDp8zdQRF G8jg== X-Gm-Message-State: AOAM5301W7VcL6xgzX6AuaDtvGJ8Kr8kVKJuQrFyxI2Ql6PP6nBrjqeH QAv8vHrd1UkQG5t5T7CuV+c= X-Received: by 2002:a2e:a585:: with SMTP id m5mr15119059ljp.51.1621813499361; Sun, 23 May 2021 16:44:59 -0700 (PDT) Received: from localhost.localdomain (109-252-193-110.dynamic.spd-mgts.ru. [109.252.193.110]) by smtp.gmail.com with ESMTPSA id u11sm1269054lfg.243.2021.05.23.16.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 16:44:59 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mark Brown , Takashi Iwai , Jaroslav Kysela , Ion Agorria , Svyatoslav Ryhel , Liam Girdwood Cc: alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] Unify NVIDIA Tegra ASoC machine drivers Date: Mon, 24 May 2021 02:44:33 +0300 Message-Id: <20210523234437.25077-1-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During review of the RT5631 machine driver, Jon Hunter suggested that it will be better to squash all the current ASoC machine drivers into a single one. This suggestion is implemented by this patchset. The RT5631 support will come later with the ASUS Transformer changes. This series needs to be approved by Jaroslav Kysela before it can be merged. Changelog: v3: - Added components string as was suggested by Jaroslav Kysela to v2. - Renamed MCLK rate function that is used by max98090 and other codecs to make it look more generic. Added option for specifying CLK ID per device. This all was suggested by Jon Hunter to v2. v2: - Dropped use of of_device_compatible_match(), like it was suggested by Rob Herring in a review comment to v1. - Added patch that sets card's driver_name of as Tegra ASoC drivers. In a comment to v1 Jaroslav Kysela suggested that the Tegra drivers don't set the card name properly and he was right. I opened pull request with the new Tegra UCMs and updated lookup paths for older UCMs [1]. [1] https://github.com/alsa-project/alsa-ucm-conf/pull/92 Dmitry Osipenko (4): ASoC: tegra: Set driver_name=tegra for all machine drivers ASoC: tegra: Unify ASoC machine drivers ASoC: tegra: Specify components string for each card ASoC: tegra: Specify components string for Nexus 7 sound/soc/tegra/Kconfig | 12 + sound/soc/tegra/Makefile | 18 +- sound/soc/tegra/tegra_alc5632.c | 259 --------- sound/soc/tegra/tegra_asoc_machine.c | 761 +++++++++++++++++++++++++++ sound/soc/tegra/tegra_asoc_machine.h | 47 ++ sound/soc/tegra/tegra_max98090.c | 276 ---------- sound/soc/tegra/tegra_rt5640.c | 222 -------- sound/soc/tegra/tegra_rt5677.c | 324 ------------ sound/soc/tegra/tegra_sgtl5000.c | 211 -------- sound/soc/tegra/tegra_wm8753.c | 185 ------- sound/soc/tegra/tegra_wm8903.c | 358 +++---------- sound/soc/tegra/tegra_wm9712.c | 166 ------ sound/soc/tegra/trimslice.c | 172 ------ 13 files changed, 894 insertions(+), 2117 deletions(-) delete mode 100644 sound/soc/tegra/tegra_alc5632.c create mode 100644 sound/soc/tegra/tegra_asoc_machine.c create mode 100644 sound/soc/tegra/tegra_asoc_machine.h delete mode 100644 sound/soc/tegra/tegra_max98090.c delete mode 100644 sound/soc/tegra/tegra_rt5640.c delete mode 100644 sound/soc/tegra/tegra_rt5677.c delete mode 100644 sound/soc/tegra/tegra_sgtl5000.c delete mode 100644 sound/soc/tegra/tegra_wm8753.c delete mode 100644 sound/soc/tegra/tegra_wm9712.c delete mode 100644 sound/soc/tegra/trimslice.c -- 2.30.2