Skip to content

Commit 09e1a72

Browse files
committed
vcap/delta: another compat with SDK 6.21+
1 parent 9c34035 commit 09e1a72

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/deltacast_common.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,20 @@
122122
#ifdef VHD_CORE_BP_BYPASS_RELAY_0
123123
// enum membber until 6.20, macro since 6.21
124124
#define VHD_MIN_6_21 1
125-
#endif
126-
#if !defined VHD_MIN_6_21 && !defined VHD_IS_6_20 // 6.19 or 6.20
125+
#endif
126+
#if !defined VHD_MIN_6_21 && !defined VHD_IS_6_20 // 6.19 or 6.20
127127
#warning cannot determine if VideoMaster is 6.19 or 6.20 - \
128128
assuming 6.20. Pass -DVHD_IS_6_19 (or 6_20) to enforce \
129129
specific version.
130-
#endif
130+
#endif
131131
#define VHD_MIN_6_20 1
132132
#define VHD_MIN_6_19 1
133133
#endif
134134

135+
#ifdef HAVE_VHD_STRING
136+
#define VHD_MIN_6_30 1
137+
#endif
138+
135139
// compat
136140
#ifdef DELTA_DVI_DEPRECATED
137141
#define VHD_BOARDTYPE_DVI VHD_BOARDTYPE_DVI_DEPRECATED

src/video_capture/deltacast.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static bool wait_for_channel(struct vidcap_deltacast_state *s)
187187

188188
/* Wait for channel locked */
189189
Result =
190-
#ifdef VHD_MIN_6_21
190+
#ifdef VHD_MIN_6_30
191191
/* Check Dual and Link A status */
192192
VHD_GetChannelProperty(s->BoardHandle, VHD_RX_CHANNEL, s->channel,
193193
VHD_CORE_CP_STATUS, &Status);
@@ -212,7 +212,7 @@ static bool wait_for_channel(struct vidcap_deltacast_state *s)
212212

213213
/* Auto-detect clock system */
214214
Result =
215-
#ifdef VHD_MIN_6_21
215+
#ifdef VHD_MIN_6_30
216216
VHD_GetChannelProperty(s->BoardHandle, VHD_RX_CHANNEL, s->channel,
217217
VHD_SDI_CP_CLOCK_DIVISOR, &s->ClockSystem);
218218
#else
@@ -524,7 +524,7 @@ vidcap_deltacast_init(struct vidcap_params *params, void **state)
524524

525525
for (ULONG i = s->channel; i < s->channel + (s->quad_channel ? 4 : 1);
526526
i++) {
527-
#ifdef VHD_MIN_6_21
527+
#ifdef VHD_MIN_6_30
528528
/*Channel mode Setup*/
529529
if ((ChnType == VHD_CHNTYPE_3GSDI_ASI) ||
530530
(ChnType == VHD_CHNTYPE_12GSDI_ASI)) {

0 commit comments

Comments
 (0)