linux/sound/soc/sof/intel/atom.c

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
//
// This file is provided under a dual BSD/GPLv2 license.  When using or
// redistributing this file, you may do so under either license.
//
// Copyright(c) 2018-2021 Intel Corporation
//
// Author: Liam Girdwood <[email protected]>
//

/*
 * Hardware interface for audio DSP on Atom devices
 */

#include <linux/module.h>
#include <sound/sof.h>
#include <sound/sof/xtensa.h>
#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
#include <sound/intel-dsp-config.h>
#include "../ops.h"
#include "shim.h"
#include "atom.h"
#include "../sof-acpi-dev.h"
#include "../sof-audio.h"
#include "../../intel/common/soc-intel-quirks.h"

static void atom_host_done(struct snd_sof_dev *sdev);
static void atom_dsp_done(struct snd_sof_dev *sdev);

/*
 * Debug
 */

static void atom_get_registers(struct snd_sof_dev *sdev,
			       struct sof_ipc_dsp_oops_xtensa *xoops,
			       struct sof_ipc_panic_info *panic_info,
			       u32 *stack, size_t stack_words)
{}

void atom_dump(struct snd_sof_dev *sdev, u32 flags)
{}
EXPORT_SYMBOL_NS();

/*
 * IPC Doorbell IRQ handler and thread.
 */

irqreturn_t atom_irq_handler(int irq, void *context)
{}
EXPORT_SYMBOL_NS();

irqreturn_t atom_irq_thread(int irq, void *context)
{}
EXPORT_SYMBOL_NS();

int atom_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
{}
EXPORT_SYMBOL_NS();

int atom_get_mailbox_offset(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

int atom_get_window_offset(struct snd_sof_dev *sdev, u32 id)
{}
EXPORT_SYMBOL_NS();

static void atom_host_done(struct snd_sof_dev *sdev)
{}

static void atom_dsp_done(struct snd_sof_dev *sdev)
{}

/*
 * DSP control.
 */

int atom_run(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

int atom_reset(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

static const char *fixup_tplg_name(struct snd_sof_dev *sdev,
				   const char *sof_tplg_filename,
				   const char *ssp_str)
{}

struct snd_soc_acpi_mach *atom_machine_select(struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

/* Atom DAIs */
struct snd_soc_dai_driver atom_dai[] =;
EXPORT_SYMBOL_NS();

void atom_set_mach_params(struct snd_soc_acpi_mach *mach,
			  struct snd_sof_dev *sdev)
{}
EXPORT_SYMBOL_NS();

MODULE_LICENSE();
MODULE_DESCRIPTION();