[oe] [meta-multimedia] any patch for alsa-lib pcm.c __P_OLD_NEAR1() macro bug?

Mingtao Qu zarelaky at hotmail.com
Mon Feb 9 09:00:42 UTC 2015


hi everyone !

when i use alsa-lib, i got this bug,
the error code under below, this bug triggered in below way.
	app => libshared1.so => libasound.so
but
	app => libshared1.a => libasound.so
is fine.


#define __P_OLD_NEAR(pfx, name, ret_type) \
ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, ret_type 
val) \
{ \
	if (INTERNAL(name)(pcm, params, &val) < 0) \ //!!!!!HERE
		return 0; \
	return (ret_type)val; \
}

#define __P_OLD_NEAR1(pfx, name, ret_type) \
ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, ret_type 
val, int *dir) \
{ \
	if (INTERNAL(name)(pcm, params, &val, dir) < 0) \ //!!!!!HERE
		return 0; \
	return (ret_type)val; \
}

#define __OLD_NEAR(name, ret_type) __P_OLD_NEAR(__old_, name, ret_type)
#define __OLD_NEAR1(name, ret_type) __P_OLD_NEAR1(__old_, name, ret_type)

__OLD_NEAR(snd_pcm_hw_params_set_channels_near, unsigned int);
__OLD_NEAR1(snd_pcm_hw_params_set_rate_near, unsigned int);
__OLD_NEAR1(snd_pcm_hw_params_set_period_time_near, unsigned int);
__OLD_NEAR1(snd_pcm_hw_params_set_period_size_near, snd_pcm_uframes_t);
__OLD_NEAR1(snd_pcm_hw_params_set_periods_near, unsigned int);
__OLD_NEAR1(snd_pcm_hw_params_set_buffer_time_near, unsigned int);
__OLD_NEAR(snd_pcm_hw_params_set_buffer_size_near, snd_pcm_uframes_t);
__OLD_NEAR1(snd_pcm_hw_params_set_tick_time_near, unsigned int);



More information about the Openembedded-devel mailing list