Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270555
b: refs/heads/master
c: 13c7d08
h: refs/heads/master
i:
  270553: ba0258a
  270551: 5436584
v: v3
  • Loading branch information
Mark Brown committed Aug 31, 2011
1 parent 36a7147 commit 4b13134
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e3ad571d56ab96e5fab87cea71c0e657d4708cb
refs/heads/master: 13c7d08f54cc83c1cd9884c5e142e485b748de18
16 changes: 16 additions & 0 deletions trunk/Documentation/devicetree/bindings/sound/wm8770.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8770 audio CODEC

This device supports SPI.

Required properties:

- compatible : "wlf,wm8770"

- reg : the chip select number.

Example:

codec: wm8770@1 {
compatible = "wlf,wm8770";
reg = <1>;
};
8 changes: 8 additions & 0 deletions trunk/sound/soc/codecs/wm8770.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/of_device.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
Expand Down Expand Up @@ -684,6 +685,12 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
.reg_cache_default = wm8770_reg_defs
};

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

#if defined(CONFIG_SPI_MASTER)
static int __devinit wm8770_spi_probe(struct spi_device *spi)
{
Expand Down Expand Up @@ -715,6 +722,7 @@ static struct spi_driver wm8770_spi_driver = {
.driver = {
.name = "wm8770",
.owner = THIS_MODULE,
.of_match_table = wm8770_of_match,
},
.probe = wm8770_spi_probe,
.remove = __devexit_p(wm8770_spi_remove)
Expand Down

0 comments on commit 4b13134

Please sign in to comment.