Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
13c7d08f
Commit
13c7d08f
authored
Aug 29, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Add device tree binding for WM8770
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
1e3ad571
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Documentation/devicetree/bindings/sound/wm8770.txt
Documentation/devicetree/bindings/sound/wm8770.txt
+16
-0
sound/soc/codecs/wm8770.c
sound/soc/codecs/wm8770.c
+8
-0
No files found.
Documentation/devicetree/bindings/sound/wm8770.txt
0 → 100644
View file @
13c7d08f
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>;
};
sound/soc/codecs/wm8770.c
View file @
13c7d08f
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include <linux/moduleparam.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/of_device.h>
#include <linux/pm.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi.h>
...
@@ -684,6 +685,12 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
...
@@ -684,6 +685,12 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
.
reg_cache_default
=
wm8770_reg_defs
.
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)
#if defined(CONFIG_SPI_MASTER)
static
int
__devinit
wm8770_spi_probe
(
struct
spi_device
*
spi
)
static
int
__devinit
wm8770_spi_probe
(
struct
spi_device
*
spi
)
{
{
...
@@ -715,6 +722,7 @@ static struct spi_driver wm8770_spi_driver = {
...
@@ -715,6 +722,7 @@ static struct spi_driver wm8770_spi_driver = {
.
driver
=
{
.
driver
=
{
.
name
=
"wm8770"
,
.
name
=
"wm8770"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
wm8770_of_match
,
},
},
.
probe
=
wm8770_spi_probe
,
.
probe
=
wm8770_spi_probe
,
.
remove
=
__devexit_p
(
wm8770_spi_remove
)
.
remove
=
__devexit_p
(
wm8770_spi_remove
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment