dsp: Add support for custom encoder
Add support to set custom encoder in ASM which can be enabled through compress capture path. Change-Id: I563c59eb3a0213c26ce69d3c2f8d650cf3c7d32d Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
743a507eb0
commit
c712c17ab0
@@ -57,11 +57,14 @@
|
||||
#define FORMAT_GEN_COMPR 0x001f
|
||||
#define FORMAT_TRUEHD 0x0020
|
||||
#define FORMAT_IEC61937 0x0021
|
||||
#define FORMAT_BESPOKE 0x0022
|
||||
|
||||
#define ENCDEC_SBCBITRATE 0x0001
|
||||
#define ENCDEC_IMMEDIATE_DECODE 0x0002
|
||||
#define ENCDEC_CFG_BLK 0x0003
|
||||
|
||||
#define ENC_CFG_ID_NONE 0x0000
|
||||
|
||||
#define CMD_PAUSE 0x0001
|
||||
#define CMD_FLUSH 0x0002
|
||||
#define CMD_EOS 0x0003
|
||||
@@ -290,7 +293,8 @@ int q6asm_open_read_v3(struct audio_client *ac, uint32_t format,
|
||||
uint16_t bits_per_sample);
|
||||
|
||||
int q6asm_open_read_v4(struct audio_client *ac, uint32_t format,
|
||||
uint16_t bits_per_sample, bool ts_mode);
|
||||
uint16_t bits_per_sample, bool ts_mode,
|
||||
uint32_t enc_cfg_id);
|
||||
|
||||
int q6asm_open_write(struct audio_client *ac, uint32_t format
|
||||
/*, uint16_t bits_per_sample*/);
|
||||
@@ -454,6 +458,10 @@ int q6asm_enc_cfg_blk_pcm_format_support_v4(struct audio_client *ac,
|
||||
uint16_t endianness,
|
||||
uint16_t mode);
|
||||
|
||||
int q6asm_enc_cfg_blk_custom(struct audio_client *ac,
|
||||
uint32_t sample_rate, uint32_t channels,
|
||||
uint32_t format, void *cfg);
|
||||
|
||||
int q6asm_set_encdec_chan_map(struct audio_client *ac,
|
||||
uint32_t num_channels);
|
||||
|
||||
|
Reference in New Issue
Block a user