]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - sound/soc/soc-core.c
ASoC: core: Set dapm->idle_bias_off for DAIs not mapped with a codec
[can-eth-gw-linux.git] / sound / soc / soc-core.c
index f81c5976b9611e5348bf9262e62eedd6cdd40fbe..f10f00b5d29fb490df2505c8abf8923a93aa535c 100644 (file)
@@ -3715,6 +3715,9 @@ int snd_soc_register_dai(struct device *dev,
                }
        }
 
+       if (!dai->codec)
+               dai->dapm.idle_bias_off = 1;
+
        list_add(&dai->list, &dai_list);
 
        mutex_unlock(&client_mutex);
@@ -3803,6 +3806,9 @@ int snd_soc_register_dais(struct device *dev,
                        }
                }
 
+               if (!dai->codec)
+                       dai->dapm.idle_bias_off = 1;
+
                list_add(&dai->list, &dai_list);
 
                mutex_unlock(&client_mutex);