Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316192
b: refs/heads/master
c: 1aad779
h: refs/heads/master
v: v3
  • Loading branch information
Ola Lilja authored and Mark Brown committed Jun 3, 2012
1 parent e44d201 commit 42e8df1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 656baaebf92ae9b16644c7e10a273d8dfe1ba1f6
refs/heads/master: 1aad779fccdbb4d79af7b9de93dfd2bfe807e052
11 changes: 11 additions & 0 deletions trunk/include/sound/pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1073,4 +1073,15 @@ static inline void snd_pcm_limit_isa_dma_size(int dma, size_t *max)

const char *snd_pcm_format_name(snd_pcm_format_t format);

/**
* Get a string naming the direction of a stream
*/
static inline const char *snd_pcm_stream_str(struct snd_pcm_substream *substream)
{
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
return "Playback";
else
return "Capture";
}

#endif /* __SOUND_PCM_H */

0 comments on commit 42e8df1

Please sign in to comment.