mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
ASoC: SOF: topology: expose some get_token ops
These will be used later on by IPC-specific code. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20220307181111.49392-10-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5ef969e2f8
commit
ea7e5ee67f
@ -260,4 +260,9 @@ int sof_pcm_dsp_pcm_free(struct snd_pcm_substream *substream, struct snd_sof_dev
|
||||
struct snd_sof_pcm *spcm);
|
||||
int sof_pcm_stream_free(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream,
|
||||
struct snd_sof_pcm *spcm, int dir, bool free_widget_list);
|
||||
int get_token_u32(void *elem, void *object, u32 offset);
|
||||
int get_token_u16(void *elem, void *object, u32 offset);
|
||||
int get_token_comp_format(void *elem, void *object, u32 offset);
|
||||
int get_token_dai_type(void *elem, void *object, u32 offset);
|
||||
int get_token_uuid(void *elem, void *object, u32 offset);
|
||||
#endif
|
||||
|
@ -477,7 +477,7 @@ struct sof_topology_token {
|
||||
u32 offset;
|
||||
};
|
||||
|
||||
static int get_token_u32(void *elem, void *object, u32 offset)
|
||||
int get_token_u32(void *elem, void *object, u32 offset)
|
||||
{
|
||||
struct snd_soc_tplg_vendor_value_elem *velem = elem;
|
||||
u32 *val = (u32 *)((u8 *)object + offset);
|
||||
@ -486,7 +486,7 @@ static int get_token_u32(void *elem, void *object, u32 offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_token_u16(void *elem, void *object, u32 offset)
|
||||
int get_token_u16(void *elem, void *object, u32 offset)
|
||||
{
|
||||
struct snd_soc_tplg_vendor_value_elem *velem = elem;
|
||||
u16 *val = (u16 *)((u8 *)object + offset);
|
||||
@ -495,7 +495,7 @@ static int get_token_u16(void *elem, void *object, u32 offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_token_uuid(void *elem, void *object, u32 offset)
|
||||
int get_token_uuid(void *elem, void *object, u32 offset)
|
||||
{
|
||||
struct snd_soc_tplg_vendor_uuid_elem *velem = elem;
|
||||
u8 *dst = (u8 *)object + offset;
|
||||
@ -505,7 +505,7 @@ static int get_token_uuid(void *elem, void *object, u32 offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_token_comp_format(void *elem, void *object, u32 offset)
|
||||
int get_token_comp_format(void *elem, void *object, u32 offset)
|
||||
{
|
||||
u32 *val = (u32 *)((u8 *)object + offset);
|
||||
|
||||
@ -513,7 +513,7 @@ static int get_token_comp_format(void *elem, void *object, u32 offset)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_token_dai_type(void *elem, void *object, u32 offset)
|
||||
int get_token_dai_type(void *elem, void *object, u32 offset)
|
||||
{
|
||||
u32 *val = (u32 *)((u8 *)object + offset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user