diff options
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 10 | ||||
-rw-r--r-- | sound/soc/omap/n810.c | 10 | ||||
-rw-r--r-- | sound/soc/s6000/s6105-ipcam.c | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 396d777dedac..0190c1bea4e3 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/timer.h> | 14 | #include <linux/timer.h> |
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/i2c.h> | ||
17 | #include <sound/core.h> | 18 | #include <sound/core.h> |
18 | #include <sound/pcm.h> | 19 | #include <sound/pcm.h> |
19 | #include <sound/soc.h> | 20 | #include <sound/soc.h> |
@@ -249,6 +250,13 @@ static struct snd_soc_device da850_evm_snd_devdata = { | |||
249 | 250 | ||
250 | static struct platform_device *evm_snd_device; | 251 | static struct platform_device *evm_snd_device; |
251 | 252 | ||
253 | /* temporary i2c device creation until this can be moved into the machine | ||
254 | * support file. | ||
255 | */ | ||
256 | static struct i2c_board_info i2c_device[] = { | ||
257 | { I2C_BOARD_INFO("tlv320aic33", 0x1b), } | ||
258 | }; | ||
259 | |||
252 | static int __init evm_init(void) | 260 | static int __init evm_init(void) |
253 | { | 261 | { |
254 | struct snd_soc_device *evm_snd_dev_data; | 262 | struct snd_soc_device *evm_snd_dev_data; |
@@ -273,6 +281,8 @@ static int __init evm_init(void) | |||
273 | } else | 281 | } else |
274 | return -EINVAL; | 282 | return -EINVAL; |
275 | 283 | ||
284 | i2c_register_board_info(1, i2c_device, ARRAY_SIZE(i2c_device)); | ||
285 | |||
276 | evm_snd_device = platform_device_alloc("soc-audio", index); | 286 | evm_snd_device = platform_device_alloc("soc-audio", index); |
277 | if (!evm_snd_device) | 287 | if (!evm_snd_device) |
278 | return -ENOMEM; | 288 | return -ENOMEM; |
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index 4d3aec2a9f2a..0a505938e42b 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -22,6 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <linux/clk.h> | 24 | #include <linux/clk.h> |
25 | #include <linux/i2c.h> | ||
25 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
26 | #include <sound/core.h> | 27 | #include <sound/core.h> |
27 | #include <sound/pcm.h> | 28 | #include <sound/pcm.h> |
@@ -335,6 +336,13 @@ static struct snd_soc_device n810_snd_devdata = { | |||
335 | 336 | ||
336 | static struct platform_device *n810_snd_device; | 337 | static struct platform_device *n810_snd_device; |
337 | 338 | ||
339 | /* temporary i2c device creation until this can be moved into the machine | ||
340 | * support file. | ||
341 | */ | ||
342 | static struct i2c_board_info i2c_device[] = { | ||
343 | { I2C_BOARD_INFO("tlv320aic3x", 0x1b), } | ||
344 | }; | ||
345 | |||
338 | static int __init n810_soc_init(void) | 346 | static int __init n810_soc_init(void) |
339 | { | 347 | { |
340 | int err; | 348 | int err; |
@@ -343,6 +351,8 @@ static int __init n810_soc_init(void) | |||
343 | if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax())) | 351 | if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax())) |
344 | return -ENODEV; | 352 | return -ENODEV; |
345 | 353 | ||
354 | i2c_register_board_info(1, i2c_device, ARRAY_SIZE(i2c_device)); | ||
355 | |||
346 | n810_snd_device = platform_device_alloc("soc-audio", -1); | 356 | n810_snd_device = platform_device_alloc("soc-audio", -1); |
347 | if (!n810_snd_device) | 357 | if (!n810_snd_device) |
348 | return -ENOMEM; | 358 | return -ENOMEM; |
diff --git a/sound/soc/s6000/s6105-ipcam.c b/sound/soc/s6000/s6105-ipcam.c index 082215d8787d..c1b40ac22c05 100644 --- a/sound/soc/s6000/s6105-ipcam.c +++ b/sound/soc/s6000/s6105-ipcam.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/timer.h> | 14 | #include <linux/timer.h> |
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/i2c.h> | ||
17 | #include <sound/core.h> | 18 | #include <sound/core.h> |
18 | #include <sound/pcm.h> | 19 | #include <sound/pcm.h> |
19 | #include <sound/soc.h> | 20 | #include <sound/soc.h> |
@@ -209,10 +210,19 @@ static struct s6000_snd_platform_data __initdata s6105_snd_data = { | |||
209 | 210 | ||
210 | static struct platform_device *s6105_snd_device; | 211 | static struct platform_device *s6105_snd_device; |
211 | 212 | ||
213 | /* temporary i2c device creation until this can be moved into the machine | ||
214 | * support file. | ||
215 | */ | ||
216 | static struct i2c_board_info i2c_device[] = { | ||
217 | { I2C_BOARD_INFO("tlv320aic33", 0x18), } | ||
218 | }; | ||
219 | |||
212 | static int __init s6105_init(void) | 220 | static int __init s6105_init(void) |
213 | { | 221 | { |
214 | int ret; | 222 | int ret; |
215 | 223 | ||
224 | i2c_register_board_info(0, i2c_device, ARRAY_SIZE(i2c_device)); | ||
225 | |||
216 | s6105_snd_device = platform_device_alloc("soc-audio", -1); | 226 | s6105_snd_device = platform_device_alloc("soc-audio", -1); |
217 | if (!s6105_snd_device) | 227 | if (!s6105_snd_device) |
218 | return -ENOMEM; | 228 | return -ENOMEM; |