diff options
| author | Baojun Xu <baojun.xu@ti.com> | 2025-07-23 22:24:23 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-07-23 16:38:25 +0200 |
| commit | ab29b3460c5cec24bde75278d7ffca23cac1b867 (patch) | |
| tree | 73ecc362814041ac57d052660506bb08a43d0a49 /include/sound | |
| parent | 089a60acbd1bf77d01ec086d026a1e124dc003e8 (diff) | |
| download | linux-ab29b3460c5cec24bde75278d7ffca23cac1b867.tar.gz | |
ALSA: hda: Add TAS2770 support
Add TAS2770 support in TI's HDA driver. And add hda_chip_id for
more products. Distinguish DSP and non-DSP in firmware
loading function.
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20250723142423.38768-1-baojun.xu@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
| -rw-r--r-- | include/sound/tas2770-tlv.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/sound/tas2770-tlv.h b/include/sound/tas2770-tlv.h new file mode 100644 index 00000000000000..c0bd495b4a07fd --- /dev/null +++ b/include/sound/tas2770-tlv.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +// +// ALSA SoC Texas Instruments TAS2770 Audio Smart Amplifier +// +// Copyright (C) 2025 Texas Instruments Incorporated +// https://www.ti.com +// +// The TAS2770 hda driver implements for one, two, or even multiple +// TAS2770 chips. +// +// Author: Baojun Xu <baojun.xu@ti.com> +// + +#ifndef __TAS2770_TLV_H__ +#define __TAS2770_TLV_H__ + +#define TAS2770_DVC_LEVEL TASDEVICE_REG(0x0, 0x0, 0x17) +#define TAS2770_AMP_LEVEL TASDEVICE_REG(0x0, 0x0, 0x03) + +static const __maybe_unused DECLARE_TLV_DB_SCALE(tas2770_dvc_tlv, 1650, 50, 0); +static const __maybe_unused DECLARE_TLV_DB_SCALE(tas2770_amp_tlv, 1100, 50, 0); + +#endif |
