From 4f8849bdc6ac897a9cf7cf3e23827da6d4c1d663 Mon Sep 17 00:00:00 2001 From: Adam Miartus Date: Fri, 27 Sep 2019 16:59:51 +0200 Subject: [PATCH] alsa_driver: remove unused variable Change-Id: I98fc02a877a830d375b458f0346fc9a43993e72c Signed-off-by: Adam Miartus --- linux/alsa/alsa_driver.c | 3 --- linux/alsa/alsa_driver.h | 1 - 2 files changed, 4 deletions(-) diff --git a/linux/alsa/alsa_driver.c b/linux/alsa/alsa_driver.c index e6d111be..43ad5d7f 100644 --- a/linux/alsa/alsa_driver.c +++ b/linux/alsa/alsa_driver.c @@ -837,10 +837,8 @@ alsa_driver_set_parameters (alsa_driver_t *driver, if (driver->playback_nchannels > driver->capture_nchannels) { driver->max_nchannels = driver->playback_nchannels; - driver->user_nchannels = driver->capture_nchannels; } else { driver->max_nchannels = driver->capture_nchannels; - driver->user_nchannels = driver->playback_nchannels; } alsa_driver_setup_io_function_pointers (driver); @@ -2040,7 +2038,6 @@ alsa_driver_new (char *name, char *playback_alsa_device, driver->hw = 0; driver->capture_and_playback_not_synced = FALSE; driver->max_nchannels = 0; - driver->user_nchannels = 0; driver->playback_nchannels = user_playback_nchnls; driver->capture_nchannels = user_capture_nchnls; driver->playback_sample_bytes = (shorts_first ? 2:4); diff --git a/linux/alsa/alsa_driver.h b/linux/alsa/alsa_driver.h index efe93de5..6045d5b1 100644 --- a/linux/alsa/alsa_driver.h +++ b/linux/alsa/alsa_driver.h @@ -72,7 +72,6 @@ typedef struct _alsa_driver { unsigned long *capture_interleave_skip; unsigned long *playback_interleave_skip; channel_t max_nchannels; - channel_t user_nchannels; channel_t playback_nchannels; channel_t capture_nchannels; unsigned long playback_sample_bytes; -- 2.11.4.GIT