From bfc23c6b611b834842e37b91bac40981bb045845 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Fri, 19 Feb 2016 18:55:01 +1100 Subject: [PATCH] alsa: Remove calls to deprecated ALSA function Remove calls to snd_pcm_sw_params_set_xfer_align(). This function was turned into a no-op and marked as deprecated in 2008. http://git.alsa-project.org/?p=alsalib.git; a=commitdiff;h=cf15e49d8460d9b56005d8c49faa064de3649cef --- tools/alsa_in.c | 6 ------ tools/alsa_out.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/tools/alsa_in.c b/tools/alsa_in.c index 95fb423..6935f60 100644 --- a/tools/alsa_in.c +++ b/tools/alsa_in.c @@ -265,12 +265,6 @@ static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams, int pe printf("Unable to set avail min for capture: %s\n", snd_strerror(err)); return err; } - /* align all transfers to 1 sample */ - err = snd_pcm_sw_params_set_xfer_align(handle, swparams, 1); - if (err < 0) { - printf("Unable to set transfer align for capture: %s\n", snd_strerror(err)); - return err; - } /* write the parameters to the playback device */ err = snd_pcm_sw_params(handle, swparams); if (err < 0) { diff --git a/tools/alsa_out.c b/tools/alsa_out.c index f7cc8b5..cd079c5 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -266,12 +266,6 @@ static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams, int pe printf("Unable to set avail min for capture: %s\n", snd_strerror(err)); return err; } - /* align all transfers to 1 sample */ - err = snd_pcm_sw_params_set_xfer_align(handle, swparams, 1); - if (err < 0) { - printf("Unable to set transfer align for capture: %s\n", snd_strerror(err)); - return err; - } /* write the parameters to the playback device */ err = snd_pcm_sw_params(handle, swparams); if (err < 0) {