diff options
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r-- | include/sound/pcm.h | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 53fc04d75bad..d935417575b5 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -848,23 +848,6 @@ int snd_interval_ratnum(snd_interval_t *i, | |||
848 | 848 | ||
849 | void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params); | 849 | void _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params); |
850 | void _snd_pcm_hw_param_setempty(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var); | 850 | void _snd_pcm_hw_param_setempty(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var); |
851 | int snd_pcm_hw_param_min(snd_pcm_substream_t *substream, | ||
852 | snd_pcm_hw_params_t *params, | ||
853 | snd_pcm_hw_param_t var, | ||
854 | unsigned int val, int *dir); | ||
855 | int snd_pcm_hw_param_max(snd_pcm_substream_t *substream, | ||
856 | snd_pcm_hw_params_t *params, | ||
857 | snd_pcm_hw_param_t var, | ||
858 | unsigned int val, int *dir); | ||
859 | int snd_pcm_hw_param_setinteger(snd_pcm_substream_t *substream, | ||
860 | snd_pcm_hw_params_t *params, | ||
861 | snd_pcm_hw_param_t var); | ||
862 | int snd_pcm_hw_param_first(snd_pcm_substream_t *substream, | ||
863 | snd_pcm_hw_params_t *params, | ||
864 | snd_pcm_hw_param_t var, int *dir); | ||
865 | int snd_pcm_hw_param_last(snd_pcm_substream_t *substream, | ||
866 | snd_pcm_hw_params_t *params, | ||
867 | snd_pcm_hw_param_t var, int *dir); | ||
868 | int snd_pcm_hw_param_near(snd_pcm_substream_t *substream, | 851 | int snd_pcm_hw_param_near(snd_pcm_substream_t *substream, |
869 | snd_pcm_hw_params_t *params, | 852 | snd_pcm_hw_params_t *params, |
870 | snd_pcm_hw_param_t var, | 853 | snd_pcm_hw_param_t var, |
@@ -876,7 +859,6 @@ int snd_pcm_hw_param_set(snd_pcm_substream_t *pcm, | |||
876 | int snd_pcm_hw_params_choose(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); | 859 | int snd_pcm_hw_params_choose(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); |
877 | 860 | ||
878 | int snd_pcm_hw_refine(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); | 861 | int snd_pcm_hw_refine(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); |
879 | int snd_pcm_hw_params(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *params); | ||
880 | 862 | ||
881 | int snd_pcm_hw_constraints_init(snd_pcm_substream_t *substream); | 863 | int snd_pcm_hw_constraints_init(snd_pcm_substream_t *substream); |
882 | int snd_pcm_hw_constraints_complete(snd_pcm_substream_t *substream); | 864 | int snd_pcm_hw_constraints_complete(snd_pcm_substream_t *substream); |
@@ -922,8 +904,22 @@ int snd_pcm_format_unsigned(snd_pcm_format_t format); | |||
922 | int snd_pcm_format_linear(snd_pcm_format_t format); | 904 | int snd_pcm_format_linear(snd_pcm_format_t format); |
923 | int snd_pcm_format_little_endian(snd_pcm_format_t format); | 905 | int snd_pcm_format_little_endian(snd_pcm_format_t format); |
924 | int snd_pcm_format_big_endian(snd_pcm_format_t format); | 906 | int snd_pcm_format_big_endian(snd_pcm_format_t format); |
907 | /** | ||
908 | * snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian | ||
909 | * @format: the format to check | ||
910 | * | ||
911 | * Returns 1 if the given PCM format is CPU-endian, 0 if | ||
912 | * opposite, or a negative error code if endian not specified. | ||
913 | */ | ||
914 | /* int snd_pcm_format_cpu_endian(snd_pcm_format_t format); */ | ||
915 | #ifdef SNDRV_LITTLE_ENDIAN | ||
916 | #define snd_pcm_format_cpu_endian snd_pcm_format_little_endian | ||
917 | #else | ||
918 | #define snd_pcm_format_cpu_endian snd_pcm_format_big_endian | ||
919 | #endif | ||
925 | int snd_pcm_format_width(snd_pcm_format_t format); /* in bits */ | 920 | 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 */ | 921 | int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */ |
922 | 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); | 923 | 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); | 924 | 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); | 925 | snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian); |