hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/intel/atom/sst/sst_drv_interface.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * sst_drv_interface.c - Intel SST Driver for audio engine
34 *
....@@ -6,15 +7,6 @@
67 * Harsha Priya <priya.harsha@intel.com>
78 * Dharageswari R <dharageswari.r@intel.com)
89 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
1810 *
1911 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2012 */
....@@ -32,9 +24,6 @@
3224 #include <asm/platform_sst_audio.h>
3325 #include "../sst-mfld-platform.h"
3426 #include "sst.h"
35
-#include "../../common/sst-dsp.h"
36
-
37
-
3827
3928 #define NUM_CODEC 2
4029 #define MIN_FRAGMENT 2
....@@ -146,7 +135,7 @@
146135 int ret = 0;
147136 int usage_count = 0;
148137
149
- if (state == true) {
138
+ if (state) {
150139 ret = pm_runtime_get_sync(dev);
151140 usage_count = GET_USAGE_COUNT(dev);
152141 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count);
....@@ -377,7 +366,7 @@
377366 tstamp->sampling_rate = fw_tstamp.sampling_frequency;
378367
379368 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",
381370 str_id, tstamp->copied_total, tstamp->pcm_frames);
382371 dev_dbg(dev, "rendered %d\n", tstamp->pcm_io_frames);
383372