diff options
| author | Brad Midgley <bmidgley@xmission.com> | 2008-01-05 14:51:47 +0000 | 
|---|---|---|
| committer | Brad Midgley <bmidgley@xmission.com> | 2008-01-05 14:51:47 +0000 | 
| commit | 72947933a64f92a798567e74e75c0222375ae599 (patch) | |
| tree | dc2b578881a6ce58c6bc5328d5312f186e313b78 | |
| parent | 4849d9867847ccb78bd13573ea01f67423610876 (diff) | |
use correct variable to pick up alsa prefs
| -rw-r--r-- | audio/pcm_bluetooth.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index b0e3838b..4b169522 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -1327,19 +1327,19 @@ static int bluetooth_parse_config(snd_config_t *conf,  				return -EINVAL;  			} -			if (strcmp(pref, "auto") == 0) { +			if (strcmp(mode, "auto") == 0) {  				bt_config->channel_mode = BT_A2DP_CHANNEL_MODE_AUTO;  				bt_config->has_channel_mode = 1; -			} else if (strcmp(pref, "mono") == 0) { +			} else if (strcmp(mode, "mono") == 0) {  				bt_config->channel_mode = BT_A2DP_CHANNEL_MODE_MONO;  				bt_config->has_channel_mode = 1; -			} else if (strcmp(pref, "dual") == 0) { +			} else if (strcmp(mode, "dual") == 0) {  				bt_config->channel_mode = BT_A2DP_CHANNEL_MODE_DUAL_CHANNEL;  				bt_config->has_channel_mode = 1; -			} else if (strcmp(pref, "stereo") == 0) { +			} else if (strcmp(mode, "stereo") == 0) {  				bt_config->channel_mode = BT_A2DP_CHANNEL_MODE_STEREO;  				bt_config->has_channel_mode = 1; -			} else if (strcmp(pref, "joint") == 0) { +			} else if (strcmp(mode, "joint") == 0) {  				bt_config->channel_mode = BT_A2DP_CHANNEL_MODE_JOINT_STEREO;  				bt_config->has_channel_mode = 1;  			} @@ -1352,13 +1352,13 @@ static int bluetooth_parse_config(snd_config_t *conf,  				return -EINVAL;  			} -			if (strcmp(pref, "auto") == 0) { +			if (strcmp(allocation, "auto") == 0) {  				bt_config->allocation_method = BT_A2DP_ALLOCATION_AUTO;  				bt_config->has_allocation_method = 1; -			} else if (strcmp(pref, "loudness") == 0) { +			} else if (strcmp(allocation, "loudness") == 0) {  				bt_config->allocation_method = BT_A2DP_ALLOCATION_LOUDNESS;  				bt_config->has_allocation_method = 1; -			} else if (strcmp(pref, "snr") == 0) { +			} else if (strcmp(allocation, "snr") == 0) {  				bt_config->allocation_method = BT_A2DP_ALLOCATION_SNR;  				bt_config->has_allocation_method = 1;  			} | 
