Loading cmds/hdmid/HDMIDaemon.cpp +13 −1 Original line number Diff line number Diff line Loading @@ -578,7 +578,9 @@ int HDMIDaemon::processFrameworkCommand() return -1; buffer[ret] = 0; #ifdef QCOM_HARDWARE char actionsafe[PROPERTY_VALUE_MAX]; #endif if (!strcmp(buffer, HDMI_CMD_ENABLE_HDMI)) { if (!openFramebuffer()) return -1; Loading @@ -604,13 +606,23 @@ int HDMIDaemon::processFrameworkCommand() float asWidthRatio; int ret = sscanf(buffer, HDMI_CMD_SET_ASWIDTH "%f", &asWidthRatio); if(ret==1) { #ifdef QCOM_HARDWARE sprintf(actionsafe, "%0.2f", asWidthRatio); property_set("hw.actionsafe.width", actionsafe); #else SurfaceComposerClient::setActionSafeWidthRatio(asWidthRatio); #endif } } else if (!strncmp(buffer, HDMI_CMD_SET_ASHEIGHT, strlen(HDMI_CMD_SET_ASHEIGHT))) { float asHeightRatio; int ret = sscanf(buffer, HDMI_CMD_SET_ASHEIGHT "%f", &asHeightRatio); if(ret==1) { #ifdef QCOM_HARDWARE sprintf(actionsafe, "%0.2f", asHeightRatio); property_set("hw.actionsafe.height", actionsafe); #else SurfaceComposerClient::setActionSafeHeightRatio(asHeightRatio); #endif } } else if (!strncmp(buffer, HDMI_CMD_HPDOPTION, strlen(HDMI_CMD_HPDOPTION))) { int option; Loading Loading
cmds/hdmid/HDMIDaemon.cpp +13 −1 Original line number Diff line number Diff line Loading @@ -578,7 +578,9 @@ int HDMIDaemon::processFrameworkCommand() return -1; buffer[ret] = 0; #ifdef QCOM_HARDWARE char actionsafe[PROPERTY_VALUE_MAX]; #endif if (!strcmp(buffer, HDMI_CMD_ENABLE_HDMI)) { if (!openFramebuffer()) return -1; Loading @@ -604,13 +606,23 @@ int HDMIDaemon::processFrameworkCommand() float asWidthRatio; int ret = sscanf(buffer, HDMI_CMD_SET_ASWIDTH "%f", &asWidthRatio); if(ret==1) { #ifdef QCOM_HARDWARE sprintf(actionsafe, "%0.2f", asWidthRatio); property_set("hw.actionsafe.width", actionsafe); #else SurfaceComposerClient::setActionSafeWidthRatio(asWidthRatio); #endif } } else if (!strncmp(buffer, HDMI_CMD_SET_ASHEIGHT, strlen(HDMI_CMD_SET_ASHEIGHT))) { float asHeightRatio; int ret = sscanf(buffer, HDMI_CMD_SET_ASHEIGHT "%f", &asHeightRatio); if(ret==1) { #ifdef QCOM_HARDWARE sprintf(actionsafe, "%0.2f", asHeightRatio); property_set("hw.actionsafe.height", actionsafe); #else SurfaceComposerClient::setActionSafeHeightRatio(asHeightRatio); #endif } } else if (!strncmp(buffer, HDMI_CMD_HPDOPTION, strlen(HDMI_CMD_HPDOPTION))) { int option; Loading