summaryrefslogtreecommitdiffstats
path: root/alsa-binding
diff options
context:
space:
mode:
Diffstat (limited to 'alsa-binding')
-rw-r--r--alsa-binding/Alsa-SetGet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c
index 8c189de..494c694 100644
--- a/alsa-binding/Alsa-SetGet.c
+++ b/alsa-binding/Alsa-SetGet.c
@@ -467,13 +467,13 @@ STATIC int jumpToCardNextDevice(unsigned int card, int *currentDevice)
err = snd_ctl_open(&cardHandle, cardString, 0);
if(err < 0) {
- AFB_ERROR("Error %i happened when tried to open ALSA card %i", err, *currentDevice);
+ AFB_ERROR("Error %i happened when tried to open ALSA card %i", err, card);
return -3;
}
err = snd_ctl_pcm_next_device(cardHandle, currentDevice);
if(err < 0) {
- AFB_ERROR("Error %i happened when tried to get ALSA card %i next device number", err, *currentDevice);
+ AFB_ERROR("Error %i happened when tried to get ALSA card %i next device number", err, card);
snd_ctl_close(cardHandle);
return -4;
}