From patchwork Thu Jul 16 01:24:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 1329892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B6c4H1kmVz9sT6; Thu, 16 Jul 2020 11:24:45 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jvsdb-0002r3-35; Thu, 16 Jul 2020 01:24:39 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jvsdY-0002qr-Ma for kernel-team@lists.ubuntu.com; Thu, 16 Jul 2020 01:24:36 +0000 Received: from [114.253.250.32] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jvsdX-0004J0-RQ for kernel-team@lists.ubuntu.com; Thu, 16 Jul 2020 01:24:36 +0000 From: Hui Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][F/OEM-5.6/G][PATCH 0/5] improve the amd renoir audio driver to prepare to work with ucm3 Date: Thu, 16 Jul 2020 09:24:19 +0800 Message-Id: <20200716012429.11957-1-hui.wang@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1887734 For focal and oem-5.6 kernel, these all 5 patches are needed, for groovy kernel, since the 1st patch is already in the 5.8 kernel, the groovy kernel only needs the last 3 patches [3/5, 4/5 and 5/5]. BTW the last 3 patches will be in the mainline kernel 5.9. [Impact] the alsa upstream worte the ucm3 files for amd renoir audio, but to load the ucm3, it depends on the kernel module name, and the upstream ucm3 needs the name snd-xxx, so we need to backport the patches from mainline kernel to change the kernel module name to meet ucm3 requirement. BTW, there are some dmic dynamically detection patches, we integrate them too. [Fix] Backport 4 patches from upstream. [Test Case] boot the kernel with these patches on amd renoir machines (lenovo machines), the audio driver works well (via command line like aplay or areord), then upgrade the alsa-lib and alsa-ucm-conf to 1.2.3.2, now we could see the audio devices from gnome, and they work well. [Regression Risk] Low, this SRU are only specific to soc/amd/renoir, and we already tested on 2 lenovo machines, their audio worked as before. Hui Wang (1): UBUNTU: remove a kernel module since its name is changed Jaroslav Kysela (1): AsoC: amd: add missing snd- module prefix to the acp3x-rn driver kernel module Vijendar Mukunda (3): ASoC: amd: add logic to check dmic hardware runtime ASoC: amd: add ACPI dependency check ASoC: amd: fixed kernel warnings .../abi/5.6.0-1019.19/amd64/oem.modules | 1 - sound/soc/amd/renoir/Makefile | 7 ++-- sound/soc/amd/renoir/rn-pci-acp3x.c | 33 +++++++++++++++++++ sound/soc/amd/renoir/rn_acp3x.h | 2 ++ 4 files changed, 39 insertions(+), 4 deletions(-)