btfmcodec: Cache configs for all the transitions

This change will cache configs for all the transitions

Change-Id: If1201fd8cf045fcc2a6c4d83d50e3dd939ebc3a4
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
This commit is contained in:
Balakrishna Godavarthi
2023-07-07 12:02:22 +05:30
committed by Gerrit - the friendly Code Review server
parent c0568d1c4d
commit 6b32d8743b
3 changed files with 23 additions and 16 deletions

View File

@@ -27,6 +27,7 @@ struct hwep_configurations {
uint8_t bit_width;
uint8_t codectype;
uint32_t direction;
uint8_t num_channels;
struct list_head dai_list;
};
@@ -51,7 +52,7 @@ struct hwep_comp_drv {
struct hwep_dai_ops {
int (*hwep_startup)(void *);
void (*hwep_shutdown)(void *, int);
int (*hwep_hw_params)(void *, uint32_t, uint32_t);
int (*hwep_hw_params)(void *, uint32_t, uint32_t, uint8_t);
int (*hwep_prepare)(void *, uint32_t, uint32_t, int);
int (*hwep_set_channel_map)(void *, unsigned int, unsigned int *,
unsigned int, unsigned int *);