.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * IMG I2S input controller driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Imagination Technologies Ltd. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Damien Horsley <Damien.Horsley@imgtec.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify it |
---|
9 | | - * under the terms and conditions of the GNU General Public License, |
---|
10 | | - * version 2, as published by the Free Software Foundation. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/clk.h> |
---|
.. | .. |
---|
402 | 399 | struct snd_dmaengine_dai_dma_data *dma_data; |
---|
403 | 400 | int ret; |
---|
404 | 401 | |
---|
405 | | - dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, st); |
---|
| 402 | + dma_data = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), st); |
---|
406 | 403 | |
---|
407 | 404 | ret = snd_hwparams_to_dma_slave_config(st, params, sc); |
---|
408 | 405 | if (ret) |
---|
.. | .. |
---|
467 | 464 | if (ret) |
---|
468 | 465 | goto err_pm_disable; |
---|
469 | 466 | } |
---|
470 | | - ret = pm_runtime_get_sync(&pdev->dev); |
---|
| 467 | + ret = pm_runtime_resume_and_get(&pdev->dev); |
---|
471 | 468 | if (ret < 0) |
---|
472 | 469 | goto err_suspend; |
---|
473 | 470 | |
---|