.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * sst_drv_interface.c - Intel SST Driver for audio engine |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Harsha Priya <priya.harsha@intel.com> |
---|
7 | 8 | * Dharageswari R <dharageswari.r@intel.com) |
---|
8 | 9 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; version 2 of the License. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, but |
---|
15 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | | - * General Public License for more details. |
---|
18 | 10 | * |
---|
19 | 11 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
20 | 12 | */ |
---|
.. | .. |
---|
32 | 24 | #include <asm/platform_sst_audio.h> |
---|
33 | 25 | #include "../sst-mfld-platform.h" |
---|
34 | 26 | #include "sst.h" |
---|
35 | | -#include "../../common/sst-dsp.h" |
---|
36 | | - |
---|
37 | | - |
---|
38 | 27 | |
---|
39 | 28 | #define NUM_CODEC 2 |
---|
40 | 29 | #define MIN_FRAGMENT 2 |
---|
.. | .. |
---|
146 | 135 | int ret = 0; |
---|
147 | 136 | int usage_count = 0; |
---|
148 | 137 | |
---|
149 | | - if (state == true) { |
---|
| 138 | + if (state) { |
---|
150 | 139 | ret = pm_runtime_get_sync(dev); |
---|
151 | 140 | usage_count = GET_USAGE_COUNT(dev); |
---|
152 | 141 | dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); |
---|
.. | .. |
---|
377 | 366 | tstamp->sampling_rate = fw_tstamp.sampling_frequency; |
---|
378 | 367 | |
---|
379 | 368 | dev_dbg(dev, "PCM = %u\n", tstamp->pcm_io_frames); |
---|
380 | | - dev_dbg(dev, "Ptr Query on strid = %d copied_total %llu, decodec %d\n", |
---|
| 369 | + dev_dbg(dev, "Ptr Query on strid = %d copied_total %d, decodec %d\n", |
---|
381 | 370 | str_id, tstamp->copied_total, tstamp->pcm_frames); |
---|
382 | 371 | dev_dbg(dev, "rendered %d\n", tstamp->pcm_io_frames); |
---|
383 | 372 | |
---|