[alsa-devel] [PATCH 3/8] ASoC: core: Add debug-print helper function
Mark Brown
broonie at opensource.wolfsonmicro.com
Mon Apr 23 20:03:15 CEST 2012
On Fri, Apr 20, 2012 at 11:32:52AM +0200, Ola Lilja wrote:
> +/* Get a string naming the direction of a stream */
> +const char *snd_soc_stream_str(struct snd_pcm_substream *substream)
> +{
> + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
> + return "Playback";
> + else
> + return "Capture";
> +}
This should be added to the ALSA core, there's nothing ASoC specific
about it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120423/6eeaf6de/attachment.sig
More information about the Alsa-devel
mailing list