Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1239929rdh; Fri, 27 Oct 2023 08:25:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvFF9HEzhr1Pf8aHhPf/KUy6tAluX6eU5bsREpGF5deRxxnysS30YLoHplB5rSCac6h7Hw X-Received: by 2002:ac8:7d4c:0:b0:412:be9:87fa with SMTP id h12-20020ac87d4c000000b004120be987famr3288609qtb.48.1698420355232; Fri, 27 Oct 2023 08:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698420355; cv=none; d=google.com; s=arc-20160816; b=diSj7sdtdGxlIfd4Hn2p6Q5y6UpyzY6u9R+em1TJHf2uSRWBGkMQ3YDsiz8GqnvH6i Cq5aQhIO2TF53N2hwQFb87XTn8Sx8hObXZ5QpculvYzirI7TrFqTtoPrhNtD8XY1bjub JhwtdqTj73y9GSFuQAhZmNK4Hbs7LDsxSfdcO6nUiivGQ3y6Q+ZxP4kvvBl14Qp9pz0/ VOvsVoI6AxGFzUkDqjApOqd8BVFFijrTeb5mIgWhMNGHzRS2RS+gKmG18LlSgCM4r8i5 LJfDFVqcXXAfYAgpaL+0aLgiYuQyzOK5QHcK+tzlIGPmYSxMPnoiW7SLos3FnRm/mixT uWGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mOs5swMQIxaTuoa5w9ZZ9iySYA5m0DzgnFEW5lt+4dw=; fh=dHDQ6/wGJ/y7WyKwCwpL1y2RUNldDUoHGyA2i5mo4KE=; b=RfIV4RV7CkY+ZH6BXeLdLNfzEKCzsRq3zKW1a45AWWSI/cCCyCBPrDMz7V0FcF39GB epNyfzDgtpso7aqQIqC+MG07rG0e61PDehNk4Or+a3Wu9tnsPFe8Nf66tpljoZmJsnds GSVM3ro3u9xpokkXhh7F+D9d2fvfN3Pc6R0LKU7X8029xCZYSGAI4ZXCi7owqco7k4KB s50BXVj52Morg52qqBtXDK2e/kErOORsjTSEtyEbNJSY2O7OalIZxaey+zkmG3ObQhU/ cTYe+jKVxOy5jYfuIfboNhnCrlEzkgLsxWig30/s3JgnE0Ka7JDa4x+nOaVu6a5pK9yi hbAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HOFAHyuM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o4-20020a05622a008400b0041811c03cc3si844642qtw.254.2023.10.27.08.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HOFAHyuM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6BC0F8072A04; Fri, 27 Oct 2023 08:25:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346277AbjJ0PYs (ORCPT + 99 others); Fri, 27 Oct 2023 11:24:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346287AbjJ0PYq (ORCPT ); Fri, 27 Oct 2023 11:24:46 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0E37D43; Fri, 27 Oct 2023 08:24:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BE1DC433C7; Fri, 27 Oct 2023 15:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698420282; bh=LySMjcb5ZeZeBpmsv8KiI7rJYVEnv2CzkA7+tr3Fe3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HOFAHyuMJHa0w0v+mSF7AQWZxIU3NmIl8RsBWMGuDwWcZy9B8b8UNe4tmPw/i4Pl5 bUci/EC3MAknaR6atH0pZEpvzlwaH7koG3cEal/5B0DMuFCPrYbMkQtpuRB2ZDJgJS 3qVumWhfiJoxFZIoL++wdnqmzW7m5p8Ankx22pPBt09xwjiCc5im/rnVPzHbMZE3Jq bVZPybOIt6SKFlu2Ds6M31qxlZqONIMD1ColxfQgPciM+kdk4SgHB28wmsnt7Cb66d +1vxS1N9OL2azizro0pZVinPYa8nBt1Cw9AF9wCmUssk3oYqaHgO1YwHJleme0MrTj E2Db/6JU13SEg== From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , Venkata Prasad Potturu , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ASoC: amd: acp: select SND_SOC_AMD_ACP_LEGACY_COMMON for ACP63 Date: Fri, 27 Oct 2023 17:23:54 +0200 Message-Id: <20231027152403.386257-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231027152403.386257-1-arnd@kernel.org> References: <20231027152403.386257-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:25:16 -0700 (PDT) From: Arnd Bergmann Without this dependency, acp63 fails to link: x86_64-linux-ld: sound/soc/amd/acp/acp63.o: in function `acp63_audio_remove': acp63.c:(.text+0x22): undefined reference to `acp_disable_interrupts' x86_64-linux-ld: sound/soc/amd/acp/acp63.o: in function `acp63_i2s_master_clock_generate.isra.0': acp63.c:(.text+0x6f): undefined reference to `smn_read' x86_64-linux-ld: acp63.c:(.text+0x81): undefined reference to `smn_write' x86_64-linux-ld: acp63.c:(.text+0x8e): undefined reference to `smn_read' x86_64-linux-ld: sound/soc/amd/acp/acp63.o: in function `acp63_pcm_resume': acp63.c:(.text+0x230): undefined reference to `restore_acp_i2s_params' x86_64-linux-ld: acp63.c:(.text+0x23d): undefined reference to `restore_acp_pdm_params' x86_64-linux-ld: sound/soc/amd/acp/acp63.o: in function `acp63_audio_probe': acp63.c:(.text+0x474): undefined reference to `acp_enable_interrupts' Fixes: d4c2d5391d7e ("ASoC: amd: acp: add Kconfig options for acp6.3 based platform driver") Signed-off-by: Arnd Bergmann --- Note that the original Kconfig entry is also whitespace-damaged, which I'm fixing in the same patch, as it didn't seem worth having two commits for the same few lines. --- sound/soc/amd/acp/Kconfig | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sound/soc/amd/acp/Kconfig b/sound/soc/amd/acp/Kconfig index b0e4d5117b81..5fb322212938 100644 --- a/sound/soc/amd/acp/Kconfig +++ b/sound/soc/amd/acp/Kconfig @@ -61,15 +61,17 @@ config SND_AMD_ASOC_REMBRANDT If unsure select "N". config SND_AMD_ASOC_ACP63 - tristate "AMD ACP ASOC ACP6.3 Support" - select SND_SOC_AMD_ACP_PCM - select SND_SOC_AMD_ACP_I2S - select SND_SOC_AMD_ACP_PDM - depends on X86 && PCI - help - This option enables Acp6.3 I2S support on AMD platform. - Say Y if you want to enable AUDIO on ACP6.3 - If unsure select "N". + tristate "AMD ACP ASOC ACP6.3 Support" + depends on X86 && PCI + depends on ACPI + select SND_SOC_AMD_ACP_PCM + select SND_SOC_AMD_ACP_I2S + select SND_SOC_AMD_ACP_PDM + select SND_SOC_AMD_ACP_LEGACY_COMMON + help + This option enables Acp6.3 I2S support on AMD platform. + Say Y if you want to enable AUDIO on ACP6.3 + If unsure select "N". config SND_SOC_AMD_MACH_COMMON tristate -- 2.39.2