| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * sst_stream.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 | */ |
|---|
| .. | .. |
|---|
| 31 | 23 | #include <asm/platform_sst_audio.h> |
|---|
| 32 | 24 | #include "../sst-mfld-platform.h" |
|---|
| 33 | 25 | #include "sst.h" |
|---|
| 34 | | -#include "../../common/sst-dsp.h" |
|---|
| 35 | 26 | |
|---|
| 36 | 27 | int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params) |
|---|
| 37 | 28 | { |
|---|
| .. | .. |
|---|
| 100 | 91 | |
|---|
| 101 | 92 | /** |
|---|
| 102 | 93 | * sst_realloc_stream - Send msg for (re-)allocating a stream using the |
|---|
| 103 | | - * @sst_drv_ctx intel_sst_drv context pointer |
|---|
| 104 | | - * @str_id: stream ID |
|---|
| 94 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 95 | + * @str_id: stream ID |
|---|
| 105 | 96 | * |
|---|
| 106 | 97 | * Send a msg for (re-)allocating a stream using the parameters previously |
|---|
| 107 | 98 | * passed to sst_alloc_stream_mrfld() for the same stream ID. |
|---|
| .. | .. |
|---|
| 150 | 141 | } |
|---|
| 151 | 142 | |
|---|
| 152 | 143 | /** |
|---|
| 153 | | -* sst_start_stream - Send msg for a starting stream |
|---|
| 154 | | -* @str_id: stream ID |
|---|
| 155 | | -* |
|---|
| 156 | | -* This function is called by any function which wants to start |
|---|
| 157 | | -* a stream. |
|---|
| 158 | | -*/ |
|---|
| 144 | + * sst_start_stream - Send msg for a starting stream |
|---|
| 145 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 146 | + * @str_id: stream ID |
|---|
| 147 | + * |
|---|
| 148 | + * This function is called by any function which wants to start |
|---|
| 149 | + * a stream. |
|---|
| 150 | + */ |
|---|
| 159 | 151 | int sst_start_stream(struct intel_sst_drv *sst_drv_ctx, int str_id) |
|---|
| 160 | 152 | { |
|---|
| 161 | 153 | int retval = 0; |
|---|
| .. | .. |
|---|
| 242 | 234 | |
|---|
| 243 | 235 | /** |
|---|
| 244 | 236 | * sst_pause_stream - Send msg for a pausing stream |
|---|
| 245 | | - * @str_id: stream ID |
|---|
| 237 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 238 | + * @str_id: stream ID |
|---|
| 246 | 239 | * |
|---|
| 247 | 240 | * This function is called by any function which wants to pause |
|---|
| 248 | 241 | * an already running stream. |
|---|
| .. | .. |
|---|
| 286 | 279 | |
|---|
| 287 | 280 | /** |
|---|
| 288 | 281 | * sst_resume_stream - Send msg for resuming stream |
|---|
| 289 | | - * @str_id: stream ID |
|---|
| 282 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 283 | + * @str_id: stream ID |
|---|
| 290 | 284 | * |
|---|
| 291 | 285 | * This function is called by any function which wants to resume |
|---|
| 292 | 286 | * an already paused stream. |
|---|
| .. | .. |
|---|
| 353 | 347 | |
|---|
| 354 | 348 | /** |
|---|
| 355 | 349 | * sst_drop_stream - Send msg for stopping stream |
|---|
| 356 | | - * @str_id: stream ID |
|---|
| 350 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 351 | + * @str_id: stream ID |
|---|
| 357 | 352 | * |
|---|
| 358 | 353 | * This function is called by any function which wants to stop |
|---|
| 359 | 354 | * a stream. |
|---|
| .. | .. |
|---|
| 385 | 380 | } |
|---|
| 386 | 381 | |
|---|
| 387 | 382 | /** |
|---|
| 388 | | -* sst_drain_stream - Send msg for draining stream |
|---|
| 389 | | -* @str_id: stream ID |
|---|
| 390 | | -* |
|---|
| 391 | | -* This function is called by any function which wants to drain |
|---|
| 392 | | -* a stream. |
|---|
| 393 | | -*/ |
|---|
| 383 | + * sst_drain_stream - Send msg for draining stream |
|---|
| 384 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 385 | + * @str_id: stream ID |
|---|
| 386 | + * @partial_drain: boolean indicating if a gapless transition is taking place |
|---|
| 387 | + * |
|---|
| 388 | + * This function is called by any function which wants to drain |
|---|
| 389 | + * a stream. |
|---|
| 390 | + */ |
|---|
| 394 | 391 | int sst_drain_stream(struct intel_sst_drv *sst_drv_ctx, |
|---|
| 395 | 392 | int str_id, bool partial_drain) |
|---|
| 396 | 393 | { |
|---|
| .. | .. |
|---|
| 423 | 420 | |
|---|
| 424 | 421 | /** |
|---|
| 425 | 422 | * sst_free_stream - Frees a stream |
|---|
| 426 | | - * @str_id: stream ID |
|---|
| 423 | + * @sst_drv_ctx: intel_sst_drv context pointer |
|---|
| 424 | + * @str_id: stream ID |
|---|
| 427 | 425 | * |
|---|
| 428 | 426 | * This function is called by any function which wants to free |
|---|
| 429 | 427 | * a stream. |
|---|