1: int32_t AG903_DSPMgrSetPortSel(
AG903_DSPMgrHandle *handle, uint8_t sel)
2: {
3: int32_t rc =
AG903_ENONE;
4: uint8_t ch;
5:
6:
if (handle == NULL)
7:
return -
AG903_EINVAL;
8:
9: rc = DSPMgrCheckHandle(handle, &ch);
10:
11:
if (ch == 0) {
12:
if (sel > AG903_VOD0_PORTSEL_LVDS_SINGLE)
13: rc = -
AG903_EINVAL;
14: }
else {
15:
if (sel > AG903_VOD1_PORTSEL_LVDS_SINGLE)
16: rc = -
AG903_EINVAL;
17: }
18:
19:
if (rc ==
AG903_ENONE) {
20:
AG903_VODPrmSetPORTSEL(ch, sel);
21: }
22:
23:
return rc;
24: }