int do_stopvo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { unsigned int dev; if (argc < 2) { printf("Insufficient parameter!\n"); printf ("Usage:\n%s\n", cmdtp->usage); return -1; } dev = (unsigned int)simple_strtoul(argv[1], NULL, 10); if (dev > VOU_DEV_DSD0) { printf("Invalid parameter!\n"); return -1; } if (gs_aInterfaceType[dev] & VO_INTF_HDMI) { gs_aInterfaceType[dev] = 0; hdmi_stop(); } stop_vo(dev); printf("dev %d closed!\n", dev); return 0; }
static int _hdmi_streamoff(struct nxp_hdmi *me) { me->streaming = false; hdmi_stop(&me->ctx); return 0; }