rz-ssi.c (b3bbcc5d1da1b654091dad15980b3d58fdae0fc6) | rz-ssi.c (a267fdd0a6ce3edd6419b10ee7bcde61aa15eb43) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver 4// 5// Copyright (C) 2021 Renesas Electronics Corp. 6// Copyright (C) 2019 Chris Brandt. 7// 8 --- 584 unchanged lines hidden (view full) --- 593 enum dma_transfer_direction dir; 594 u32 dma_paddr, dma_size; 595 int amount; 596 597 if (!rz_ssi_stream_is_valid(ssi, strm)) 598 return -EINVAL; 599 600 runtime = substream->runtime; | 1// SPDX-License-Identifier: GPL-2.0 2// 3// Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver 4// 5// Copyright (C) 2021 Renesas Electronics Corp. 6// Copyright (C) 2019 Chris Brandt. 7// 8 --- 584 unchanged lines hidden (view full) --- 593 enum dma_transfer_direction dir; 594 u32 dma_paddr, dma_size; 595 int amount; 596 597 if (!rz_ssi_stream_is_valid(ssi, strm)) 598 return -EINVAL; 599 600 runtime = substream->runtime; |
601 if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) | 601 if (runtime->state == SNDRV_PCM_STATE_DRAINING) |
602 /* 603 * Stream is ending, so do not queue up any more DMA 604 * transfers otherwise we play partial sound clips 605 * because we can't shut off the DMA quick enough. 606 */ 607 return 0; 608 609 dir = rz_ssi_stream_is_play(ssi, substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; --- 476 unchanged lines hidden --- | 602 /* 603 * Stream is ending, so do not queue up any more DMA 604 * transfers otherwise we play partial sound clips 605 * because we can't shut off the DMA quick enough. 606 */ 607 return 0; 608 609 dir = rz_ssi_stream_is_play(ssi, substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; --- 476 unchanged lines hidden --- |