linux/sound/soc/ti/omap-twl4030.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * omap-twl4030.c  --  SoC audio for TI SoC based boards with twl4030 codec
 *
 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
 * All rights reserved.
 *
 * Author: Peter Ujfalusi <[email protected]>
 *
 * This driver replaces the following machine drivers:
 * omap3beagle (Author: Steve Sakoman <[email protected]>)
 * omap3evm (Author: Anuj Aggarwal <[email protected]>)
 * overo (Author: Steve Sakoman <[email protected]>)
 * igep0020 (Author: Enric Balletbo i Serra <[email protected]>)
 * zoom2 (Author: Misael Lopez Cruz <[email protected]>)
 * sdp3430 (Author: Misael Lopez Cruz <[email protected]>)
 */

#include <linux/platform_device.h>
#include <linux/platform_data/omap-twl4030.h>
#include <linux/module.h>
#include <linux/of.h>

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

#include "omap-mcbsp.h"

struct omap_twl4030 {};

static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
	struct snd_pcm_hw_params *params)
{}

static const struct snd_soc_ops omap_twl4030_ops =;

static const struct snd_soc_dapm_widget dapm_widgets[] =;

static const struct snd_soc_dapm_route audio_map[] =;

/* Headset jack detection DAPM pins */
static struct snd_soc_jack_pin hs_jack_pins[] =;

/* Headset jack detection gpios */
static struct snd_soc_jack_gpio hs_jack_gpios[] =;

static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm,
					  int connected, char *pin)
{}

static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
{}

/* Digital audio interface glue - connects codec <--> CPU */
SND_SOC_DAILINK_DEFS();

SND_SOC_DAILINK_DEFS();

static struct snd_soc_dai_link omap_twl4030_dai_links[] =;

/* Audio machine driver */
static struct snd_soc_card omap_twl4030_card =;

static int omap_twl4030_probe(struct platform_device *pdev)
{}

static const struct of_device_id omap_twl4030_of_match[] =;
MODULE_DEVICE_TABLE(of, omap_twl4030_of_match);

static struct platform_driver omap_twl4030_driver =;

module_platform_driver();

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