[alsa-devel] ASoC : playback and capture counts in soc_new_pcm

Mark Brown broonie at kernel.org
Mon Apr 29 22:43:23 CEST 2013


On Tue, Mar 05, 2013 at 04:55:51PM +0900, JongHo Kim wrote:
> 2013/3/5 JongHo Kim <furmuwon at gmail.com>

> --- a/sound/soc/soc-pcm.c
> +++ b/sound/soc/soc-pcm.c
> @@ -2014,9 +2014,11 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int
> num)
>                 if (cpu_dai->driver->capture.channels_min)
>                         capture = 1;
>         } else {
> -               if (codec_dai->driver->playback.channels_min)
> +               if (codec_dai->driver->playback.channels_min &&
> +                   cpu_dai->driver->playback.channels_min)
>                         playback = 1;
> -               if (codec_dai->driver->capture.channels_min)
> +               if (codec_dai->driver->capture.channels_min &&
> +                   cpu_dai->driver->capture.channels_min)
>                         capture = 1;
>         }

This looks reasonably sensible - can you please submit using the process
in Documentation/SubmittingPatches (ie, CC the maintainers and include a
changelog and so on with Signed-off-by)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130429/63790d35/attachment.sig>


More information about the Alsa-devel mailing list