From patchwork Sun Jun 12 13:15:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1642538 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=Z2gJ49rF; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LLZvS6BJZz9s75 for ; Sun, 12 Jun 2022 23:15:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 60C8284428; Sun, 12 Jun 2022 15:15:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="Z2gJ49rF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C067784429; Sun, 12 Jun 2022 15:15:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF24D84424 for ; Sun, 12 Jun 2022 15:15:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655039740; bh=He/4TDyxwso/N5Gc5C7oX8uo8wgzX97tGYZwevE+PX8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Z2gJ49rFiIelqvFWHbLcvooOQJixbtDrB/vyqw1YIV0Ld6kq2bUXDls7/cOjIJis9 8X5ARAOGgqn8tA/TJc8kcZIUaHOf8SbIFIaPRRnO5PUxV3Amrex3dhmfFEnDr3NMpN dqYZUvmG3u1y0ZlYj7AAHNJBQBInaG4JwaHjgt/g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from rpi732.fritz.box ([62.143.94.109]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1My32L-1noMl92swB-00zWa8; Sun, 12 Jun 2022 15:15:40 +0200 From: Heinrich Schuchardt To: Simon Glass Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 1/1] sound: enable building DA7219 driver with ACPIGEN=n Date: Sun, 12 Jun 2022 13:15:34 +0000 Message-Id: <20220612131534.22617-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:BlkMqWVRJ9YV6E+/00Tyd4RaYgmZSShTvLWNAc6DlrrnvCH3xad QIQBxE3MfGYpeF5WoPDqHQGHu602BR9V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866GCPU7DOefbaSbiw56GHv0QbVriaFMuvhwUhFva/+37HpE6/dTp++gp4GrbkZ8FjTQu Fl/89tfiBeuhzV39ToKo6ZWpKBWD3hgwGb2uWDg2UGCcjikBgB5QJRXjtXt4z/onAvR2H36Y3 FFl1j9rK0ZlhWdDOKV7J9cayHa432cLzxVM/10DnRuxfMrnorDh56CSj5WTHPA7paqpWQd7Pm V+3f3XrvHl4/NxB5AV/D7RLZb90qHTMVULJlYaINQlOiAyYG3/MAxj65w== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean sandbox_defconfig builds the DA7219 driver. It should be possible to build the sandbox without ACPI support. ACPI support in the DA7219 driver is only needed when creating an ACPI table. Fix building with ACPIGEN=n. Fixes: 0324b7123e22 ("sound: Add an ACPI driver for Dialog Semicondutor da7219") Signed-off-by: Heinrich Schuchardt --- drivers/sound/da7219.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.36.1 diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c index 8d674bcb4f..c1edef4436 100644 --- a/drivers/sound/da7219.c +++ b/drivers/sound/da7219.c @@ -23,6 +23,7 @@ #define DA7219_ACPI_HID "DLGS7219" +__maybe_unused static int da7219_acpi_fill_ssdt(const struct udevice *dev, struct acpi_ctx *ctx) { @@ -171,10 +172,12 @@ static int da7219_acpi_setup_nhlt(const struct udevice *dev, #endif struct acpi_ops da7219_acpi_ops = { +#ifdef CONFIG_ACPIGEN .fill_ssdt = da7219_acpi_fill_ssdt, #ifdef CONFIG_X86 .setup_nhlt = da7219_acpi_setup_nhlt, #endif +#endif }; static const struct udevice_id da7219_ids[] = {