| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * IMG I2S output 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> |
|---|
| .. | .. |
|---|
| 408 | 405 | struct snd_dmaengine_dai_dma_data *dma_data; |
|---|
| 409 | 406 | int ret; |
|---|
| 410 | 407 | |
|---|
| 411 | | - dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, st); |
|---|
| 408 | + dma_data = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), st); |
|---|
| 412 | 409 | |
|---|
| 413 | 410 | ret = snd_hwparams_to_dma_slave_config(st, params, sc); |
|---|
| 414 | 411 | if (ret) |
|---|