/* change the audio source if necessary and possible returns 1 if the source is actually changed.  */
int vx_sync_audio_source(struct vx_core *chip)
/* change the audio source if necessary and possible returns 1 if the source is actually changed.  */
int vx_sync_audio_source(struct vx_core *chip)
{
	if (chip->audio_source_target == chip->audio_source ||
	    chip->pcm_running)
		return 0;
	vx_change_audio_source(chip, chip->audio_source_target);
	chip->audio_source = chip->audio_source_target;
	return 1;
}