Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1952169ioo; Mon, 23 May 2022 07:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlIHZhCdPe7zJoix4GFoQHSwWKgpEiddd9Qd2iXmgyvhrmgOdk7neMKjyrtXmLrPrg+FiG X-Received: by 2002:a17:90a:b017:b0:1df:6f31:c273 with SMTP id x23-20020a17090ab01700b001df6f31c273mr26442030pjq.167.1653314456651; Mon, 23 May 2022 07:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653314456; cv=none; d=google.com; s=arc-20160816; b=gcTUR0sQyCOgE2KSH7PKULLEogoT7P8hW/lsdm59erlPB+QkUx5AILHIEWslzjbpey 0sanZrhWha27EFjWoJzXNtMYh2w2MV3Og2Y4Ph4YIoYfX0g81moDu9oxegxv59A77dgZ 9gEC9jPPKcV95BVitkyDasOtCq2XLQ1gAJprIfrC5TZL7MsVXktLfRhAqREO0jhQGu1Z AYFkvZ6Bl4UIAfrL57WpOACOA1q4KGE5aAcQFd4D2fOLeIBPc7yz/YjaklyM6on8qOdm Pr1Fkm/MkJmy45lypSQpjdMqXUTGfKSDXeOyIPO6bQ1+srkhzAarnUriXrujWL4qBBct zvjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=EHMcsEmvvJZ5YK4UB7JWYPJGU7GAR4VtM9LZecjaIGM=; b=uqsT5MwQNan3BuogxSnwS6oytuAqweDzyMAZ9ce1C7J0W88RC69vry7uWFVBmYo2rm OGJCDgh23DMewVd96jRrhrE9GmG+2KaY40YvxW14HaewY+nNIqR5450AXer4Q2/27DNX lDgAOF01yVg8Yj8zgxKohT0P2ZpWhB7nJmnF2DEoWdyf0xaaJXotw4kIjdzKwRRxTC+l Qbe6+EIGkpENwGL1a3x0UGDE8ufPPpswBpQpekhfZbBiiCfgsO5hELSvysO8x0Z729pL VsgN/ogopQo5VQvfhu3Av+w3bPO8hLpH7bnFsYLXx/YKXZEBaGZFucEbvcmQxTLV7aup jp6w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 36-20020a630a24000000b003db8493c5b7si11251854pgk.471.2022.05.23.07.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 07:00:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D9625716E; Mon, 23 May 2022 07:00:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236746AbiEWOA2 (ORCPT + 99 others); Mon, 23 May 2022 10:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236765AbiEWOA0 (ORCPT ); Mon, 23 May 2022 10:00:26 -0400 Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B51657143 for ; Mon, 23 May 2022 07:00:22 -0700 (PDT) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-d39f741ba0so18504501fac.13 for ; Mon, 23 May 2022 07:00:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EHMcsEmvvJZ5YK4UB7JWYPJGU7GAR4VtM9LZecjaIGM=; b=11twM4BMmaOPhFAaXF/uaQnE1kug/8X8jA6QhynRe0XODvM8jdj11tEDBvAGtXCDL9 7qZLKTDRy7CyFvVnRq0C2ydmN5RKk+Vkhku4NVlKnchmFt7ZfXCUsLqnfjagoY1ffCjH oPF0qL/RyrCVmp/VRdaTvf1zVsHRScgVlftwAa6qI2MkWGf2x2ts7QjIclVMzgKBNjys acC1ScNwKzgsyEHY9Th2z41PCfetEJHPLKluwZy1WuS48APoq82b0Qr/+5h7fPM/szz/ 6DWWglnJv5WmOYrtW37c2VCAwKMw7iMSBTA3Whr1xl0z13AvVjDUHxqaZ3ZkZpGtm0Wh +pfA== X-Gm-Message-State: AOAM532vTBAsGbM1qUaRP4pMpc1+X0rNvTC0WDbGnTuhhG0MZPe99Pgf 3pcD1/EANlz6ubl90nCDM2IPJG0vjTSevg== X-Received: by 2002:a05:6870:ecac:b0:f1:a98e:f2ed with SMTP id eo44-20020a056870ecac00b000f1a98ef2edmr11706747oab.159.1653314420091; Mon, 23 May 2022 07:00:20 -0700 (PDT) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com. [209.85.210.53]) by smtp.gmail.com with ESMTPSA id y199-20020a4a45d0000000b0040e699e8d8asm3556397ooa.45.2022.05.23.07.00.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 07:00:19 -0700 (PDT) Received: by mail-ot1-f53.google.com with SMTP id c15-20020a9d684f000000b0060b097c71ecso3238053oto.10 for ; Mon, 23 May 2022 07:00:19 -0700 (PDT) X-Received: by 2002:a81:2143:0:b0:2fb:1274:247e with SMTP id h64-20020a812143000000b002fb1274247emr23349727ywh.384.1653313941447; Mon, 23 May 2022 06:52:21 -0700 (PDT) MIME-Version: 1.0 References: <20220523132353.1767614-1-Vsujithkumar.Reddy@amd.com> <20220523132353.1767614-2-Vsujithkumar.Reddy@amd.com> In-Reply-To: <20220523132353.1767614-2-Vsujithkumar.Reddy@amd.com> From: Geert Uytterhoeven Date: Mon, 23 May 2022 15:52:10 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] ASoC: amd: acp: Add support for nau8825 and max98360 card To: V sujith kumar Reddy Cc: Mark Brown , ALSA Development Mailing List , Vijendar.Mukunda@amd.com, Basavaraj.Hiregoudar@amd.com, Sunil-kumar.Dommati@amd.com, ajitkumar.pandey@amd.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Kai Vehmanen , Geert Uytterhoeven , Arnd Bergmann , Jia-Ju Bai , Akihiko Odaki , Daniel Baluta , Bard Liao , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sujith, On Mon, May 23, 2022 at 3:24 PM V sujith kumar Reddy wrote: > We have new platform with nau8825 as a primary codec and max98360 as an > amp codec. Add machine struct to register sof audio based sound card > on such Chrome machine. > > Signed-off-by: V sujith kumar Reddy Thanks for your patch! > --- a/sound/soc/amd/acp-config.c > +++ b/sound/soc/amd/acp-config.c > @@ -130,4 +130,25 @@ struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[] = { > }; > EXPORT_SYMBOL(snd_soc_acpi_amd_sof_machines); > > +struct snd_soc_acpi_mach snd_soc_acpi_amd_rmb_sof_machines[] = { > + { > + .id = "AMDI1019", > + .drv_name = "rmb-dsp", > + .pdata = (void *)&acp_quirk_data, You can assign an arbitrary pointer type to "void *" without casting. In fact the cast makes the code less safe, as it prevents the compiler from informing you in case a future patch changes types. The same applies to below, and to the existing casts. > + .fw_filename = "sof-rmb.ri", > + .sof_tplg_filename = "sof-acp-rmb.tplg", > + }, > + { > + .id = "10508825", > + .drv_name = "nau8825-max", > + .pdata = (void *)&acp_quirk_data, > + .machine_quirk = snd_soc_acpi_codec_list, > + .quirk_data = &_max, > + .fw_filename = "sof-rmb.ri", > + .sof_tplg_filename = "sof-acp-rmb.tplg", > + }, > + {}, > +}; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds