pcm.c (8a720724589e8d782ad3ad4e0f08977de00bea5f) pcm.c (7bbdda8009001d66611314e67a3f498d4b412c64)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2018 Intel Corporation. All rights reserved.
7//
8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
9//
10// PCM Layer, interface between ALSA and IPC.
11//
12
13#include <linux/pm_runtime.h>
14#include <sound/pcm_params.h>
15#include <sound/sof.h>
16#include "sof-priv.h"
17#include "sof-audio.h"
18#include "ops.h"
19#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2//
3// This file is provided under a dual BSD/GPLv2 license. When using or
4// redistributing this file, you may do so under either license.
5//
6// Copyright(c) 2018 Intel Corporation. All rights reserved.
7//
8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
9//
10// PCM Layer, interface between ALSA and IPC.
11//
12
13#include <linux/pm_runtime.h>
14#include <sound/pcm_params.h>
15#include <sound/sof.h>
16#include "sof-priv.h"
17#include "sof-audio.h"
18#include "ops.h"
19#if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_PROBES)
20#include "compress.h"
20#include "sof-probes.h"
21#endif
22
23/* Create DMA buffer page table for DSP */
24static int create_page_table(struct snd_soc_component *component,
25 struct snd_pcm_substream *substream,
26 unsigned char *dma_area, size_t size)
27{
28 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);

--- 816 unchanged lines hidden ---
21#endif
22
23/* Create DMA buffer page table for DSP */
24static int create_page_table(struct snd_soc_component *component,
25 struct snd_pcm_substream *substream,
26 unsigned char *dma_area, size_t size)
27{
28 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);

--- 816 unchanged lines hidden ---