Merge some cs42l42 patches into asoc-5.15
[sfrench/cifs-2.6.git] / sound / soc / codecs / wm_adsp.c
index fe15cbc7bcafdcd384859c2168fa57e3653ee5ec..bbe27ab3b1fc3e7795855967b6ac75f248f6cc2c 100644 (file)
@@ -2029,10 +2029,9 @@ static struct wm_coeff_ctl *wm_adsp_get_ctl(struct wm_adsp *dsp,
                if (!pos->subname)
                        continue;
                if (strncmp(pos->subname, name, pos->subname_len) == 0 &&
-                   strncmp(pos->fw_name, fw_txt,
-                           SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == 0 &&
-                               pos->alg_region.alg == alg &&
-                               pos->alg_region.type == type) {
+                   pos->fw_name == fw_txt &&
+                   pos->alg_region.alg == alg &&
+                   pos->alg_region.type == type) {
                        rslt = pos;
                        break;
                }