linux/sound/soc/intel/atom/sst-mfld-platform-pcm.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  sst_mfld_platform.c - Intel MID Platform driver
 *
 *  Copyright (C) 2010-2014 Intel Corp
 *  Author: Vinod Koul <[email protected]>
 *  Author: Harsha Priya <[email protected]>
 *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
#define pr_fmt(fmt)

#include <linux/slab.h>
#include <linux/io.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/compress_driver.h>
#include <asm/platform_sst_audio.h>
#include "sst-mfld-platform.h"
#include "sst-atom-controls.h"

struct sst_device *sst;
static DEFINE_MUTEX(sst_lock);

int sst_register_dsp(struct sst_device *dev)
{}
EXPORT_SYMBOL_GPL();

int sst_unregister_dsp(struct sst_device *dev)
{}
EXPORT_SYMBOL_GPL();

static const struct snd_pcm_hardware sst_platform_pcm_hw =;

static struct sst_dev_stream_map dpcm_strm_map[] =;

static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
{}

/* helper functions */
void sst_set_stream_status(struct sst_runtime_stream *stream,
					int state)
{}

static inline int sst_get_stream_status(struct sst_runtime_stream *stream)
{}

static void sst_fill_alloc_params(struct snd_pcm_substream *substream,
				struct snd_sst_alloc_params_ext *alloc_param)
{}
static void sst_fill_pcm_params(struct snd_pcm_substream *substream,
				struct snd_sst_stream_params *param)
{}

static int sst_get_stream_mapping(int dev, int sdev, int dir,
	struct sst_dev_stream_map *map, int size)
{}

int sst_fill_stream_params(void *substream,
	const struct sst_data *ctx, struct snd_sst_params *str_params, bool is_compress)
{}

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

static void sst_period_elapsed(void *arg)
{}

static int sst_platform_init_stream(struct snd_pcm_substream *substream)
{}

static int power_up_sst(struct sst_runtime_stream *stream)
{}

static void power_down_sst(struct sst_runtime_stream *stream)
{}

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

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

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

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

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

static int sst_set_format(struct snd_soc_dai *dai, unsigned int fmt)
{}

static int sst_platform_set_ssp_slot(struct snd_soc_dai *dai,
			unsigned int tx_mask, unsigned int rx_mask,
			int slots, int slot_width) {}

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

static const struct snd_soc_dai_ops sst_media_dai_ops =;

static const struct snd_soc_dai_ops sst_compr_dai_ops =;

static const struct snd_soc_dai_ops sst_be_dai_ops =;

static struct snd_soc_dai_driver sst_platform_dai[] =;

static int sst_soc_open(struct snd_soc_component *component,
			struct snd_pcm_substream *substream)
{}

static int sst_soc_trigger(struct snd_soc_component *component,
			   struct snd_pcm_substream *substream, int cmd)
{}


static snd_pcm_uframes_t sst_soc_pointer(struct snd_soc_component *component,
					 struct snd_pcm_substream *substream)
{}

static snd_pcm_sframes_t sst_soc_delay(struct snd_soc_component *component,
				       struct snd_pcm_substream *substream)
{}

static int sst_soc_pcm_new(struct snd_soc_component *component,
			   struct snd_soc_pcm_runtime *rtd)
{}

static int sst_soc_probe(struct snd_soc_component *component)
{}

static void sst_soc_remove(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver sst_soc_platform_drv  =;

static int sst_platform_probe(struct platform_device *pdev)
{}

static void sst_platform_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP

static int sst_soc_prepare(struct device *dev)
{}

static void sst_soc_complete(struct device *dev)
{}

#else

#define sst_soc_prepare
#define sst_soc_complete

#endif


static const struct dev_pm_ops sst_platform_pm =;

static struct platform_driver sst_platform_driver =;

module_platform_driver();

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