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

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright(c) 2022 Intel Corporation

/*
 * sof_ssp_amp.c - ASoc Machine driver for Intel platforms
 * with RT1308/CS35L41 codec.
 */

#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/dmi.h>
#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/sof.h>
#include "sof_board_helpers.h"
#include "sof_realtek_common.h"
#include "sof_cirrus_common.h"

/* Driver-specific board quirks: from bit 0 to 7 */
#define SOF_HDMI_PLAYBACK_PRESENT

/* Default: SSP2  */
static unsigned long sof_ssp_amp_quirk =;

static const struct dmi_system_id chromebook_platforms[] =;

static int sof_card_late_probe(struct snd_soc_card *card)
{}

static struct snd_soc_card sof_ssp_amp_card =;

/* BE ID defined in sof-tgl-rt1308-hdmi-ssp.m4 */
#define HDMI_IN_BE_ID
#define SPK_BE_ID
#define DMIC01_BE_ID
#define INTEL_HDMI_BE_ID
/* extra BE links to support no-hdmi-in boards */
#define DMIC16K_BE_ID
#define BT_OFFLOAD_BE_ID

#define SSP_AMP_LINK_ORDER

#define SSP_AMP_LINK_IDS

static int
sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
			  struct sof_card_private *ctx)
{}

static int sof_ssp_amp_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sof_ssp_amp_driver =;
module_platform_driver();

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