mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ASoc: qcom: audioreach: remove unused variables
remove unused variables in some of the audioreach functions. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20251023102444.88158-11-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
f678ea19e8
commit
bcb3f6f528
@@ -612,7 +612,7 @@ static int audioreach_display_port_set_media_format(struct q6apm_graph *graph,
|
||||
struct apm_module_frame_size_factor_cfg *fs_cfg;
|
||||
struct apm_module_param_data *param_data;
|
||||
struct apm_module_hw_ep_mf_cfg *hw_cfg;
|
||||
int ic_sz, ep_sz, fs_sz, dl_sz;
|
||||
int ic_sz, ep_sz, fs_sz;
|
||||
int rc, payload_size;
|
||||
struct gpr_pkt *pkt;
|
||||
void *p;
|
||||
@@ -620,9 +620,8 @@ static int audioreach_display_port_set_media_format(struct q6apm_graph *graph,
|
||||
ic_sz = APM_DP_INTF_CFG_PSIZE;
|
||||
ep_sz = APM_HW_EP_CFG_PSIZE;
|
||||
fs_sz = APM_FS_CFG_PSIZE;
|
||||
dl_sz = 0;
|
||||
|
||||
payload_size = ic_sz + ep_sz + fs_sz + dl_sz;
|
||||
payload_size = ic_sz + ep_sz + fs_sz;
|
||||
|
||||
pkt = audioreach_alloc_apm_cmd_pkt(payload_size, APM_CMD_SET_CFG, 0);
|
||||
if (IS_ERR(pkt))
|
||||
@@ -680,7 +679,7 @@ static int audioreach_codec_dma_set_media_format(struct q6apm_graph *graph,
|
||||
struct apm_module_hw_ep_power_mode_cfg *pm_cfg;
|
||||
struct apm_module_param_data *param_data;
|
||||
struct apm_module_hw_ep_mf_cfg *hw_cfg;
|
||||
int ic_sz, ep_sz, fs_sz, pm_sz, dl_sz;
|
||||
int ic_sz, ep_sz, fs_sz, pm_sz;
|
||||
int rc, payload_size;
|
||||
struct gpr_pkt *pkt;
|
||||
void *p;
|
||||
@@ -689,9 +688,8 @@ static int audioreach_codec_dma_set_media_format(struct q6apm_graph *graph,
|
||||
ep_sz = APM_HW_EP_CFG_PSIZE;
|
||||
fs_sz = APM_FS_CFG_PSIZE;
|
||||
pm_sz = APM_HW_EP_PMODE_CFG_PSIZE;
|
||||
dl_sz = 0;
|
||||
|
||||
payload_size = ic_sz + ep_sz + fs_sz + pm_sz + dl_sz;
|
||||
payload_size = ic_sz + ep_sz + fs_sz + pm_sz;
|
||||
|
||||
pkt = audioreach_alloc_apm_cmd_pkt(payload_size, APM_CMD_SET_CFG, 0);
|
||||
if (IS_ERR(pkt))
|
||||
|
||||
Reference in New Issue
Block a user