Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342656
b: refs/heads/master
c: ac5dbea
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed Oct 15, 2012
1 parent c136e05 commit b47c292
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: 08201deb691527d583121f7c9f951f39d2f90ba9
refs/heads/master: ac5dbea0d483bc0f6281f55261fab1dee7e6ac96
17 changes: 17 additions & 0 deletions trunk/Documentation/devicetree/bindings/sound/ak4104.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
AK4104 S/PDIF transmitter

This device supports SPI mode only.

Required properties:

- compatible : "asahi-kasei,ak4104"

- reg : The chip select number on the SPI bus

Example:

spdif: ak4104@0 {
compatible = "asahi-kasei,ak4104";
reg = <0>;
spi-max-frequency = <5000000>;
};
7 changes: 7 additions & 0 deletions trunk/sound/soc/codecs/ak4104.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,17 @@ static int __devexit ak4104_spi_remove(struct spi_device *spi)
return 0;
}

static const struct of_device_id ak4104_of_match[] = {
{ .compatible = "asahi-kasei,ak4104", },
{ }
};
MODULE_DEVICE_TABLE(of, ak4104_of_match);

static struct spi_driver ak4104_spi_driver = {
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = ak4104_of_match,
},
.probe = ak4104_spi_probe,
.remove = __devexit_p(ak4104_spi_remove),
Expand Down

0 comments on commit b47c292

Please sign in to comment.