linux/sound/usb/media.c

// SPDX-License-Identifier: GPL-2.0
/*
 * media.c - Media Controller specific ALSA driver code
 *
 * Copyright (c) 2019 Shuah Khan <[email protected]>
 *
 */

/*
 * This file adds Media Controller support to the ALSA driver
 * to use the Media Controller API to share the tuner with DVB
 * and V4L2 drivers that control the media device.
 *
 * The media device is created based on the existing quirks framework.
 * Using this approach, the media controller API usage can be added for
 * a specific device.
 */

#include <linux/init.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/usb.h>

#include <sound/pcm.h>
#include <sound/core.h>

#include "usbaudio.h"
#include "card.h"
#include "mixer.h"
#include "media.h"

int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm,
			  int stream)
{}

void snd_media_stream_delete(struct snd_usb_substream *subs)
{}

int snd_media_start_pipeline(struct snd_usb_substream *subs)
{}

void snd_media_stop_pipeline(struct snd_usb_substream *subs)
{}

static int snd_media_mixer_init(struct snd_usb_audio *chip)
{}

static void snd_media_mixer_delete(struct snd_usb_audio *chip)
{}

int snd_media_device_create(struct snd_usb_audio *chip,
			struct usb_interface *iface)
{}

void snd_media_device_delete(struct snd_usb_audio *chip)
{}