ASoC: amd: acp: export config_acp_dma() and config_pte_for_stream() symbols
Export config_acp_dma() and config_pte_for_stream() functions. These functions will be used to restore stream configuration during system level resume. Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com> Link: https://lore.kernel.org/r/20230626135515.1252063-8-Syed.SabaKareem@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c8786ac7bb
commit
a8d1316a26
@ -127,7 +127,7 @@ static irqreturn_t i2s_irq_handler(int irq, void *data)
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
static void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream *stream)
|
||||
void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream *stream)
|
||||
{
|
||||
struct acp_resource *rsrc = adata->rsrc;
|
||||
u32 pte_reg, pte_size, reg_val;
|
||||
@ -143,8 +143,9 @@ static void config_pte_for_stream(struct acp_dev_data *adata, struct acp_stream
|
||||
writel(PAGE_SIZE_4K_ENABLE, adata->acp_base + pte_size);
|
||||
writel(0x01, adata->acp_base + ACPAXI2AXI_ATU_CTRL);
|
||||
}
|
||||
EXPORT_SYMBOL_NS_GPL(config_pte_for_stream, SND_SOC_ACP_COMMON);
|
||||
|
||||
static void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int size)
|
||||
void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int size)
|
||||
{
|
||||
struct snd_pcm_substream *substream = stream->substream;
|
||||
struct acp_resource *rsrc = adata->rsrc;
|
||||
@ -168,6 +169,7 @@ static void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream
|
||||
addr += PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_NS_GPL(config_acp_dma, SND_SOC_ACP_COMMON);
|
||||
|
||||
static int acp_dma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user