Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157703
b: refs/heads/master
c: aa6b904
h: refs/heads/master
i:
  157701: 7ed1d7a
  157699: bc6970d
  157695: 667ba87
v: v3
  • Loading branch information
Ben Dooks authored and Mark Brown committed Aug 21, 2009
1 parent 8dd8f6b commit 5140f37
Show file tree
Hide file tree
Showing 4 changed files with 31 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: cb3826f524728a90a47f2f831c3d61851c8091b2
refs/heads/master: aa6b904e66d5f484bd52763d63259b9a16f6e107
10 changes: 10 additions & 0 deletions trunk/sound/soc/davinci/davinci-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
Expand Down Expand Up @@ -249,6 +250,13 @@ static struct snd_soc_device da850_evm_snd_devdata = {

static struct platform_device *evm_snd_device;

/* temporary i2c device creation until this can be moved into the machine
* support file.
*/
static struct i2c_board_info i2c_device[] = {
{ I2C_BOARD_INFO("tlv320aic33", 0x1b), }
};

static int __init evm_init(void)
{
struct snd_soc_device *evm_snd_dev_data;
Expand All @@ -273,6 +281,8 @@ static int __init evm_init(void)
} else
return -EINVAL;

i2c_register_board_info(1, i2c_device, ARRAY_SIZE(i2c_device));

evm_snd_device = platform_device_alloc("soc-audio", index);
if (!evm_snd_device)
return -ENOMEM;
Expand Down
10 changes: 10 additions & 0 deletions trunk/sound/soc/omap/n810.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/

#include <linux/clk.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/pcm.h>
Expand Down Expand Up @@ -335,6 +336,13 @@ static struct snd_soc_device n810_snd_devdata = {

static struct platform_device *n810_snd_device;

/* temporary i2c device creation until this can be moved into the machine
* support file.
*/
static struct i2c_board_info i2c_device[] = {
{ I2C_BOARD_INFO("tlv320aic3x", 0x1b), }
};

static int __init n810_soc_init(void)
{
int err;
Expand All @@ -343,6 +351,8 @@ static int __init n810_soc_init(void)
if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax()))
return -ENODEV;

i2c_register_board_info(1, i2c_device, ARRAY_SIZE(i2c_device));

n810_snd_device = platform_device_alloc("soc-audio", -1);
if (!n810_snd_device)
return -ENOMEM;
Expand Down
10 changes: 10 additions & 0 deletions trunk/sound/soc/s6000/s6105-ipcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
Expand Down Expand Up @@ -209,10 +210,19 @@ static struct s6000_snd_platform_data __initdata s6105_snd_data = {

static struct platform_device *s6105_snd_device;

/* temporary i2c device creation until this can be moved into the machine
* support file.
*/
static struct i2c_board_info i2c_device[] = {
{ I2C_BOARD_INFO("tlv320aic33", 0x18), }
};

static int __init s6105_init(void)
{
int ret;

i2c_register_board_info(0, i2c_device, ARRAY_SIZE(i2c_device));

s6105_snd_device = platform_device_alloc("soc-audio", -1);
if (!s6105_snd_device)
return -ENOMEM;
Expand Down

0 comments on commit 5140f37

Please sign in to comment.