Skip to content

Commit 7e467b4

Browse files
committed
Better add second PID for CM108AH
1 parent 7d9521f commit 7e467b4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cm108.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int cm108_write (char *name, int iomask, int iodata);
134134

135135
// CM108B is 0012.
136136
// CM119B is 0013.
137-
// CM108AH is 013c programmable by MSEL and MODE pin.
137+
// CM108AH is 0139 or 013c programmable by MSEL and MODE pin.
138138
// CM119A is 013A programmable by MSEL and MODE pin.
139139

140140
// To make matters even more confusing, these can be overridden
@@ -144,7 +144,8 @@ static int cm108_write (char *name, int iomask, int iodata);
144144
#define CMEDIA_PID1_MIN 0x0008 // range for CM108, CM109, CM119 (no following letters)
145145
#define CMEDIA_PID1_MAX 0x000f
146146

147-
#define CMEDIA_PID_CM108AH 0x013c // CM108AH
147+
#define CMEDIA_PID_CM108AH 0x0139 // CM108AH
148+
#define CMEDIA_PID_CM108AH_2 0x013c // CM108AH
148149
#define CMEDIA_PID_CM108B 0x0012 // CM108B
149150
#define CMEDIA_PID_CM119A 0x013a // CM119A
150151
#define CMEDIA_PID_CM119B 0x0013 // CM119B
@@ -162,7 +163,7 @@ static int cm108_write (char *name, int iomask, int iodata);
162163
// Device VID PID Number of GPIO
163164
// ------ --- --- --------------
164165
// CM108 0d8c 0008-000f * 4
165-
// CM108AH 0d8c 0139 * 3 Has GPIO 1,3,4 but not 2
166+
// CM108AH 0d8c 0139/013c * 3 Has GPIO 1,3,4 but not 2
166167
// CM108B 0d8c 0012 3 Has GPIO 1,3,4 but not 2
167168
// CM109 0d8c 0008-000f * 8
168169
// CM119 0d8c 0008-000f * 8
@@ -190,6 +191,7 @@ static int cm108_write (char *name, int iomask, int iodata);
190191

191192
#define GOOD_DEVICE(v,p) ( (v == CMEDIA_VID && ((p >= CMEDIA_PID1_MIN && p <= CMEDIA_PID1_MAX) \
192193
|| p == CMEDIA_PID_CM108AH \
194+
|| p == CMEDIA_PID_CM108AH_2 \
193195
|| p == CMEDIA_PID_CM108B \
194196
|| p == CMEDIA_PID_CM119A \
195197
|| p == CMEDIA_PID_CM119B )) \

0 commit comments

Comments
 (0)