Commit 14f8c8d8 authored by Dan Murphy's avatar Dan Murphy Committed by Mark Brown

ASoC: tas2562: Add entries for the TAS2563 audio amplifier

The TAS2563 is register compatible with the TAS2562.  The main
difference is the TAS2563 has a programmable DSP to manage different
audio profiles.
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200226130305.12043-2-dmurphy@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f87cdb1f
...@@ -55,6 +55,11 @@ struct tas2562_data { ...@@ -55,6 +55,11 @@ struct tas2562_data {
int volume_lvl; int volume_lvl;
}; };
enum tas256x_model {
TAS2562,
TAS2563,
};
static int tas2562_set_bias_level(struct snd_soc_component *component, static int tas2562_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level) enum snd_soc_bias_level level)
{ {
...@@ -664,13 +669,15 @@ static int tas2562_probe(struct i2c_client *client, ...@@ -664,13 +669,15 @@ static int tas2562_probe(struct i2c_client *client,
} }
static const struct i2c_device_id tas2562_id[] = { static const struct i2c_device_id tas2562_id[] = {
{ "tas2562", 0 }, { "tas2562", TAS2562 },
{ "tas2563", TAS2563 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, tas2562_id); MODULE_DEVICE_TABLE(i2c, tas2562_id);
static const struct of_device_id tas2562_of_match[] = { static const struct of_device_id tas2562_of_match[] = {
{ .compatible = "ti,tas2562", }, { .compatible = "ti,tas2562", },
{ .compatible = "ti,tas2563", },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, tas2562_of_match); MODULE_DEVICE_TABLE(of, tas2562_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment