linux/sound/soc/intel/boards/bdw_rt286.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Sound card driver for Intel Broadwell Wildcat Point with Realtek 286
 *
 * Copyright (C) 2013, Intel Corporation
 */

#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include "../../codecs/rt286.h"

static struct snd_soc_jack card_headset;

static struct snd_soc_jack_pin card_headset_pins[] =;

static const struct snd_kcontrol_new card_controls[] =;

static const struct snd_soc_dapm_widget card_widgets[] =;

static const struct snd_soc_dapm_route card_routes[] =;

static int codec_link_init(struct snd_soc_pcm_runtime *rtd)
{}

static void codec_link_exit(struct snd_soc_pcm_runtime *rtd)
{}

static int codec_link_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
				      struct snd_pcm_hw_params *params)
{}

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

static const struct snd_soc_ops codec_link_ops =;

SND_SOC_DAILINK_DEF(system, DAILINK_COMP_ARRAY(COMP_CPU("System Pin")));
SND_SOC_DAILINK_DEF(offload0, DAILINK_COMP_ARRAY(COMP_CPU("Offload0 Pin")));
SND_SOC_DAILINK_DEF(offload1, DAILINK_COMP_ARRAY(COMP_CPU("Offload1 Pin")));
SND_SOC_DAILINK_DEF(loopback, DAILINK_COMP_ARRAY(COMP_CPU("Loopback Pin")));

SND_SOC_DAILINK_DEF(dummy, DAILINK_COMP_ARRAY(COMP_DUMMY()));
SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio")));
SND_SOC_DAILINK_DEF(codec, DAILINK_COMP_ARRAY(COMP_CODEC("i2c-INT343A:00", "rt286-aif1")));
SND_SOC_DAILINK_DEF(ssp0_port, DAILINK_COMP_ARRAY(COMP_CPU("ssp0-port")));

static struct snd_soc_dai_link card_dai_links[] =;

static int card_suspend_pre(struct snd_soc_card *card)
{}

static int card_resume_post(struct snd_soc_card *card)
{}

static struct snd_soc_card bdw_rt286_card =;

/* Use space before codec name to simplify card ID, and simplify driver name. */
#define SOF_CARD_NAME
#define SOF_DRIVER_NAME

#define CARD_NAME

static int bdw_rt286_probe(struct platform_device *pdev)
{}

static struct platform_driver bdw_rt286_driver =;

module_platform_driver()

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