linux/sound/soc/intel/avs/boards/da7219.c

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright(c) 2021-2022 Intel Corporation
//
// Author: Cezary Rojewski <[email protected]>
//

#include <linux/module.h>
#include <linux/platform_data/x86/soc.h>
#include <linux/platform_device.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <sound/soc-dapm.h>
#include <uapi/linux/input-event-codes.h>
#include "../../../codecs/da7219.h"
#include "../utils.h"

#define DA7219_DAI_NAME

static const struct snd_kcontrol_new card_controls[] =;

static int platform_clock_control(struct snd_soc_dapm_widget *w,
				  struct snd_kcontrol *k, int  event)
{}

static const struct snd_soc_dapm_widget card_widgets[] =;

static const struct snd_soc_dapm_route card_base_routes[] =;

static const struct snd_soc_jack_pin card_headset_pins[] =;

static int avs_da7219_codec_init(struct snd_soc_pcm_runtime *runtime)
{}

static void avs_da7219_codec_exit(struct snd_soc_pcm_runtime *rtd)
{}

static int
avs_da7219_be_fixup(struct snd_soc_pcm_runtime *runrime, struct snd_pcm_hw_params *params)
{}

static int avs_create_dai_link(struct device *dev, const char *platform_name, int ssp_port,
			       int tdm_slot, struct snd_soc_dai_link **dai_link)
{}

static int avs_card_suspend_pre(struct snd_soc_card *card)
{}

static int avs_card_resume_post(struct snd_soc_card *card)
{}

static int avs_da7219_probe(struct platform_device *pdev)
{}

static const struct platform_device_id avs_da7219_driver_ids[] =;
MODULE_DEVICE_TABLE(platform, avs_da7219_driver_ids);

static struct platform_driver avs_da7219_driver =;

module_platform_driver();

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