aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/p1022_ds.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-07-23 13:59:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-23 13:59:37 -0400
commite4980371059ca4a81ccdcb4381c41af8869ca711 (patch)
tree29758f7e8d66b5866d9d3897eff12f122000b4d7 /sound/soc/fsl/p1022_ds.c
parent9d1c02135516866cbbb2f80e20cfb65c63a3ce40 (diff)
parent76531d4166fb620375ff3c1ac24753265216d579 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (297 commits) ALSA: asihpi - Replace with snd_ctl_boolean_mono_info() ALSA: asihpi - HPI version 4.08 ALSA: asihpi - Add volume mute controls ALSA: asihpi - Control name updates ALSA: asihpi - Use size_t for sizeof result ALSA: asihpi - Explicitly include mutex.h ALSA: asihpi - Add new node and message defines ALSA: asihpi - Make local function static ALSA: asihpi - Fix minor typos and spelling ALSA: asihpi - Remove unused structures, macros and functions ALSA: asihpi - Remove spurious adapter index check ALSA: asihpi - Revise snd_pcm_debug_name, get rid of DEBUG_NAME macro ALSA: asihpi - DSP code loader API now independent of OS ALSA: asihpi - Remove controlex structs and associated special data transfer code ALSA: asihpi - Increase request and response buffer sizes ALSA: asihpi - Give more meaningful name to hpi request message type ALSA: usb-audio - Add quirk for Roland / BOSS BR-800 ALSA: hda - Remove a superfluous argument of via_auto_init_output() ALSA: hda - Fix indep-HP path (de-)activation for VT1708* codecs ALSA: hda - Add documentation for codec-specific mixer controls ...
Diffstat (limited to 'sound/soc/fsl/p1022_ds.c')
-rw-r--r--sound/soc/fsl/p1022_ds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c
index 66e0b68af14..8fa4d5f8eda 100644
--- a/sound/soc/fsl/p1022_ds.c
+++ b/sound/soc/fsl/p1022_ds.c
@@ -232,7 +232,7 @@ static int get_parent_cell_index(struct device_node *np)
232 232
233 iprop = of_get_property(parent, "cell-index", NULL); 233 iprop = of_get_property(parent, "cell-index", NULL);
234 if (iprop) 234 if (iprop)
235 ret = *iprop; 235 ret = be32_to_cpup(iprop);
236 236
237 of_node_put(parent); 237 of_node_put(parent);
238 238
@@ -261,7 +261,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len)
261 if (!iprop) 261 if (!iprop)
262 return -EINVAL; 262 return -EINVAL;
263 263
264 addr = *iprop; 264 addr = be32_to_cpup(iprop);
265 265
266 bus = get_parent_cell_index(np); 266 bus = get_parent_cell_index(np);
267 if (bus < 0) 267 if (bus < 0)
@@ -308,7 +308,7 @@ static int get_dma_channel(struct device_node *ssi_np,
308 return -EINVAL; 308 return -EINVAL;
309 } 309 }
310 310
311 *dma_channel_id = *iprop; 311 *dma_channel_id = be32_to_cpup(iprop);
312 *dma_id = get_parent_cell_index(dma_channel_np); 312 *dma_id = get_parent_cell_index(dma_channel_np);
313 of_node_put(dma_channel_np); 313 of_node_put(dma_channel_np);
314 314
@@ -379,7 +379,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
379 ret = -EINVAL; 379 ret = -EINVAL;
380 goto error; 380 goto error;
381 } 381 }
382 mdata->ssi_id = *iprop; 382 mdata->ssi_id = be32_to_cpup(iprop);
383 383
384 /* Get the serial format and clock direction. */ 384 /* Get the serial format and clock direction. */
385 sprop = of_get_property(np, "fsl,mode", NULL); 385 sprop = of_get_property(np, "fsl,mode", NULL);
@@ -405,7 +405,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
405 ret = -EINVAL; 405 ret = -EINVAL;
406 goto error; 406 goto error;
407 } 407 }
408 mdata->clk_frequency = *iprop; 408 mdata->clk_frequency = be32_to_cpup(iprop);
409 } else if (strcasecmp(sprop, "i2s-master") == 0) { 409 } else if (strcasecmp(sprop, "i2s-master") == 0) {
410 mdata->dai_format = SND_SOC_DAIFMT_I2S; 410 mdata->dai_format = SND_SOC_DAIFMT_I2S;
411 mdata->codec_clk_direction = SND_SOC_CLOCK_IN; 411 mdata->codec_clk_direction = SND_SOC_CLOCK_IN;