define __SALSA_EXPORT_FUNC in version.h

We have to include "global.h" to define __SALSA_EXPORT_FUNC

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Shuffle the inclusion of version.h

Instead of including global.h from version.h, shuffle the inclusion
order in asondlib.h.  Also add an ifdef guard in version.h just to be
sure.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Fix mistakes after refactoring pcm_params.c

Fix some regressions after refactoring pcm_params.c
These mistakes don't allow snd_pcm_hw_param_set_near to establish correct value.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Set SNDRV_PCM_HW_PARAMS_NORESAMPLE by default

As we don't allow resampling set SNDRV_PCM_HW_PARAMS_NORESAMPLE by
default to respect snd_pcm_hw_rule_noresample in drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Rename _sndrv_pcm_format to _snd_pcm_format

Rename _sndrv_pcm_format to _snd_pcm_format for compatible with alsa-lib.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Fix error on jack compilation with salsa

Fix error on jack compilation with salsa:
 /usr/include/alsa/ctl_macros.h:251:48: error: invalid conversion from
 'void*' to 'snd_ctl_elem_id_t* {aka snd_ctl_elem_id*}' [-fpermissive]

Signed-off-by: Takashi Iwai <tiwai@suse.de>