Skip to content

Commit 09bbc4f

Browse files
committed
ASoC: Merge up left over v6.8 fix
This v6.8 change didn't make it into the release, send it as a fix for v6.9.
2 parents 2837582 + f193957 commit 09bbc4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/codecs/wm_adsp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,12 @@ static void wm_adsp_control_remove(struct cs_dsp_coeff_ctl *cs_ctl)
683683
int wm_adsp_write_ctl(struct wm_adsp *dsp, const char *name, int type,
684684
unsigned int alg, void *buf, size_t len)
685685
{
686-
struct cs_dsp_coeff_ctl *cs_ctl = cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg);
686+
struct cs_dsp_coeff_ctl *cs_ctl;
687687
struct wm_coeff_ctl *ctl;
688688
int ret;
689689

690690
mutex_lock(&dsp->cs_dsp.pwr_lock);
691+
cs_ctl = cs_dsp_get_ctl(&dsp->cs_dsp, name, type, alg);
691692
ret = cs_dsp_coeff_write_ctrl(cs_ctl, 0, buf, len);
692693
mutex_unlock(&dsp->cs_dsp.pwr_lock);
693694

0 commit comments

Comments
 (0)