Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp33038iog; Wed, 29 Jun 2022 17:26:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vltsKXlgLql6ErohGCM9El65TeNQ2WMnbl9Z9oZ+E/znQ9MIrhJQk9jWmqfz8wTZ+ZuZsB X-Received: by 2002:a63:951c:0:b0:40c:f82e:7d36 with SMTP id p28-20020a63951c000000b0040cf82e7d36mr5133316pgd.201.1656548774005; Wed, 29 Jun 2022 17:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656548773; cv=none; d=google.com; s=arc-20160816; b=jbY4oFxNSx/n1OM5DkhxTQAAjAJSAQaAWRDhhIxhO5yrayegAgHZvl1hIQ6g7C4cOo NVP7iKLdtdbA6j1o0CUsjqFsG34hkZo6wmtgJG3eFRet5IIS0pd8i+vIo9YW4A85AR1e IGVLHjmbasesZdM7c5sKvbYRP3mqaAmo1v4nmDHAtFtDGOy9YIntUjisMC1P2uMkcomn joGMucmnrAxvh20KDWLQYX35e8Z9gmv8IV1ux7QsFlzsXdZeIpRzEetl+7ht8kphyh+D OB6FBCL+xTEldXMKUDrEB5OHcgKb89+8rk1G5H7rP4iZu7e7Hvl7+vcma94FtbwTUDTr Qg/w== 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=5ynNwYBzFAo1G9Oad4D8Rj+/wZtvf3JrjfFqq+gkDaM=; b=a3eCD1UhIo3tkkl8pnW3000KbdNqKVCFBvOk4rV0bZ/GGBWPUGRsq0Y+KUNcvZCSz+ gJ2I8onjxUfiALW5mb3cgiwQbMs8McCQ1+vdoiFwBgSZUMsY/7v7j9t/r6cmL/F58UeH uOnokkS/HYLPcfKtrF4mfl1kCWaH0MFg1s70RIzWNNST2NDKNMM/EnTte64NQf60McXL G0WkOUYZuHWdJT5RrF7xUUhaZgj2Mhl7JNpO7+YtHpLF0D47tTXv5E8JquKlleCdm/ey /ZwGoTPE3tWy1istq3M7i+fHJuOZH/3Yxe02wqrAYO1OQ/jgOpYaUTiwSo85wtezWpGp P8Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=bryenhWG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a630207000000b0040d9505387dsi22573780pgc.605.2022.06.29.17.25.55; Wed, 29 Jun 2022 17:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=bryenhWG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230004AbiF3AYr (ORCPT + 99 others); Wed, 29 Jun 2022 20:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbiF3AYR (ORCPT ); Wed, 29 Jun 2022 20:24:17 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90A011F2CC for ; Wed, 29 Jun 2022 17:24:16 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25T7p0Oo020678; Wed, 29 Jun 2022 19:23:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=5ynNwYBzFAo1G9Oad4D8Rj+/wZtvf3JrjfFqq+gkDaM=; b=bryenhWGAsRznuLMnI31esf4SQUkcLa/xPLDN9DJ9HrvXPhfT5E8bSYSA/M1zRkWBnCB cl6ml+4kwXo/nzcvsvPSSiZ8wN8Y2NNBOSsPNCW0wwxIFZSYEv1YtA6cmopwZkxKSAYG h8U6aVhlnEiIdwebzCscz49nE38GzYnXPKI7PodXHcXNNRo9aLaz97urhY80eZDz+zDK pxJc56a7AY5JVI2gWEQR1JaDTzPOhxznN4j24HFXh5s0Lm04OwHaE75UIwl767Nb1zsF cxSHbW4vTILVHsOWS0GVbDdA99413pUD1Ashs5gc5+5dhocZBJvfIn3ON7aVHCb4YcjQ 1w== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3gwys2p9gm-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 29 Jun 2022 19:23:50 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 30 Jun 2022 01:23:47 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Thu, 30 Jun 2022 01:23:47 +0100 Received: from vitaly-Legion-7-16ACHg6.ad.cirrus.com (unknown [198.90.238.125]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 55FD82D4; Thu, 30 Jun 2022 00:23:47 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai , Mark Brown CC: , , , Stefan Binding Subject: [PATCH v8 11/14] ALSA: hda: hda_cs_dsp_ctl: Add fw id strings Date: Thu, 30 Jun 2022 01:23:32 +0100 Message-ID: <20220630002335.366545-12-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220630002335.366545-1-vitalyr@opensource.cirrus.com> References: <20220630002335.366545-1-vitalyr@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: vDuiBEPnEN6HVYiYeC1jhWg4eCqY9srj X-Proofpoint-GUID: vDuiBEPnEN6HVYiYeC1jhWg4eCqY9srj X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Stefan Binding This will be used to define the firmware names. Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov --- sound/pci/hda/hda_cs_dsp_ctl.c | 8 ++++++++ sound/pci/hda/hda_cs_dsp_ctl.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/sound/pci/hda/hda_cs_dsp_ctl.c b/sound/pci/hda/hda_cs_dsp_ctl.c index 2351476c9ee6..89ee549cb7d5 100644 --- a/sound/pci/hda/hda_cs_dsp_ctl.c +++ b/sound/pci/hda/hda_cs_dsp_ctl.c @@ -27,6 +27,14 @@ static const char * const hda_cs_dsp_fw_text[HDA_CS_DSP_NUM_FW] = { [HDA_CS_DSP_FW_MISC] = "Misc", }; +const char * const hda_cs_dsp_fw_ids[HDA_CS_DSP_NUM_FW] = { + [HDA_CS_DSP_FW_SPK_PROT] = "spk-prot", + [HDA_CS_DSP_FW_SPK_CALI] = "spk-cali", + [HDA_CS_DSP_FW_SPK_DIAG] = "spk-diag", + [HDA_CS_DSP_FW_MISC] = "misc", +}; +EXPORT_SYMBOL_NS_GPL(hda_cs_dsp_fw_ids, SND_HDA_CS_DSP_CONTROLS); + static int hda_cs_dsp_coeff_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) { struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); diff --git a/sound/pci/hda/hda_cs_dsp_ctl.h b/sound/pci/hda/hda_cs_dsp_ctl.h index c65bfd6878fd..4babc69cf2f0 100644 --- a/sound/pci/hda/hda_cs_dsp_ctl.h +++ b/sound/pci/hda/hda_cs_dsp_ctl.h @@ -27,6 +27,8 @@ struct hda_cs_dsp_ctl_info { const char *device_name; }; +extern const char * const hda_cs_dsp_fw_ids[HDA_CS_DSP_NUM_FW]; + int hda_cs_dsp_control_add(struct cs_dsp_coeff_ctl *cs_ctl, struct hda_cs_dsp_ctl_info *info); void hda_cs_dsp_control_remove(struct cs_dsp_coeff_ctl *cs_ctl); int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type, -- 2.34.1