linux/sound/soc/tegra/tegra_wm8903.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec.
 *
 * Author: Stephen Warren <[email protected]>
 * Copyright (C) 2010-2012 - NVIDIA, Inc.
 *
 * Based on code copyright/by:
 *
 * (c) 2009, 2010 Nvidia Graphics Pvt. Ltd.
 *
 * Copyright 2007 Wolfson Microelectronics PLC.
 * Author: Graeme Gregory
 *         [email protected] or [email protected]
 */

#include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <linux/module.h>
#include <linux/platform_device.h>

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

#include "../codecs/wm8903.h"

#include "tegra_asoc_machine.h"

static struct snd_soc_jack_pin tegra_wm8903_mic_jack_pins[] =;

static unsigned int tegra_wm8903_mclk_rate(unsigned int srate)
{}

static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
{}

static int tegra_wm8903_remove(struct snd_soc_card *card)
{}

SND_SOC_DAILINK_DEFS();

static struct snd_soc_dai_link tegra_wm8903_dai =;

static struct snd_soc_card snd_soc_tegra_wm8903 =;

/* older device-trees used wrong polarity for the headphones-detection GPIO */
static const struct tegra_asoc_data tegra_wm8903_data_legacy =;

static const struct tegra_asoc_data tegra_wm8903_data =;

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

static struct platform_driver tegra_wm8903_driver =;
module_platform_driver();

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