I am trying to control master volume on 6446. But during the IOCTL
phase I am getting error -1. My Linux version is OE(Open Embedded -
Angstrom)
Do u have any idea?
Thanks inadvance...
B.R
Tarkan
int DeviceSound,vol=0;
if ((DeviceSound = open("/dev/pcmC0D0c", O_RDWR)) == -1)
{
printf("Failed to open /dev/pcmC0D0c\n");
return -1;
}
if (ioctl(DeviceSound, SOUND_MIXER_WRITE_VOLUME, &vol) == -1)
{
printf("Failed to set DeviceSound for vol.\n");
close(DeviceSound);
return -1;