linux/sound/soc/codecs/rt1017-sdca-sdw.c

// SPDX-License-Identifier: GPL-2.0-only
//
// rt1017-sdca-sdw.c -- rt1017 SDCA ALSA SoC amplifier audio driver
//
// Copyright(c) 2023 Realtek Semiconductor Corp.
//
//
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/tlv.h>

#include "rt1017-sdca-sdw.h"

static bool rt1017_sdca_readable_register(struct device *dev, unsigned int reg)
{}

static bool rt1017_sdca_volatile_register(struct device *dev, unsigned int reg)
{}

static const struct reg_sequence rt1017_blind_write[] =;

#define RT1017_MAX_REG_NUM

static const struct regmap_config rt1017_sdca_regmap =;

static int rt1017_sdca_read_prop(struct sdw_slave *slave)
{}

static int rt1017_sdca_io_init(struct device *dev, struct sdw_slave *slave)
{}

static int rt1017_sdca_update_status(struct sdw_slave *slave,
				enum sdw_slave_status status)
{}

static const char * const rt1017_rx_data_ch_select[] =;

static SOC_ENUM_SINGLE_DECL(rt1017_rx_data_ch_enum,
			SDW_SDCA_CTL(FUNC_NUM_SMART_AMP, RT1017_SDCA_ENT_UDMPU21,
				RT1017_SDCA_CTL_UDMPU_CLUSTER, 0),
			0, rt1017_rx_data_ch_select);

static const struct snd_kcontrol_new rt1017_sdca_controls[] =;

static const struct snd_kcontrol_new rt1017_sto_dac =;

static int rt1017_sdca_pde23_event(struct snd_soc_dapm_widget *w,
				struct snd_kcontrol *kcontrol, int event)
{}

static int rt1017_sdca_classd_event(struct snd_soc_dapm_widget *w,
				struct snd_kcontrol *kcontrol, int event)
{}

static int rt1017_sdca_feedback_event(struct snd_soc_dapm_widget *w,
				struct snd_kcontrol *kcontrol, int event)
{}

static const struct snd_soc_dapm_widget rt1017_sdca_dapm_widgets[] =;

static const struct snd_soc_dapm_route rt1017_sdca_dapm_routes[] =;

static const struct sdw_slave_ops rt1017_sdca_slave_ops =;

static int rt1017_sdca_component_probe(struct snd_soc_component *component)
{}

static void rt1017_sdca_component_remove(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver soc_sdca_component_rt1017 =;

static int rt1017_sdca_set_sdw_stream(struct snd_soc_dai *dai, void *sdw_stream,
				int direction)
{}

static void rt1017_sdca_shutdown(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{}

static int rt1017_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
				struct snd_pcm_hw_params *params,
				struct snd_soc_dai *dai)
{}

static int rt1017_sdca_pcm_hw_free(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops rt1017_sdca_ops =;

#define RT1017_STEREO_RATES
#define RT1017_FORMATS

static struct snd_soc_dai_driver rt1017_sdca_dai[] =;

static int rt1017_sdca_init(struct device *dev, struct regmap *regmap,
			struct sdw_slave *slave)
{}

static int rt1017_sdca_sdw_probe(struct sdw_slave *slave,
				const struct sdw_device_id *id)
{}

static int rt1017_sdca_sdw_remove(struct sdw_slave *slave)
{}

static const struct sdw_device_id rt1017_sdca_id[] =;
MODULE_DEVICE_TABLE(sdw, rt1017_sdca_id);

static int __maybe_unused rt1017_sdca_dev_suspend(struct device *dev)
{}

#define RT1017_PROBE_TIMEOUT

static int __maybe_unused rt1017_sdca_dev_resume(struct device *dev)
{}

static const struct dev_pm_ops rt1017_sdca_pm =;

static struct sdw_driver rt1017_sdca_sdw_driver =;
module_sdw_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();