-
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 branches 'topic/ad193x', 'topic/tlv320aic23', 'topic/tlv320aic3…
…2x4', 'topic/wm8991', 'fix/si476x' and 'fix/88pm860' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-io
- Loading branch information
Showing
24 changed files
with
639 additions
and
250 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,30 @@ | ||
Texas Instruments - tlv320aic32x4 Codec module | ||
|
||
The tlv320aic32x4 serial control bus communicates through I2C protocols | ||
|
||
Required properties: | ||
- compatible: Should be "ti,tlv320aic32x4" | ||
- reg: I2C slave address | ||
- supply-*: Required supply regulators are: | ||
"iov" - digital IO power supply | ||
"ldoin" - LDO power supply | ||
"dv" - Digital core power supply | ||
"av" - Analog core power supply | ||
If you supply ldoin, dv and av are optional. Otherwise they are required | ||
See regulator/regulator.txt for more information about the detailed binding | ||
format. | ||
|
||
Optional properties: | ||
- reset-gpios: Reset-GPIO phandle with args as described in gpio/gpio.txt | ||
- clocks/clock-names: Clock named 'mclk' for the master clock of the codec. | ||
See clock/clock-bindings.txt for information about the detailed format. | ||
|
||
|
||
Example: | ||
|
||
codec: tlv320aic32x4@18 { | ||
compatible = "ti,tlv320aic32x4"; | ||
reg = <0x18>; | ||
clocks = <&clks 201>; | ||
clock-names = "mclk"; | ||
}; |
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
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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* AD1936/AD1937 audio driver | ||
* | ||
* Copyright 2014 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/i2c.h> | ||
#include <linux/regmap.h> | ||
|
||
#include <sound/soc.h> | ||
|
||
#include "ad193x.h" | ||
|
||
static const struct i2c_device_id ad193x_id[] = { | ||
{ "ad1936", 0 }, | ||
{ "ad1937", 0 }, | ||
{ } | ||
}; | ||
MODULE_DEVICE_TABLE(i2c, ad193x_id); | ||
|
||
static int ad193x_i2c_probe(struct i2c_client *client, | ||
const struct i2c_device_id *id) | ||
{ | ||
struct regmap_config config; | ||
|
||
config = ad193x_regmap_config; | ||
config.val_bits = 8; | ||
config.reg_bits = 8; | ||
|
||
return ad193x_probe(&client->dev, devm_regmap_init_i2c(client, &config)); | ||
} | ||
|
||
static int ad193x_i2c_remove(struct i2c_client *client) | ||
{ | ||
snd_soc_unregister_codec(&client->dev); | ||
return 0; | ||
} | ||
|
||
static struct i2c_driver ad193x_i2c_driver = { | ||
.driver = { | ||
.name = "ad193x", | ||
}, | ||
.probe = ad193x_i2c_probe, | ||
.remove = ad193x_i2c_remove, | ||
.id_table = ad193x_id, | ||
}; | ||
module_i2c_driver(ad193x_i2c_driver); | ||
|
||
MODULE_DESCRIPTION("ASoC AD1936/AD1937 audio CODEC driver"); | ||
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); | ||
MODULE_LICENSE("GPL"); |
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,48 @@ | ||
/* | ||
* AD1938/AD1939 audio driver | ||
* | ||
* Copyright 2014 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/spi/spi.h> | ||
#include <linux/regmap.h> | ||
|
||
#include <sound/soc.h> | ||
|
||
#include "ad193x.h" | ||
|
||
static int ad193x_spi_probe(struct spi_device *spi) | ||
{ | ||
struct regmap_config config; | ||
|
||
config = ad193x_regmap_config; | ||
config.val_bits = 8; | ||
config.reg_bits = 16; | ||
config.read_flag_mask = 0x09; | ||
config.write_flag_mask = 0x08; | ||
|
||
return ad193x_probe(&spi->dev, devm_regmap_init_spi(spi, &config)); | ||
} | ||
|
||
static int ad193x_spi_remove(struct spi_device *spi) | ||
{ | ||
snd_soc_unregister_codec(&spi->dev); | ||
return 0; | ||
} | ||
|
||
static struct spi_driver ad193x_spi_driver = { | ||
.driver = { | ||
.name = "ad193x", | ||
.owner = THIS_MODULE, | ||
}, | ||
.probe = ad193x_spi_probe, | ||
.remove = ad193x_spi_remove, | ||
}; | ||
module_spi_driver(ad193x_spi_driver); | ||
|
||
MODULE_DESCRIPTION("ASoC AD1938/AD1939 audio CODEC driver"); | ||
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); | ||
MODULE_LICENSE("GPL"); |
Oops, something went wrong.