#ifndef __Q6_ASM_H__
#define __Q6_ASM_H__
#include "q6dsp-common.h"
#define CMD_PAUSE …
#define ASM_CLIENT_EVENT_CMD_PAUSE_DONE …
#define CMD_FLUSH …
#define ASM_CLIENT_EVENT_CMD_FLUSH_DONE …
#define CMD_EOS …
#define ASM_CLIENT_EVENT_CMD_EOS_DONE …
#define CMD_CLOSE …
#define ASM_CLIENT_EVENT_CMD_CLOSE_DONE …
#define CMD_OUT_FLUSH …
#define ASM_CLIENT_EVENT_CMD_OUT_FLUSH_DONE …
#define CMD_SUSPEND …
#define ASM_CLIENT_EVENT_CMD_SUSPEND_DONE …
#define ASM_CLIENT_EVENT_CMD_RUN_DONE …
#define ASM_CLIENT_EVENT_DATA_WRITE_DONE …
#define ASM_CLIENT_EVENT_DATA_READ_DONE …
#define ASM_WRITE_TOKEN_MASK …
#define ASM_WRITE_TOKEN_LEN_MASK …
#define ASM_WRITE_TOKEN_LEN_SHIFT …
enum { … };
#define MAX_SESSIONS …
#define FORMAT_LINEAR_PCM …
#define ASM_LAST_BUFFER_FLAG …
struct q6asm_flac_cfg { … };
struct q6asm_wma_cfg { … };
struct q6asm_alac_cfg { … };
struct q6asm_ape_cfg { … };
q6asm_cb;
struct audio_client;
struct audio_client *q6asm_audio_client_alloc(struct device *dev,
q6asm_cb cb, void *priv,
int session_id, int perf_mode);
void q6asm_audio_client_free(struct audio_client *ac);
int q6asm_write_async(struct audio_client *ac, uint32_t stream_id, uint32_t len,
uint32_t msw_ts, uint32_t lsw_ts, uint32_t wflags);
int q6asm_open_write(struct audio_client *ac, uint32_t stream_id,
uint32_t format, u32 codec_profile,
uint16_t bits_per_sample, bool is_gapless);
int q6asm_open_read(struct audio_client *ac, uint32_t stream_id,
uint32_t format, uint16_t bits_per_sample);
int q6asm_enc_cfg_blk_pcm_format_support(struct audio_client *ac,
uint32_t stream_id, uint32_t rate,
uint32_t channels,
uint16_t bits_per_sample);
int q6asm_read(struct audio_client *ac, uint32_t stream_id);
int q6asm_media_format_block_multi_ch_pcm(struct audio_client *ac,
uint32_t stream_id,
uint32_t rate, uint32_t channels,
u8 channel_map[PCM_MAX_NUM_CHANNEL],
uint16_t bits_per_sample);
int q6asm_stream_media_format_block_flac(struct audio_client *ac,
uint32_t stream_id,
struct q6asm_flac_cfg *cfg);
int q6asm_stream_media_format_block_wma_v9(struct audio_client *ac,
uint32_t stream_id,
struct q6asm_wma_cfg *cfg);
int q6asm_stream_media_format_block_wma_v10(struct audio_client *ac,
uint32_t stream_id,
struct q6asm_wma_cfg *cfg);
int q6asm_stream_media_format_block_alac(struct audio_client *ac,
uint32_t stream_id,
struct q6asm_alac_cfg *cfg);
int q6asm_stream_media_format_block_ape(struct audio_client *ac,
uint32_t stream_id,
struct q6asm_ape_cfg *cfg);
int q6asm_run(struct audio_client *ac, uint32_t stream_id, uint32_t flags,
uint32_t msw_ts, uint32_t lsw_ts);
int q6asm_run_nowait(struct audio_client *ac, uint32_t stream_id,
uint32_t flags, uint32_t msw_ts, uint32_t lsw_ts);
int q6asm_stream_remove_initial_silence(struct audio_client *ac,
uint32_t stream_id,
uint32_t initial_samples);
int q6asm_stream_remove_trailing_silence(struct audio_client *ac,
uint32_t stream_id,
uint32_t trailing_samples);
int q6asm_cmd(struct audio_client *ac, uint32_t stream_id, int cmd);
int q6asm_cmd_nowait(struct audio_client *ac, uint32_t stream_id, int cmd);
int q6asm_get_session_id(struct audio_client *c);
int q6asm_map_memory_regions(unsigned int dir,
struct audio_client *ac,
phys_addr_t phys,
size_t period_sz, unsigned int periods);
int q6asm_unmap_memory_regions(unsigned int dir, struct audio_client *ac);
#endif