ASoC: tas2562: Fix sample rate error message
PATCH RESEND 1/3 ASoC: tas2562: Fix sample rate error message
Fix error message for setting the sample rate. It says bitwidth but should say sample rate.
Signed-off-by Dan Murphy <[email protected]>
--- sound/soc/codecs/tas2562.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/tas2562.c +1 -1
@@ -271,7 +271,7 @@ static int tas2562_hw_params(struct snd_pcm_substream *substream, ret =tas2562_set_samplerate (tas2562,params_rate (params));if (ret) -dev_err (tas2562->dev,"set bitwidth failed, %d\n" , ret); +dev_err (tas2562->dev,"set sample rate failed, %d\n" , ret);return ret; }
Signature · 1 line
2.25.0
PATCH RESEND 2/3 ASoC: dt-bindings: Add TAS2563 compatible to the TAS2562 binding
Add the Texas Instruments TAS2563 audio amplifier to the TAS262 binding.
Signed-off-by Dan Murphy <[email protected]>
--- Documentation/devicetree/bindings/sound/tas2562.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/tas2562.txt +1 -1
@@ -8,7 +8,7 @@ real time monitoring of loudspeaker behavior. Required properties: - #address-cells - Should be <1>. - #size-cells - Should be <0>. - - compatible: - Should contain "ti,tas2562". + - compatible: - Should contain "ti,tas2562", "ti,tas2563". - reg: - The i2c address. Should be 0x4c, 0x4d, 0x4e or 0x4f. - ti,imon-slot-no:- TDM TX current sense time slot.
Signature · 1 line
2.25.0
PATCH RESEND 3/3 ASoC: tas2562: Add entries for the TAS2563 audio amplifier
In reply to Dan MurphyThe 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 Dan Murphy <[email protected]>
--- sound/soc/codecs/tas2562.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
sound/soc/codecs/tas2562.c +8 -1
@@ -55,6 +55,11 @@ struct tas2562_data {int volume_lvl; }; +enum tas256x_model { +TAS2562 , +TAS2563 , +}; +static int tas2562_set_bias_level (struct snd_soc_component *component,enum snd_soc_bias_level level) {
@@ -664,13 +669,15 @@ static int tas2562_probe(struct i2c_client *client, }static const struct i2c_device_id tas2562_id[] = { - {"tas2562" ,0 }, + {"tas2562" ,TAS2562 }, + {"tas2563" ,TAS2563 }, { } };MODULE_DEVICE_TABLE (i2c, tas2562_id);static const struct of_device_id tas2562_of_match[] = { { .compatible ="ti,tas2562" , }, + { .compatible ="ti,tas2563" , }, { }, };MODULE_DEVICE_TABLE (of, tas2562_of_match);
Signature · 1 line
2.25.0