ASoC: soc-component: add snd_soc_component_open()
[sfrench/cifs-2.6.git] / sound / soc / soc-pcm.c
index 5fef18507286499b52c5c7fa2d50854c5f57ed99..caf7028cee622c0b33b5b26668a9fc4f3aef368c 100644 (file)
@@ -447,11 +447,7 @@ static int soc_pcm_components_open(struct snd_pcm_substream *substream,
                        return ret;
                }
 
-               if (!component->driver->ops ||
-                   !component->driver->ops->open)
-                       continue;
-
-               ret = component->driver->ops->open(substream);
+               ret = snd_soc_component_open(component, substream);
                if (ret < 0) {
                        dev_err(component->dev,
                                "ASoC: can't open component %s: %d\n",