1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 09:44:04 +00:00

Revert "$mixer: report more reasonable values for mono devices"

the user reports this didn't fix the problem (see sf.net #3131452)

This reverts commit 540f78f0bd.
This commit is contained in:
Pavel Labath 2011-01-02 14:22:40 +01:00
parent 540f78f0bd
commit ab235b7ac6

View File

@ -52,7 +52,6 @@
static int mixer_fd;
static const char *devs[] = SOUND_DEVICE_NAMES;
static int stereo_flags;
int mixer_init(const char *name)
{
@ -71,8 +70,6 @@ int mixer_init(const char *name)
}
}
ioctl(mixer_fd, SOUND_MIXER_READ_STEREODEVS, &stereo_flags);
for (i = 0; i < sizeof(devs) / sizeof(const char *); i++) {
if (strcasecmp(devs[i], name) == 0) {
return i;
@ -96,11 +93,6 @@ static int mixer_get(int i)
}
rep = 0;
if(!(stereo_flags & (1<<i))) {
val &= 0xFF;
val |= val << 8;
}
return val;
}