Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/topic/wm8962', 'asoc/topic/wm897…
Browse files Browse the repository at this point in the history
…4' and 'asoc/topic/wm9713' into asoc-next
  • Loading branch information
broonie committed Dec 23, 2015
4 parents 2d850b1 + 0b170f7 + 47d358b + fa1a51f commit fec89f9
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 149 deletions.
15 changes: 15 additions & 0 deletions Documentation/devicetree/bindings/sound/wlf,wm8974.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
WM8974 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:
- compatible: "wlf,wm8974"
- reg: the I2C address or SPI chip select number of the device

Examples:

codec: wm8974@1a {
compatible = "wlf,wm8974";
reg = <0x1a>;
};
4 changes: 3 additions & 1 deletion sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ config SND_SOC_WM8971
tristate

config SND_SOC_WM8974
tristate
tristate "Wolfson Microelectronics WM8974 codec"
depends on I2C

config SND_SOC_WM8978
tristate "Wolfson Microelectronics WM8978 codec"
Expand Down Expand Up @@ -943,6 +944,7 @@ config SND_SOC_WM9712

config SND_SOC_WM9713
tristate
select REGMAP_AC97

# Amp
config SND_SOC_LM4857
Expand Down
3 changes: 1 addition & 2 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static const struct reg_default wm8962_reg[] = {
{ 15, 0x6243 }, /* R15 - Software Reset */

{ 17, 0x007B }, /* R17 - ALC1 */

{ 18, 0x0000 }, /* R18 - ALC2 */
{ 19, 0x1C32 }, /* R19 - ALC3 */
{ 20, 0x3200 }, /* R20 - Noise Gate */
{ 21, 0x00C0 }, /* R21 - Left ADC volume */
Expand Down Expand Up @@ -794,7 +794,6 @@ static bool wm8962_volatile_register(struct device *dev, unsigned int reg)
case WM8962_CLOCKING1:
case WM8962_CLOCKING2:
case WM8962_SOFTWARE_RESET:
case WM8962_ALC2:
case WM8962_THERMAL_SHUTDOWN_STATUS:
case WM8962_ADDITIONAL_CONTROL_4:
case WM8962_DC_SERVO_6:
Expand Down
7 changes: 7 additions & 0 deletions sound/soc/codecs/wm8974.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,16 @@ static const struct i2c_device_id wm8974_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, wm8974_i2c_id);

static const struct of_device_id wm8974_of_match[] = {
{ .compatible = "wlf,wm8974", },
{ }
};
MODULE_DEVICE_TABLE(of, wm8974_of_match);

static struct i2c_driver wm8974_i2c_driver = {
.driver = {
.name = "wm8974",
.of_match_table = wm8974_of_match,
},
.probe = wm8974_i2c_probe,
.remove = wm8974_i2c_remove,
Expand Down
Loading

0 comments on commit fec89f9

Please sign in to comment.