Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1:/tmp/cvs-serv15112/src/pcm

Modified Files:
        pcm.c 
Log Message:
Switch from old to new PCM API retaining binary compatibility
Changed version to 1.0.0pre1


Index: pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -r1.262 -r1.263
--- pcm.c       31 Oct 2003 18:52:55 -0000      1.262
+++ pcm.c       5 Nov 2003 10:38:39 -0000       1.263
@@ -3005,9 +3005,6 @@
  * \param params Configuration space
  * \param access Returned value
  * \return access type otherwise a negative error code if not exactly one is present
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_access)(const snd_pcm_hw_params_t *params, 
snd_pcm_access_t *access)
@@ -3052,9 +3049,6 @@
  * \param params Configuration space
  * \param access Returned first access type
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_access_first)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, snd_pcm_access_t *access)
@@ -3071,9 +3065,6 @@
  * \param params Configuration space
  * \param val Returned last access type
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_access_last)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, snd_pcm_access_t *access)
@@ -3115,9 +3106,6 @@
  * \param params Configuration space
  * \param format returned format
  * \return format otherwise a negative error code if not exactly one is present
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_format)(const snd_pcm_hw_params_t *params, 
snd_pcm_format_t *format)
@@ -3158,9 +3146,6 @@
  * \param params Configuration space
  * \param format Returned first format
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_format_first)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, snd_pcm_format_t *format)
@@ -3177,9 +3162,6 @@
  * \param params Configuration space
  * \param format Returned last format
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_format_last)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, snd_pcm_format_t *format)
@@ -3218,9 +3200,6 @@
  * \param params Configuration space
  * \param subformat Returned subformat value
  * \return subformat otherwise a negative error code if not exactly one is present
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_subformat)(const snd_pcm_hw_params_t *params, 
snd_pcm_subformat_t *subformat)
@@ -3261,9 +3240,6 @@
  * \param params Configuration space
  * \param subformat Returned subformat
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_subformat_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
@@ -3280,9 +3256,6 @@
  * \param params Configuration space
  * \param subformat Returned subformat
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_subformat_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
@@ -3321,9 +3294,6 @@
  * \param params Configuration space
  * \param val Returned channels count
  * \return 0 otherwise a negative error code if not exactly one is present
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_channels)(const snd_pcm_hw_params_t *params, 
unsigned int *val)
@@ -3339,9 +3309,6 @@
  * \param params Configuration space
  * \param val minimum channels count
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_channels_min)(const snd_pcm_hw_params_t *params, 
unsigned int *val)
@@ -3357,9 +3324,6 @@
  * \param params Configuration space
  * \param val maximum channels count
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_channels_max)(const snd_pcm_hw_params_t *params, 
unsigned int *val)
@@ -3437,9 +3401,6 @@
  * \param params Configuration space
  * \param val target channels count, returned chosen channels count
  * \return chosen channels count
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_channels_near)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val)
@@ -3456,9 +3417,6 @@
  * \param params Configuration space
  * \param val minimum channels count
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_channels_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val)
@@ -3475,9 +3433,6 @@
  * \param params Configuration space
  * \param val maximum channels count
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_channels_last)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val)
@@ -3497,9 +3452,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_rate)(const snd_pcm_hw_params_t *params, unsigned 
int *val, int *dir)
@@ -3518,9 +3470,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_rate_min)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -3539,9 +3488,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_rate_max)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -3637,9 +3583,6 @@
  * \return approximate chosen rate
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_rate_near)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -3659,9 +3602,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_rate_first)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -3681,9 +3621,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_rate_last)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -3703,9 +3640,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_time)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -3724,9 +3658,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_time_min)(const snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -3745,9 +3676,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_time_max)(const snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -3844,9 +3772,6 @@
  * \return approximate chosen period duration in us
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_time_near)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -3866,9 +3791,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_time_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -3887,9 +3809,6 @@
  * \return approximate period duration in us
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_time_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -3909,9 +3828,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_size)(const snd_pcm_hw_params_t *params, 
snd_pcm_uframes_t *val, int *dir)
@@ -3934,9 +3850,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_size_min)(const snd_pcm_hw_params_t 
*params, snd_pcm_uframes_t *val, int *dir)
@@ -3959,9 +3872,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_period_size_max)(const snd_pcm_hw_params_t 
*params, snd_pcm_uframes_t *val, int *dir)
@@ -4074,9 +3984,6 @@
  * \return 0 otherwise a negative error code
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_size_near)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
@@ -4100,9 +4007,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_size_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
@@ -4126,9 +4030,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_period_size_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
@@ -4163,9 +4064,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_periods)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4184,9 +4082,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_periods_min)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4205,9 +4100,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_periods_max)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4303,9 +4195,6 @@
  * \return approximate chosen periods per buffer
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_periods_near)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -4325,9 +4214,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_periods_first)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -4347,9 +4233,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_periods_last)(snd_pcm_t *pcm, snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -4381,9 +4264,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_time)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4402,9 +4282,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_time_min)(const snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -4423,9 +4300,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_time_max)(const snd_pcm_hw_params_t 
*params, unsigned int *val, int *dir)
@@ -4521,9 +4395,6 @@
  * \return approximate chosen buffer duration in us
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_time_near)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -4543,9 +4414,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_time_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -4565,9 +4433,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_time_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -4584,9 +4449,6 @@
  * \param params Configuration space
  * \param val Returned buffer size in frames
  * \return 0 otherwise a negative error code if not exactly one is present
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_size)(const snd_pcm_hw_params_t *params, 
snd_pcm_uframes_t *val)
@@ -4609,9 +4471,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_size_min)(const snd_pcm_hw_params_t 
*params, snd_pcm_uframes_t *val)
@@ -4634,9 +4493,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_buffer_size_max)(const snd_pcm_hw_params_t 
*params, snd_pcm_uframes_t *val)
@@ -4748,9 +4604,6 @@
  * \return approximate chosen buffer size in frames
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_size_near)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
@@ -4771,9 +4624,6 @@
  * \param params Configuration space
  * \param val Returned minimum buffer size in frames
  * \return buffer size in frames
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_size_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
@@ -4794,9 +4644,6 @@
  * \param params Configuration space
  * \param val Returned maximum buffer size in frames
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_buffer_size_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
@@ -4820,9 +4667,6 @@
  * \return 0 otherwise a negative error code if not exactly one is present
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_tick_time)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4841,9 +4685,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_tick_time_min)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4862,9 +4703,6 @@
  * \return 0 otherwise a negative error code
  *
  * Exact value is <,=,> the returned one following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_get_tick_time_max)(const snd_pcm_hw_params_t *params, 
unsigned int *val, int *dir)
@@ -4960,9 +4798,6 @@
  * \return approximate chosen tick duration in us
  *
  * target/chosen exact value is <,=,> val following dir (-1,0,1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_tick_time_near)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -4982,9 +4817,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_tick_time_first)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -5004,9 +4836,6 @@
  * \return 0 otherwise a negative error code
  *
  * Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_hw_params_set_tick_time_last)(snd_pcm_t *pcm, 
snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
@@ -5262,9 +5091,6 @@
  * \param params Software configuration container
  * \param val Returned timestamp
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_HW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_tstamp_mode)(const snd_pcm_sw_params_t *params, 
snd_pcm_tstamp_t *val)
@@ -5300,9 +5126,6 @@
  * \param params Software configuration container
  * \param val returned minimum number of ticks to sleep or 0 if tick timer is disabled
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_sleep_min)(const snd_pcm_sw_params_t *params, 
unsigned int *val)
@@ -5347,9 +5170,6 @@
  * \param params Software configuration container
  * \param val returned minimum available frames to consider PCM ready
  * \return 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_avail_min)(const snd_pcm_sw_params_t *params, 
snd_pcm_uframes_t *val)
@@ -5387,9 +5207,6 @@
  * \param params Software configuration container
  * \param val returned chunk size (frames are attempted to be transferred in chunks)
  * \param 0 otherwise a negative error code
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_xfer_align)(const snd_pcm_sw_params_t *params, 
snd_pcm_uframes_t *val)
@@ -5432,9 +5249,6 @@
  *
  * PCM is automatically started when playback frames available to PCM 
  * are >= threshold or when requested capture frames are >= threshold
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_start_threshold)(const snd_pcm_sw_params_t 
*params, snd_pcm_uframes_t *val)
@@ -5477,9 +5291,6 @@
  *
  * PCM is automatically stopped in #SND_PCM_STATE_XRUN state when available
  * frames is >= threshold
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_stop_threshold)(const snd_pcm_sw_params_t *params, 
snd_pcm_uframes_t *val)
@@ -5525,9 +5336,6 @@
  * A portion of playback buffer is overwritten with silence (see 
  * #snd_pcm_sw_params_get_silence_size) when playback underrun is nearer
  * than silence threshold
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_silence_threshold)(const snd_pcm_sw_params_t 
*params, snd_pcm_uframes_t *val)
@@ -5578,9 +5386,6 @@
  * A portion of playback buffer is overwritten with silence when playback
  * underrun is nearer than silence threshold (see 
  * #snd_pcm_sw_params_set_silence_threshold)
- *
- * Note: To use this function add '#define ALSA_PCM_NEW_SW_PARAMS_API' before 
'#include <alsa/asoundlib.h>'
- *       to enable this new function prototype. Using of older function with same 
name is deprecated.
  */
 #ifndef DOXYGEN
 int INTERNAL(snd_pcm_sw_params_get_silence_size)(const snd_pcm_sw_params_t *params, 
snd_pcm_uframes_t *val)
@@ -6538,17 +6343,9 @@
 
 #ifdef USE_VERSIONED_SYMBOLS
 
-#if 1
-/* it's really not so nice: obsolete, but default */
-/* forced by developers on alsa-devel */
-#define OBSOLETE1(name, what, new) \
-  symbol_version(__##name, name, new); \
-  default_symbol_version(__old_##name, name, what);
-#else
 #define OBSOLETE1(name, what, new) \
   default_symbol_version(__##name, name, new); \
   symbol_version(__old_##name, name, what);
-#endif
 
 #else
 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to