[alsa-devel] [PATCH 1/5] ASoC: Allow platform drivers to have no ops structure

Lars-Peter Clausen lars at metafoo.de
Wed Apr 27 19:49:55 CEST 2011


On 04/27/2011 07:27 PM, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  sound/soc/soc-core.c |   49 ++++++++++++++++++++++++++++++-------------------
>  1 files changed, 30 insertions(+), 19 deletions(-)
> 
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index a6f37d4..cb93b79 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -545,6 +545,12 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
>  
>  	mutex_lock(&pcm_mutex);
>  
> +	/* CODEC<->CODEC DAI link, no CPU interface */
> +	if (rtd->dai_link->no_cpu) {
> +		ret = -EINVAL;
> +		goto out;
> +	}
> +
>  	/* startup the audio subsystem */
>  	if (cpu_dai->driver->ops->startup) {
>  		ret = cpu_dai->driver->ops->startup(substream, cpu_dai);

This hunk looks as if it belongs to a different series. There is currently no
'no_cpu' field in the snd_soc_dai_link struct.

- Lars


More information about the Alsa-devel mailing list