Feature #1103 ยป softdevice_set_ac3.patch
| softdevice_hape/softhddevice.cpp 2012-10-21 21:30:43.594050482 +0200 | ||
|---|---|---|
|
"576i", "720p", "1080i_fake", "1080i"
|
||
|
};
|
||
|
static char audio_ac3_device[32];
|
||
|
static char ConfigMakePrimary; ///< config primary wanted
|
||
|
static char ConfigHideMainMenuEntry; ///< config hide main menu entry
|
||
|
static char ConfigSuspendClose; ///< suspend should close devices
|
||
| ... | ... | |
|
" NOT_SUSPENDED == 0 (910)\n"
|
||
|
" SUSPEND_NORMAL == 1 (911)\n"
|
||
|
" SUSPEND_DETACHED == 2 (912)\n",
|
||
|
"SET_AC3\n" "\040 Set the ac3 device.\n\n"
|
||
|
" device is: type:card,device (example: hw:1,7)\n",
|
||
|
NULL
|
||
|
};
|
||
| ... | ... | |
|
DoMakePrimary = primary;
|
||
|
return "switching primary device requested";
|
||
|
}
|
||
|
if (!strcasecmp(command, "SET_AC3")) {
|
||
|
if (SuspendMode == NOT_SUSPENDED) {
|
||
|
return "can't change audio device (ac3) SoftHdDevice not detached";
|
||
|
}
|
||
|
strncpy ( audio_ac3_device, option, sizeof(option) );
|
||
|
AudioSetDeviceAC3(audio_ac3_device);
|
||
|
dsyslog("[softhddev] change audio device (ac3) to %s\n", audio_ac3_device);
|
||
|
return "change audio device (ac3)";
|
||
|
}
|
||
|
return NULL;
|
||
|
}
|
||