.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * sst_pvt.c - Intel SST Driver for audio engine |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Dharageswari R <dharageswari.r@intel.com> |
---|
8 | 9 | * KP Jeeja <jeeja.kp@intel.com> |
---|
9 | 10 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation; version 2 of the License. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, but |
---|
16 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | | - * General Public License for more details. |
---|
19 | 11 | * |
---|
20 | 12 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
21 | 13 | */ |
---|
.. | .. |
---|
34 | 26 | #include <asm/platform_sst_audio.h> |
---|
35 | 27 | #include "../sst-mfld-platform.h" |
---|
36 | 28 | #include "sst.h" |
---|
37 | | -#include "../../common/sst-dsp.h" |
---|
38 | 29 | |
---|
39 | 30 | int sst_shim_write(void __iomem *addr, int offset, int value) |
---|
40 | 31 | { |
---|
.. | .. |
---|
166 | 157 | { |
---|
167 | 158 | struct ipc_post *msg; |
---|
168 | 159 | |
---|
169 | | - msg = kzalloc(sizeof(struct ipc_post), GFP_ATOMIC); |
---|
| 160 | + msg = kzalloc(sizeof(*msg), GFP_ATOMIC); |
---|
170 | 161 | if (!msg) |
---|
171 | 162 | return -ENOMEM; |
---|
172 | 163 | if (large) { |
---|
.. | .. |
---|
196 | 187 | struct intel_sst_drv *sst_drv_ctx, struct sst_block **block, |
---|
197 | 188 | u32 msg_id, u32 drv_id) |
---|
198 | 189 | { |
---|
199 | | - int retval = 0; |
---|
| 190 | + int retval; |
---|
200 | 191 | |
---|
201 | 192 | retval = sst_create_ipc_msg(arg, large); |
---|
202 | 193 | if (retval) |
---|
.. | .. |
---|
206 | 197 | kfree(*arg); |
---|
207 | 198 | return -ENOMEM; |
---|
208 | 199 | } |
---|
209 | | - return retval; |
---|
| 200 | + return 0; |
---|
210 | 201 | } |
---|
211 | 202 | |
---|
212 | 203 | /* |
---|
.. | .. |
---|
231 | 222 | size_t mbox_data_len, const void *mbox_data, void **data, |
---|
232 | 223 | bool large, bool fill_dsp, bool sync, bool response) |
---|
233 | 224 | { |
---|
| 225 | + struct sst_block *block = NULL; |
---|
234 | 226 | struct ipc_post *msg = NULL; |
---|
235 | 227 | struct ipc_dsp_hdr dsp_hdr; |
---|
236 | | - struct sst_block *block; |
---|
237 | 228 | int ret = 0, pvt_id; |
---|
238 | 229 | |
---|
239 | 230 | pvt_id = sst_assign_pvt_id(sst); |
---|