ASoC: Intel: sof_sdw: remove unused rt dmic rtd_init
Some Realtek SDW DMIC codecs use the generic rt_dmic_rtd_init callback now. Remove unused rtd_init callbacks. Reviewed-by: Chao Song <chao.song@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://msgid.link/r/20240326160429.13560-26-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
bee2fe4467
commit
45bbc14fb9
@ -40,8 +40,7 @@ snd-soc-sof-sdw-objs += sof_sdw.o \
|
||||
sof_sdw_maxim.o sof_sdw_rt_amp.o \
|
||||
sof_sdw_rt5682.o sof_sdw_rt700.o \
|
||||
sof_sdw_rt711.o sof_sdw_rt_sdca_jack_common.o \
|
||||
sof_sdw_rt712_sdca.o sof_sdw_rt715.o \
|
||||
sof_sdw_rt715_sdca.o sof_sdw_rt722_sdca.o \
|
||||
sof_sdw_rt712_sdca.o sof_sdw_rt722_sdca.o \
|
||||
sof_sdw_rt_dmic.o \
|
||||
sof_sdw_cs42l42.o sof_sdw_cs42l43.o \
|
||||
sof_sdw_cs_amp.o \
|
||||
|
@ -193,10 +193,7 @@ int maxim_spk_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt5682_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt700_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt711_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt712_sdca_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt712_spk_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt715_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt715_sdca_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt_amp_spk_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
int rt_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd);
|
||||
|
@ -66,27 +66,3 @@ int rt712_spk_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const char * const dmics[] = {
|
||||
"rt712-sdca-dmic"
|
||||
};
|
||||
|
||||
int rt712_sdca_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
{
|
||||
struct snd_soc_card *card = rtd->card;
|
||||
struct snd_soc_dai *codec_dai;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
codec_dai = get_codec_dai_by_name(rtd, dmics, ARRAY_SIZE(dmics));
|
||||
if (!codec_dai)
|
||||
return -EINVAL;
|
||||
|
||||
component = codec_dai->component;
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
|
||||
"%s mic:%s",
|
||||
card->components, component->name_prefix);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_SOF_BOARD_HELPERS);
|
||||
|
@ -1,26 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// Copyright (c) 2020 Intel Corporation
|
||||
|
||||
/*
|
||||
* sof_sdw_rt715 - Helpers to handle RT715 from generic machine driver
|
||||
*/
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/errno.h>
|
||||
#include <sound/soc.h>
|
||||
#include <sound/soc-acpi.h>
|
||||
#include "sof_sdw_common.h"
|
||||
|
||||
int rt715_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
{
|
||||
struct snd_soc_card *card = rtd->card;
|
||||
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
|
||||
"%s mic:rt715",
|
||||
card->components);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,26 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// Copyright (c) 2020 Intel Corporation
|
||||
|
||||
/*
|
||||
* sof_sdw_rt715_sdca - Helpers to handle RT715-SDCA from generic machine driver
|
||||
*/
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/errno.h>
|
||||
#include <sound/soc.h>
|
||||
#include <sound/soc-acpi.h>
|
||||
#include "sof_sdw_common.h"
|
||||
|
||||
int rt715_sdca_rtd_init(struct snd_soc_pcm_runtime *rtd)
|
||||
{
|
||||
struct snd_soc_card *card = rtd->card;
|
||||
|
||||
card->components = devm_kasprintf(card->dev, GFP_KERNEL,
|
||||
"%s mic:rt715-sdca",
|
||||
card->components);
|
||||
if (!card->components)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user