diff options
-rw-r--r-- | sound/soc/at91/at91-i2s.c | 34 | ||||
-rw-r--r-- | sound/soc/soc-dapm.c | 1 |
2 files changed, 17 insertions, 18 deletions
diff --git a/sound/soc/at91/at91-i2s.c b/sound/soc/at91/at91-i2s.c index b452e8e6a724..203e6948cd99 100644 --- a/sound/soc/at91/at91-i2s.c +++ b/sound/soc/at91/at91-i2s.c | |||
@@ -101,7 +101,7 @@ static struct snd_soc_dai_mode at91_i2s[] = { | |||
101 | .pcmdir = AT91_I2S_DIR, | 101 | .pcmdir = AT91_I2S_DIR, |
102 | .flags = SND_SOC_DAI_BFS_DIV, | 102 | .flags = SND_SOC_DAI_BFS_DIV, |
103 | .fs = 250, | 103 | .fs = 250, |
104 | .bfs SND_SOC_FSBD(5), | 104 | .bfs = SND_SOC_FSBD(5), |
105 | .priv = (13 << 16 | 23), | 105 | .priv = (13 << 16 | 23), |
106 | }, | 106 | }, |
107 | }; | 107 | }; |
@@ -352,19 +352,19 @@ static int at91_i2s_suspend(struct platform_device *pdev, | |||
352 | ssc_p = &ssc_info[dai->id]; | 352 | ssc_p = &ssc_info[dai->id]; |
353 | 353 | ||
354 | /* Save the status register before disabling transmit and receive. */ | 354 | /* Save the status register before disabling transmit and receive. */ |
355 | ssc_p->state->ssc_sr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_SR); | 355 | ssc_p->ssc_state.ssc_sr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_SR); |
356 | at91_ssc_write(ssc_p->ssc.base + | 356 | at91_ssc_write(ssc_p->ssc.base + |
357 | AT91_SSC_CR, AT91_SSC_TXDIS | AT91_SSC_RXDIS); | 357 | AT91_SSC_CR, AT91_SSC_TXDIS | AT91_SSC_RXDIS); |
358 | 358 | ||
359 | /* Save the current interrupt mask, then disable unmasked interrupts. */ | 359 | /* Save the current interrupt mask, then disable unmasked interrupts. */ |
360 | ssc_p->state->ssc_imr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_IMR); | 360 | ssc_p->ssc_state.ssc_imr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_IMR); |
361 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_IDR, ssc_p->state->ssc_imr); | 361 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_IDR, ssc_p->ssc_state.ssc_imr); |
362 | 362 | ||
363 | ssc_p->state->ssc_cmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_CMR); | 363 | ssc_p->ssc_state.ssc_cmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_CMR); |
364 | ssc_p->state->ssc_rcmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); | 364 | ssc_p->ssc_state.ssc_rcmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); |
365 | ssc_p->state->ssc_rfmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); | 365 | ssc_p->ssc_state.ssc_rfmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); |
366 | ssc_p->state->ssc_tcmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); | 366 | ssc_p->ssc_state.ssc_tcmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); |
367 | ssc_p->state->ssc_tfmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); | 367 | ssc_p->ssc_state.ssc_tfmr = at91_ssc_read(ssc_p->ssc.base + AT91_SSC_RCMR); |
368 | 368 | ||
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
@@ -380,17 +380,17 @@ static int at91_i2s_resume(struct platform_device *pdev, | |||
380 | 380 | ||
381 | ssc_p = &ssc_info[dai->id]; | 381 | ssc_p = &ssc_info[dai->id]; |
382 | 382 | ||
383 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->state->ssc_tfmr); | 383 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->ssc_state.ssc_tfmr); |
384 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->state->ssc_tcmr); | 384 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->ssc_state.ssc_tcmr); |
385 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->state->ssc_rfmr); | 385 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->ssc_state.ssc_rfmr); |
386 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->state->ssc_rcmr); | 386 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_RCMR, ssc_p->ssc_state.ssc_rcmr); |
387 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_CMR, ssc_p->state->ssc_cmr); | 387 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_CMR, ssc_p->ssc_state.ssc_cmr); |
388 | 388 | ||
389 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_IER, ssc_p->state->ssc_imr); | 389 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_IER, ssc_p->ssc_state.ssc_imr); |
390 | 390 | ||
391 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_CR, | 391 | at91_ssc_write(ssc_p->ssc.base + AT91_SSC_CR, |
392 | ((ssc_p->state->ssc_sr & AT91_SSC_RXENA) ? AT91_SSC_RXEN : 0) | | 392 | ((ssc_p->ssc_state.ssc_sr & AT91_SSC_RXENA) ? AT91_SSC_RXEN : 0) | |
393 | ((ssc_p->state->ssc_sr & AT91_SSC_TXENA) ? AT91_SSC_TXEN : 0)); | 393 | ((ssc_p->ssc_state.ssc_sr & AT91_SSC_TXENA) ? AT91_SSC_TXEN : 0)); |
394 | 394 | ||
395 | return 0; | 395 | return 0; |
396 | } | 396 | } |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 411651dc9d1d..5c2a34956a5d 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -651,7 +651,6 @@ static void dbg_dump_dapm(struct snd_soc_codec* codec, const char *action) | |||
651 | p->source->name); | 651 | p->source->name); |
652 | } | 652 | } |
653 | list_for_each_entry(p, &w->sinks, list_source) { | 653 | list_for_each_entry(p, &w->sinks, list_source) { |
654 | p = list_entry(lp, struct snd_soc_dapm_path, list_source); | ||
655 | if (p->connect) | 654 | if (p->connect) |
656 | printk(" out %s %s\n", p->name ? p->name : "static", | 655 | printk(" out %s %s\n", p->name ? p->name : "static", |
657 | p->sink->name); | 656 | p->sink->name); |