diff options
| author | Baojun Xu <baojun.xu@ti.com> | 2025-08-10 20:23:58 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-08-11 09:13:42 +0200 |
| commit | f4ee43ae6ea8c509d470f20e7b446adf5a167dba (patch) | |
| tree | 90159fa668efb1805292cb5cde5f21fa9d77ddf1 /include/sound/tas5825-tlv.h | |
| parent | 03714939b1e65e4456b69d2cb0c6d2555c7aaa76 (diff) | |
ALSA: hda: Add TAS5825 support
Add TAS5825 support in TI's HDA driver.
TAS5825 is an on-chip DSP, but no calibration is required,
and no global address support smart amplifier devices.
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250810122358.1575-1-baojun.xu@ti.com
Diffstat (limited to 'include/sound/tas5825-tlv.h')
| -rw-r--r-- | include/sound/tas5825-tlv.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/sound/tas5825-tlv.h b/include/sound/tas5825-tlv.h new file mode 100644 index 000000000000..95f2d3fad120 --- /dev/null +++ b/include/sound/tas5825-tlv.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +// +// ALSA SoC Texas Instruments TAS5825 Audio Smart Amplifier +// +// Copyright (C) 2025 Texas Instruments Incorporated +// https://www.ti.com +// +// The TAS5825 hda driver implements for one or two TAS5825 chips. +// +// Author: Baojun Xu <baojun.xu@ti.com> +// + +#ifndef __TAS5825_TLV_H__ +#define __TAS5825_TLV_H__ + +#define TAS5825_DVC_LEVEL TASDEVICE_REG(0x0, 0x0, 0x4c) +#define TAS5825_AMP_LEVEL TASDEVICE_REG(0x0, 0x0, 0x54) + +static const __maybe_unused DECLARE_TLV_DB_SCALE( + tas5825_dvc_tlv, -10300, 50, 0); +static const __maybe_unused DECLARE_TLV_DB_SCALE( + tas5825_amp_tlv, -1550, 50, 0); + +#endif |