ASoC: wm_adsp: Remove notification of driver write
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 25 Mar 2024 11:31:26 +0000 (11:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2024 15:10:30 +0000 (16:10 +0100)
Any control that the driver is updating should be marked as SYSTEM and
therefore will not have an ALSA control to notify.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://msgid.link/r/20240325113127.112783-5-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c

index f41d668e4c01ac719882455bb375d6ba6fdb4f93..517f46fb9130d8c6768468391325654ff37fdb6b 100644 (file)
@@ -672,7 +672,6 @@ int wm_adsp_write_ctl(struct wm_adsp *dsp, const char *name, int type,
                      unsigned int alg, void *buf, size_t len)
 {
        struct cs_dsp_coeff_ctl *cs_ctl;
-       struct wm_coeff_ctl *ctl;
        int ret;
 
        mutex_lock(&dsp->cs_dsp.pwr_lock);
@@ -683,12 +682,7 @@ int wm_adsp_write_ctl(struct wm_adsp *dsp, const char *name, int type,
        if (ret < 0)
                return ret;
 
-       if (ret == 0 || (cs_ctl->flags & WMFW_CTL_FLAG_SYS))
-               return 0;
-
-       ctl = cs_ctl->priv;
-
-       return snd_soc_component_notify_control(dsp->component, ctl->name);
+       return 0;
 }
 EXPORT_SYMBOL_GPL(wm_adsp_write_ctl);