^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * This file is provided under a dual BSD/GPLv2 license. When using or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * redistributing this file, you may do so under either license.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright(c) 2019 Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * Author: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef __SOUND_SOC_SOF_AUDIO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define __SOUND_SOC_SOF_AUDIO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/workqueue.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <sound/soc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <sound/control.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <sound/sof/stream.h> /* needs to be included before control.h */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <sound/sof/control.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <sound/sof/dai.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #include <sound/sof/topology.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include "sof-priv.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define SOF_AUDIO_PCM_DRV_NAME "sof-audio-component"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /* max number of FE PCMs before BEs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define SOF_BE_PCM_BASE 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define DMA_CHAN_INVALID 0xFFFFFFFF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) /* PCM stream, mapped to FW component */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) struct snd_sof_pcm_stream {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) u32 comp_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) struct snd_dma_buffer page_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) struct sof_ipc_stream_posn posn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct snd_pcm_substream *substream;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) struct work_struct period_elapsed_work;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) bool d0i3_compatible; /* DSP can be in D0I3 when this pcm is opened */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) * flag to indicate that the DSP pipelines should be kept
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) * active or not while suspending the stream
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) bool suspend_ignored;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) /* ALSA SOF PCM device */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) struct snd_sof_pcm {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) struct snd_soc_component *scomp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) struct snd_soc_tplg_pcm pcm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) struct snd_sof_pcm_stream stream[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) struct list_head list; /* list in sdev pcm list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) struct snd_pcm_hw_params params[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) bool prepared[2]; /* PCM_PARAMS set successfully */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) struct snd_sof_led_control {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) unsigned int use_led;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) unsigned int direction;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) int led_value;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) /* ALSA SOF Kcontrol device */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) struct snd_sof_control {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) struct snd_soc_component *scomp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) int comp_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) int min_volume_step; /* min volume step for volume_table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) int max_volume_step; /* max volume step for volume_table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) int num_channels;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) u32 readback_offset; /* offset to mmapped data if used */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) struct sof_ipc_ctrl_data *control_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) u32 size; /* cdata size */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) enum sof_ipc_ctrl_cmd cmd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) u32 *volume_table; /* volume table computed from tlv data*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) struct list_head list; /* list in sdev control list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) struct snd_sof_led_control led_ctl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) /* ASoC SOF DAPM widget */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) struct snd_sof_widget {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) struct snd_soc_component *scomp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) int comp_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) int pipeline_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) int complete;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) int core;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) int id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) struct snd_soc_dapm_widget *widget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) struct list_head list; /* list in sdev widget list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) /* extended data for UUID components */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) struct sof_ipc_comp_ext comp_ext;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) void *private; /* core does not touch this */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) /* ASoC SOF DAPM route */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) struct snd_sof_route {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) struct snd_soc_component *scomp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) struct snd_soc_dapm_route *route;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) struct list_head list; /* list in sdev route list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) void *private;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) /* ASoC DAI device */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) struct snd_sof_dai {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) struct snd_soc_component *scomp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) const char *cpu_dai_name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) struct sof_ipc_comp_dai comp_dai;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) struct sof_ipc_dai_config *dai_config;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) struct list_head list; /* list in sdev dai list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) * Kcontrols.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) int snd_sof_volume_get(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) int snd_sof_volume_put(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) int snd_sof_switch_get(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) int snd_sof_switch_put(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) int snd_sof_enum_get(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) int snd_sof_enum_put(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) int snd_sof_bytes_get(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) int snd_sof_bytes_put(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) struct snd_ctl_elem_value *ucontrol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) int snd_sof_bytes_ext_put(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) const unsigned int __user *binary_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) unsigned int size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) int snd_sof_bytes_ext_get(struct snd_kcontrol *kcontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) unsigned int __user *binary_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) unsigned int size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) int snd_sof_bytes_ext_volatile_get(struct snd_kcontrol *kcontrol, unsigned int __user *binary_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) unsigned int size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) * Topology.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) * There is no snd_sof_free_topology since topology components will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) * be freed by snd_soc_unregister_component,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) int snd_sof_complete_pipeline(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) struct snd_sof_widget *swidget);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) int sof_load_pipeline_ipc(struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) struct sof_ipc_pipe_new *pipeline,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) struct sof_ipc_comp_reply *r);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) int sof_pipeline_core_enable(struct snd_sof_dev *sdev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) const struct snd_sof_widget *swidget);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) * Stream IPC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) int snd_sof_ipc_stream_posn(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) struct snd_sof_pcm *spcm, int direction,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) struct sof_ipc_stream_posn *posn);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) struct snd_sof_widget *snd_sof_find_swidget(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) struct snd_sof_widget *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) snd_sof_find_swidget_sname(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) const char *pcm_name, int dir);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) struct snd_sof_dai *snd_sof_find_dai(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) static inline
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) struct snd_sof_pcm *snd_sof_find_spcm_dai(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) struct snd_soc_pcm_runtime *rtd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) struct snd_sof_pcm *spcm = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) list_for_each_entry(spcm, &sdev->pcm_list, list) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) return spcm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) unsigned int comp_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) int *direction);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_soc_component *scomp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) unsigned int pcm_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) int pipeline_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) void snd_sof_pcm_period_elapsed_work(struct work_struct *work);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) * Mixer IPC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) int snd_sof_ipc_set_get_comp_data(struct snd_sof_control *scontrol,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) u32 ipc_cmd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) enum sof_ipc_ctrl_type ctrl_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) enum sof_ipc_ctrl_cmd ctrl_cmd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) bool send);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) /* PM */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) int sof_restore_pipelines(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) int sof_set_hw_params_upon_resume(struct device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) bool snd_sof_stream_suspend_ignored(struct snd_sof_dev *sdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) bool snd_sof_dsp_only_d0i3_compatible_stream_active(struct snd_sof_dev *sdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) /* Machine driver enumeration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) int sof_machine_register(struct snd_sof_dev *sdev, void *pdata);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) #endif