Skip to content

Commit 9f1bcd1

Browse files
Shenghao-Dingbroonie
authored andcommitted
ASoC: tas2781: Add tas2563 into driver
Move tas2563 from tas2562 driver to tas2781 driver to unbind tas2563 from tas2562 driver code and bind it to tas2781 driver code, because tas2563 only work in bypass-DSP mode with tas2562 driver. In order to enable DSP mode for tas2563, it has been moved to tas2781 driver. As to the hardware part, such as register setting and DSP firmware, all these are stored in the binary firmware. What tas2781 drivder does is to parse the firmware and download it to the chip, then power on the chip. So, tas2781 driver can be resued as tas2563 driver. Only attention will be paid to downloading corresponding firmware. Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Link: https://msgid.link/r/20240104145721.1398-4-shenghao-ding@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e9aa447 commit 9f1bcd1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

sound/soc/codecs/tas2781-i2c.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// SPDX-License-Identifier: GPL-2.0
22
//
3-
// ALSA SoC Texas Instruments TAS2781 Audio Smart Amplifier
3+
// ALSA SoC Texas Instruments TAS2563/TAS2781 Audio Smart Amplifier
44
//
55
// Copyright (C) 2022 - 2023 Texas Instruments Incorporated
66
// https://www.ti.com
77
//
8-
// The TAS2781 driver implements a flexible and configurable
8+
// The TAS2563/TAS2781 driver implements a flexible and configurable
99
// algo coefficient setting for one, two, or even multiple
10-
// TAS2781 chips.
10+
// TAS2563/TAS2781 chips.
1111
//
1212
// Author: Shenghao Ding <shenghao-ding@ti.com>
1313
// Author: Kevin Lu <kevin-lu@ti.com>
@@ -32,13 +32,15 @@
3232
#include <sound/tas2781-tlv.h>
3333

3434
static const struct i2c_device_id tasdevice_id[] = {
35+
{ "tas2563", TAS2563 },
3536
{ "tas2781", TAS2781 },
3637
{}
3738
};
3839
MODULE_DEVICE_TABLE(i2c, tasdevice_id);
3940

4041
#ifdef CONFIG_OF
4142
static const struct of_device_id tasdevice_of_match[] = {
43+
{ .compatible = "ti,tas2563" },
4244
{ .compatible = "ti,tas2781" },
4345
{},
4446
};

0 commit comments

Comments
 (0)