linux/sound/soc/soc-compress.c

// SPDX-License-Identifier: GPL-2.0+
//
// soc-compress.c  --  ALSA SoC Compress
//
// Copyright (C) 2012 Intel Corp.
//
// Authors: Namarta Kohli <[email protected]>
//          Ramesh Babu K V <[email protected]>
//          Vinod Koul <[email protected]>

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <sound/core.h>
#include <sound/compress_params.h>
#include <sound/compress_driver.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/soc-dpcm.h>
#include <sound/soc-link.h>

static int snd_soc_compr_components_open(struct snd_compr_stream *cstream)
{}

static void snd_soc_compr_components_free(struct snd_compr_stream *cstream,
					  int rollback)
{}

static int soc_compr_clean(struct snd_compr_stream *cstream, int rollback)
{}

static int soc_compr_free(struct snd_compr_stream *cstream)
{}

static int soc_compr_open(struct snd_compr_stream *cstream)
{}

static int soc_compr_open_fe(struct snd_compr_stream *cstream)
{}

static int soc_compr_free_fe(struct snd_compr_stream *cstream)
{}

static int soc_compr_trigger(struct snd_compr_stream *cstream, int cmd)
{}

static int soc_compr_trigger_fe(struct snd_compr_stream *cstream, int cmd)
{}

static int soc_compr_set_params(struct snd_compr_stream *cstream,
				struct snd_compr_params *params)
{}

static int soc_compr_set_params_fe(struct snd_compr_stream *cstream,
				   struct snd_compr_params *params)
{}

static int soc_compr_get_params(struct snd_compr_stream *cstream,
				struct snd_codec *params)
{}

static int soc_compr_ack(struct snd_compr_stream *cstream, size_t bytes)
{}

static int soc_compr_pointer(struct snd_compr_stream *cstream,
			     struct snd_compr_tstamp *tstamp)
{}

static int soc_compr_set_metadata(struct snd_compr_stream *cstream,
				  struct snd_compr_metadata *metadata)
{}

static int soc_compr_get_metadata(struct snd_compr_stream *cstream,
				  struct snd_compr_metadata *metadata)
{}

/* ASoC Compress operations */
static struct snd_compr_ops soc_compr_ops =;

/* ASoC Dynamic Compress operations */
static struct snd_compr_ops soc_compr_dyn_ops =;

/**
 * snd_soc_new_compress - create a new compress.
 *
 * @rtd: The runtime for which we will create compress
 * @num: the device index number (zero based - shared with normal PCMs)
 *
 * Return: 0 for success, else error.
 */
int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
{}
EXPORT_SYMBOL_GPL();