forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'asoc/topic/ab8500', 'asoc/topic/adau1…
…7x1', 'asoc/topic/ads117x', 'asoc/topic/adsp' and 'asoc/topic/arizona' into asoc-next
- Loading branch information
Showing
20 changed files
with
474 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Analog Devices ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 | ||
|
||
Required properties: | ||
|
||
- compatible: Should contain one of the following: | ||
"adi,adau1361" | ||
"adi,adau1461" | ||
"adi,adau1761" | ||
"adi,adau1961" | ||
"adi,adau1381" | ||
"adi,adau1781" | ||
|
||
- reg: The i2c address. Value depends on the state of ADDR0 | ||
and ADDR1, as wired in hardware. | ||
|
||
Examples: | ||
#include <dt-bindings/sound/adau17x1.h> | ||
|
||
i2c_bus { | ||
adau1361@38 { | ||
compatible = "adi,adau1761"; | ||
reg = <0x38>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Texas Intstruments ADS117x ADC | ||
|
||
Required properties: | ||
|
||
- compatible : "ti,ads1174" or "ti,ads1178" | ||
|
||
Example: | ||
|
||
ads1178 { | ||
compatible = "ti,ads1178"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Driver for ADAU1761/ADAU1461/ADAU1761/ADAU1961/ADAU1781/ADAU1781 codecs | ||
* Driver for ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 codecs | ||
* | ||
* Copyright 2011-2014 Analog Devices Inc. | ||
* Author: Lars-Peter Clausen <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Driver for ADAU1761/ADAU1461/ADAU1761/ADAU1961 codec | ||
* Driver for ADAU1361/ADAU1461/ADAU1761/ADAU1961 codec | ||
* | ||
* Copyright 2014 Analog Devices Inc. | ||
* Author: Lars-Peter Clausen <[email protected]> | ||
|
@@ -44,9 +44,21 @@ static const struct i2c_device_id adau1761_i2c_ids[] = { | |
}; | ||
MODULE_DEVICE_TABLE(i2c, adau1761_i2c_ids); | ||
|
||
#if defined(CONFIG_OF) | ||
static const struct of_device_id adau1761_i2c_dt_ids[] = { | ||
{ .compatible = "adi,adau1361", }, | ||
{ .compatible = "adi,adau1461", }, | ||
{ .compatible = "adi,adau1761", }, | ||
{ .compatible = "adi,adau1961", }, | ||
{ }, | ||
}; | ||
MODULE_DEVICE_TABLE(of, adau1761_i2c_dt_ids); | ||
#endif | ||
|
||
static struct i2c_driver adau1761_i2c_driver = { | ||
.driver = { | ||
.name = "adau1761", | ||
.of_match_table = of_match_ptr(adau1761_i2c_dt_ids), | ||
}, | ||
.probe = adau1761_i2c_probe, | ||
.remove = adau1761_i2c_remove, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Driver for ADAU1761/ADAU1461/ADAU1761/ADAU1961 codec | ||
* Driver for ADAU1361/ADAU1461/ADAU1761/ADAU1961 codec | ||
* | ||
* Copyright 2014 Analog Devices Inc. | ||
* Author: Lars-Peter Clausen <[email protected]> | ||
|
@@ -61,9 +61,21 @@ static const struct spi_device_id adau1761_spi_id[] = { | |
}; | ||
MODULE_DEVICE_TABLE(spi, adau1761_spi_id); | ||
|
||
#if defined(CONFIG_OF) | ||
static const struct of_device_id adau1761_spi_dt_ids[] = { | ||
{ .compatible = "adi,adau1361", }, | ||
{ .compatible = "adi,adau1461", }, | ||
{ .compatible = "adi,adau1761", }, | ||
{ .compatible = "adi,adau1961", }, | ||
{ }, | ||
}; | ||
MODULE_DEVICE_TABLE(of, adau1761_spi_dt_ids); | ||
#endif | ||
|
||
static struct spi_driver adau1761_spi_driver = { | ||
.driver = { | ||
.name = "adau1761", | ||
.of_match_table = of_match_ptr(adau1761_spi_dt_ids), | ||
}, | ||
.probe = adau1761_spi_probe, | ||
.remove = adau1761_spi_remove, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Driver for ADAU1761/ADAU1461/ADAU1761/ADAU1961 codec | ||
* Driver for ADAU1361/ADAU1461/ADAU1761/ADAU1961 codec | ||
* | ||
* Copyright 2011-2013 Analog Devices Inc. | ||
* Author: Lars-Peter Clausen <[email protected]> | ||
|
@@ -456,13 +456,17 @@ static int adau1761_set_bias_level(struct snd_soc_codec *codec, | |
case SND_SOC_BIAS_PREPARE: | ||
break; | ||
case SND_SOC_BIAS_STANDBY: | ||
regcache_cache_only(adau->regmap, false); | ||
regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL, | ||
ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, | ||
ADAU17X1_CLOCK_CONTROL_SYSCLK_EN); | ||
if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) | ||
regcache_sync(adau->regmap); | ||
break; | ||
case SND_SOC_BIAS_OFF: | ||
regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL, | ||
ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0); | ||
regcache_cache_only(adau->regmap, true); | ||
break; | ||
|
||
} | ||
|
@@ -783,6 +787,10 @@ int adau1761_probe(struct device *dev, struct regmap *regmap, | |
if (ret) | ||
return ret; | ||
|
||
/* Enable cache only mode as we could miss writes before bias level | ||
* reaches standby and the core clock is enabled */ | ||
regcache_cache_only(regmap, true); | ||
|
||
return snd_soc_register_codec(dev, &adau1761_codec_driver, dai_drv, 1); | ||
} | ||
EXPORT_SYMBOL_GPL(adau1761_probe); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Driver for ADAU1781/ADAU1781 codec | ||
* Driver for ADAU1381/ADAU1781 codec | ||
* | ||
* Copyright 2011-2013 Analog Devices Inc. | ||
* Author: Lars-Peter Clausen <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.