ASoC: tas2770: Remove ti,asi-format code
Remove the code to support the asi-format binding property. The code does nothing except read the property and set a variable. No additional action is taken except to reset the variable. The property is supposed to set the rising or falling RX edge detection of the SBCLK but this edge detection is done by checking the DAI_FMT_INV_MASK. Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200923132600.10652-5-dmurphy@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c0a30e2e07
commit
dd7d905206
|
@ -391,8 +391,6 @@ static int tas2770_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
tas2770->asi_format = fmt;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,15 +644,6 @@ static int tas2770_parse_dt(struct device *dev, struct tas2770_priv *tas2770)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
rc = fwnode_property_read_u32(dev->fwnode, "ti,asi-format",
|
|
||||||
&tas2770->asi_format);
|
|
||||||
if (rc) {
|
|
||||||
dev_info(tas2770->dev, "Property %s is missing setting default slot\n",
|
|
||||||
"ti,asi-format");
|
|
||||||
|
|
||||||
tas2770->asi_format = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = fwnode_property_read_u32(dev->fwnode, "ti,imon-slot-no",
|
rc = fwnode_property_read_u32(dev->fwnode, "ti,imon-slot-no",
|
||||||
&tas2770->i_sense_slot);
|
&tas2770->i_sense_slot);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
|
|
@ -132,7 +132,6 @@ struct tas2770_priv {
|
||||||
struct regmap *regmap;
|
struct regmap *regmap;
|
||||||
struct snd_soc_component *component;
|
struct snd_soc_component *component;
|
||||||
int power_state;
|
int power_state;
|
||||||
int asi_format;
|
|
||||||
struct gpio_desc *reset_gpio;
|
struct gpio_desc *reset_gpio;
|
||||||
struct gpio_desc *sdz_gpio;
|
struct gpio_desc *sdz_gpio;
|
||||||
int sampling_rate;
|
int sampling_rate;
|
||||||
|
|
Loading…
Reference in New Issue