你好。目前我的开发包位:dvsdk_3_10_00_19,设置/sys/class/davinci_display/ch0/output错误,源码如下:
#define OUTNAME "Component"
#define OUTPUTPATH "/sys/class/davinci_display/ch0/output"
strcpy(command, "echo ");
strcat(command, OUTNAME);
strcat(command, " > ");
strcat(command, OUTPUTPATH);
if(system(command)) {
printf("Cannot set the output\n");
return -1;
}
程序运行到system,总是报错,不知道为什么不能设置Output参数
Chris Meng:
你好,
在命令行下执行是否就可以?
能否尝试:
fd = fopen("/sys/class/davinci_display/ch0/output",O_RDWR);write(fd,"COMPOSITE",10)