mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
The ALC5575 integrates an audio DSP that typically loads its firmware from an external flash via its own SPI host interface. In certain hardware configurations, the firmware can alternatively be loaded through the SPI client interface. The driver provides basic mute and volume control functions. When the SPI client interface is enabled, firmware loading is handled by the SPI driver. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Link: https://patch.msgid.link/17c36d07af44ffb1d600977955da95852f8d60f3.1767148150.git.oder_chiou@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
28 lines
570 B
C
28 lines
570 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* rt5575-spi.h -- ALC5575 SPI driver
|
|
*
|
|
* Copyright(c) 2025 Realtek Semiconductor Corp.
|
|
*
|
|
*/
|
|
|
|
#ifndef __RT5575_SPI_H__
|
|
#define __RT5575_SPI_H__
|
|
|
|
#if IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI)
|
|
struct spi_device *rt5575_spi_get_device(struct device *dev);
|
|
int rt5575_spi_fw_load(struct spi_device *spi);
|
|
#else
|
|
static inline struct spi_device *rt5575_spi_get_device(struct device *dev)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline int rt5575_spi_fw_load(struct spi_device *spi)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __RT5575_SPI_H__ */
|