diff options
| -rw-r--r-- | sound/soc/codecs/rt5514-spi.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c index 2df91db765ac..ca6a90d8fc39 100644 --- a/sound/soc/codecs/rt5514-spi.c +++ b/sound/soc/codecs/rt5514-spi.c | |||
| @@ -482,10 +482,13 @@ static int __maybe_unused rt5514_resume(struct device *dev) | |||
| 482 | if (device_may_wakeup(dev)) | 482 | if (device_may_wakeup(dev)) |
| 483 | disable_irq_wake(irq); | 483 | disable_irq_wake(irq); |
| 484 | 484 | ||
| 485 | if (rt5514_dsp->substream) { | 485 | if (rt5514_dsp) { |
| 486 | rt5514_spi_burst_read(RT5514_IRQ_CTRL, (u8 *)&buf, sizeof(buf)); | 486 | if (rt5514_dsp->substream) { |
| 487 | if (buf[0] & RT5514_IRQ_STATUS_BIT) | 487 | rt5514_spi_burst_read(RT5514_IRQ_CTRL, (u8 *)&buf, |
| 488 | rt5514_schedule_copy(rt5514_dsp); | 488 | sizeof(buf)); |
| 489 | if (buf[0] & RT5514_IRQ_STATUS_BIT) | ||
| 490 | rt5514_schedule_copy(rt5514_dsp); | ||
| 491 | } | ||
| 489 | } | 492 | } |
| 490 | 493 | ||
| 491 | return 0; | 494 | return 0; |
