diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/pcm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 53fc04d75bad..50a6ee1aeab2 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -922,8 +922,22 @@ int snd_pcm_format_unsigned(snd_pcm_format_t format); | |||
922 | int snd_pcm_format_linear(snd_pcm_format_t format); | 922 | int snd_pcm_format_linear(snd_pcm_format_t format); |
923 | int snd_pcm_format_little_endian(snd_pcm_format_t format); | 923 | int snd_pcm_format_little_endian(snd_pcm_format_t format); |
924 | int snd_pcm_format_big_endian(snd_pcm_format_t format); | 924 | int snd_pcm_format_big_endian(snd_pcm_format_t format); |
925 | /** | ||
926 | * snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian | ||
927 | * @format: the format to check | ||
928 | * | ||
929 | * Returns 1 if the given PCM format is CPU-endian, 0 if | ||
930 | * opposite, or a negative error code if endian not specified. | ||
931 | */ | ||
932 | /* int snd_pcm_format_cpu_endian(snd_pcm_format_t format); */ | ||
933 | #ifdef SNDRV_LITTLE_ENDIAN | ||
934 | #define snd_pcm_format_cpu_endian snd_pcm_format_little_endian | ||
935 | #else | ||
936 | #define snd_pcm_format_cpu_endian snd_pcm_format_big_endian | ||
937 | #endif | ||
925 | int snd_pcm_format_width(snd_pcm_format_t format); /* in bits */ | 938 | int snd_pcm_format_width(snd_pcm_format_t format); /* in bits */ |
926 | int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */ | 939 | int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */ |
940 | ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples); | ||
927 | const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format); | 941 | const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format); |
928 | int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames); | 942 | int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames); |
929 | snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian); | 943 | snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian); |