Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2384769lqp; Sun, 24 Mar 2024 17:04:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiAAXjiueLM48xjVjqLd1lJbHnAJzhr0WfG03WggINXydjHKbiHCy9WeZGKx4A7akUHk+Ad5elbVJ5T4MqGwG17ool267LtcXuXO2Oog== X-Google-Smtp-Source: AGHT+IE8FGXxk+jOILQ21ZprAeN+qAVb4psBciJkUlkdiHHay+v0MYk6+bPO84rYMW0r/6w05acv X-Received: by 2002:a05:622a:289:b0:430:cfc1:c078 with SMTP id z9-20020a05622a028900b00430cfc1c078mr7498366qtw.33.1711325055118; Sun, 24 Mar 2024 17:04:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325055; cv=pass; d=google.com; s=arc-20160816; b=wwn23OS6WGxY1dcCwl+bMgvG3KdJTSrdd4rS7W6U5q73xFUGDJ2r1gt0kjotnXwX8D dy8iIBEVBTppdUn8nkjZEUletD/et7+lOwrkKE5GyGlsY9XGV+Afdq4HxvMDhZQmysos Gf7pJWg2E9vf00ukSzmJEm+jcAYyiaTYwODmxoFAVJCiyjuUBcGjYYZSKcM2fE7RvoNT xN+OUjZtgXW2PxOsDNieEooovaJN4Y3WSqSbEK9oq3wvVaEzwd70r/jRYJrSY6dCeMxE Q1FWn6Y4lrgD83xax7eek8a9zS9Nv2Yp8S9VRUJse2VKySjialPk6jUN4GeMSI/mZgCi Cvdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xiGuqn6JIvgZ/2UxN/L7hn/c1Z9VebeXeogsexTm0Lo=; fh=4TqiDWN7DRwZp9dpjr58IUjGbKZEaJCZs0ZabsiD2Cg=; b=gnT3kX35ajp78INLYNFFs4a5ddASRF/vD29urXbwwozlK5ZxWnxXmAF84+6FtE/iZe H9VPMCAoGLJ6guisra+RLisnRQbbNYBqDLBHYC+AMWMwpHi7yCvx3A8mJ4MG6oQhtaEk QVB88/eUWoMdqRHvgdJ0Isv8lnq1EOpSW3ieyvd02uO4UXQH7vJdh2Fbd54OJfDj9lF7 YpUecZ/jIWQWCg7uqv0LIjKVlZZBtk3cixNhRGdSNtf5QGUKFqaEV3zGXQPF6iZBKFmp utrchWEQkhep+Z1LY1dJ/nu0t3wxeC8QoUFoy6wkkS7lId2EEJXBXe4lMjikjddZKKft k/CA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SJJ26Oix; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ge5-20020a05622a5c8500b004309f7128edsi4540934qtb.439.2024.03.24.17.04.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:04:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SJJ26Oix; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D43581C23417 for ; Mon, 25 Mar 2024 00:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C08AB19067A; Sun, 24 Mar 2024 22:41:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SJJ26Oix" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC57713CD46; Sun, 24 Mar 2024 22:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320099; cv=none; b=Q5Ot2sd/o89x3Ixt8f+PWVKxDIbw4WMlHcK8rXrji/N61QMCwHgzRf9h21GJ2G/eHuO1EMNsCJ0DvAMfHYq+f8InGvmVVpMxoah++P704z+Q+dcYNL5OxSvLnQrKbLBlXt5/uY8qI/HvI+QZxdyRTLI4ETu3/JEib9YD/KJWgnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320099; c=relaxed/simple; bh=9JjK2PeRONgGDalNPKjTIIzQS2I0VNpFKGvX2wf6ss4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NL8+/fw8SO48EgeMmpGWrR1VtniNk/Mr0/AiaRZPqXcuQm/v+2sif0kzHN6q0t+x0lSkFMmLuIG+G7IADw9NBm12yjTzhD1HoiFp/23Eu7Ckmdu4+YqsTUj3Gx3m/Ecy2/+xgrcc4ZzOPEPd/6bT5+CBF1wRHope0lgEFy21soc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SJJ26Oix; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E87EC43394; Sun, 24 Mar 2024 22:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320099; bh=9JjK2PeRONgGDalNPKjTIIzQS2I0VNpFKGvX2wf6ss4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SJJ26OixraH+sjTvMnzy8iTRsFxTDksYHc+SxyVS6l+K1zpYi9718ALmUY/LacTTF akicBgfs39wPljsfbri5coDlBBJQezDjWHL97hDW1ztf+9gt2Jr9GewhvCicx0CeDW RWAxG7ysv6VsoKG2w5uebAl4BxmOPCYOHoqxI417toKIB5aAF+PQcg5JY/Wcxl67Cf f2/Sb5LxV4RfJeUjk/u3nB6Gw+ySzPTmWar90hfG8cVM86lajJ81Y6wjoIoErNwf+f JRFzNPA32rHfqiiY/sxb5rBC/Te1QvxpRHmKpdxEcbbrBdD9MoAEHmh5+PwxJJELT7 SE41VXjyisU7g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Charles Keepax , Bard Liao , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 6.8 408/715] ASoC: Intel: ssp-common: Add stub for sof_ssp_get_codec_name Date: Sun, 24 Mar 2024 18:29:47 -0400 Message-ID: <20240324223455.1342824-409-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Charles Keepax [ Upstream commit c1469c3a8a306e5f1eab1ae9585640d08e183f87 ] As this function is now used in sof_board_helpers it requires a build stub for the case SSP_COMMON is not built in. Fixes: ba0c7c328762 ("ASoC: Intel: board_helpers: support amp link initialization") Reviewed-by: Bard Liao Reviewed-by: Péter Ujfalusi Signed-off-by: Charles Keepax Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20240208165545.93811-21-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_ssp_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/intel/boards/sof_ssp_common.h b/sound/soc/intel/boards/sof_ssp_common.h index 6d827103479b5..d24888bc99fde 100644 --- a/sound/soc/intel/boards/sof_ssp_common.h +++ b/sound/soc/intel/boards/sof_ssp_common.h @@ -67,6 +67,14 @@ enum sof_ssp_codec { enum sof_ssp_codec sof_ssp_detect_codec_type(struct device *dev); enum sof_ssp_codec sof_ssp_detect_amp_type(struct device *dev); + +#if IS_ENABLED(CONFIG_SND_SOC_INTEL_SOF_SSP_COMMON) const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type); +#else +static inline const char *sof_ssp_get_codec_name(enum sof_ssp_codec codec_type) +{ + return NULL; +} +#endif #endif /* __SOF_SSP_COMMON_H */ -- 2.43.0