Small fixes - Ville Syrjala <villes@syrjala.pp.sci.fi>

This commit is contained in:
Jaroslav Kysela 1999-05-10 12:29:59 +00:00
parent 61e8186420
commit 56c35134f8

View file

@ -281,9 +281,9 @@ static const char *speaker_position(int position)
case SND_MIXER_VOICE_CENTER: case SND_MIXER_VOICE_CENTER:
return "Center"; return "Center";
case SND_MIXER_VOICE_REAR_LEFT: case SND_MIXER_VOICE_REAR_LEFT:
return "Read-Left"; return "Rear-Left";
case SND_MIXER_VOICE_REAR_RIGHT: case SND_MIXER_VOICE_REAR_RIGHT:
return "Read-Right"; return "Rear-Right";
default: default:
sprintf(str, "Speaker%i", position); sprintf(str, "Speaker%i", position);
return str; return str;
@ -832,7 +832,7 @@ static int parse_eid(const char *str, snd_mixer_eid_t *eid)
str++; str++;
if (!isdigit(*str)) if (!isdigit(*str))
return 1; return 1;
eid->type = atoi(str); eid->index = atoi(str);
while (isdigit(*str)) while (isdigit(*str))
str++; str++;
if (*str != ',') if (*str != ',')