summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/rtk_voip/Config.in
blob: 0b8048ec999cade811df34ba549944eb0f88f6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
mainmenu_option next_comment
comment 'RTK VoIP Suite'
#define_bool CONFIG_VOIP_SDK y
#bool 'RTK VOIP' CONFIG_RTK_VOIP
tristate 'RTK VOIP' CONFIG_RTK_VOIP
if [ "$CONFIG_RTK_VOIP" == "y" -o "$CONFIG_RTK_VOIP" == "m" ]; then
	define_bool CONFIG_RTK_VOIP_MANAGER y
	define_bool CONFIG_RTK_VOIP_DSP y
	#bool 'voip_drivers' CONFIG_RTK_VOIP_DRIVERS
	define_bool CONFIG_RTK_VOIP_DRIVERS y
#   choice  'Platform' \
#		"RTL8186  CONFIG_RTK_VOIP_DRIVERS_PCM8186\
#		RTL8651  CONFIG_RTK_VOIP_DRIVERS_PCM8651\
#		RTL8671  CONFIG_RTK_VOIP_DRIVERS_PCM8671\
#		RTL865xC  CONFIG_RTK_VOIP_DRIVERS_PCM865xC" RTL865xC

	if [ "$CONFIG_RE865X" == "y" ]; then
		define_bool CONFIG_RTK_VOIP_PACKAGE_865X y
		define_bool CONFIG_RTK_VOIP_PACKAGE_867X n
		define_bool CONFIG_RTK_VOIP_PACKAGE_8186 n
	elif [ "$CONFIG_RE8670" == "y" ]; then
		define_bool CONFIG_RTK_VOIP_PACKAGE_865X n
		define_bool CONFIG_RTK_VOIP_PACKAGE_867X y
		define_bool CONFIG_RTK_VOIP_PACKAGE_8186 n
	else
		define_bool CONFIG_RTK_VOIP_PACKAGE_865X n
		define_bool CONFIG_RTK_VOIP_PACKAGE_867X n
		define_bool CONFIG_RTK_VOIP_PACKAGE_8186 y
	fi

	if [ "$CONFIG_RTL865XB" == "y" ]; then
		comment 'Platform(RTL865xB)'
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8651 y
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM865xC n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8186 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8671 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY n
	elif [ "$CONFIG_RTL8196B" == "y" ]; then
		comment 'Platform(RTL8972B/RTL898xB)'
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY y
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM865xC n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8651 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8186 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8671 n
	elif [ "$CONFIG_RTL865XC" == "y" -o "$CONFIG_RTL865X" == "y" ]; then
		comment 'Platform(RTL895x/RTL896x)'
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM865xC y
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8651 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8186 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8671 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY n
	fi

	if [ "$CONFIG_RTL_EB8186" == "y" ]; then
		comment 'Platform(RTL8186)'
		define_bool	CONFIG_RTK_VOIP_DRIVERS_PCM8186 y
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM865xC n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8651 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8671 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY n
	fi

	if [ "$CONFIG_RTL8671" == "y" ]; then
		comment 'Platform'
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8671 y
		define_bool	CONFIG_RTK_VOIP_DRIVERS_PCM8186 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM865xC n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8651 n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY n
	fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM865xC" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY" == "y" ]; then
		bool 'Ethernet DSP' CONFIG_RTK_VOIP_ETHERNET_DSP
		if  [ "$CONFIG_RTK_VOIP_ETHERNET_DSP" == "y" ]; then
			choice  'Ethernet DSP' \
				"Host CONFIG_RTK_VOIP_ETHERNET_DSP_IS_HOST\
				DSP  CONFIG_RTK_VOIP_ETHERNET_DSP_IS_DSP" Host
				if  [ "$CONFIG_RTK_VOIP_ETHERNET_DSP_IS_HOST" == "y" ]; then
					comment 'NFBI Driver'
					choice 'Mode' \
						"HOST_DEFAULT_SMI CONFIG_RTK_VOIP_ETH_DSP_HOST_DEF_SMI\
						HOST_GPIO_SMI CONFIG_RTK_VOIP_ETH_DSP_HOST_GPIO_SMI" HOST_DEFAULT_SMI

					if [ "$CONFIG_RTK_VOIP_ETH_DSP_HOST_DEF_SMI" == "y" ] || [ "$CONFIG_RTK_VOIP_ETH_DSP_HOST_GPIO_SMI" == "y" ]; then
						#define_bool CONFIG_RTL865x_PAHAHOST y
						define_bool CONFIG_RTL8197B_NFBI y
					fi
				fi
		fi
	fi

	#bool 'RTK VoIP Network RX' CONFIG_RTK_VOIP_RX
	#bool 'RTK VoIP Network TX' CONFIG_RTK_VOIP_TX

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186" == "y" ]; then
   	
		choice  'RTL8186 Type' \
			"RTL8186V  CONFIG_RTK_VOIP_DRIVERS_PCM8186V_\
			 RTL8186VA  CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_\
			 RTL8186PV  CONFIG_RTK_VOIP_DRIVERS_PCM8186PV" RTL8186V
        	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186V_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_" == "y" ]; then
			define_bool		 CONFIG_RTK_VOIP_DRIVERS_PCM8186V y
   			bool 'RTL8186V One Arm Router' CONFIG_RTK_VOIP_DRIVERS_8186V_ROUTER
			if [ "$CONFIG_RTK_VOIP_DRIVERS_8186V_ROUTER" == "y" ]; then
				define_bool CONFIG_RTK_VOIP_VLAN_ID y
				define_bool CONFIG_RTK_VOIP_WAN_VLAN y
			fi
		fi

	   	define_bool CONFIG_RTK_VOIP_RX y
	   	define_bool CONFIG_RTK_VOIP_TX y
	else
		define_bool	CONFIG_RTK_VOIP_DRIVERS_PCM8186V_ n
		define_bool	CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_ n
		define_bool	CONFIG_RTK_VOIP_DRIVERS_PCM8186PV n
		define_bool CONFIG_RTK_VOIP_DRIVERS_PCM8186V n
		fi  

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651" == "y" ]; then
		choice  'RTL8651B Type' \
			"RTL8651B  CONFIG_RTK_VOIP_DRIVERS_PCM8651B_\
			 RTL8651BV  CONFIG_RTK_VOIP_DRIVERS_PCM8651BV_" RTL8651B

	   	define_bool CONFIG_RTK_VOIP_RX y
	   	define_bool CONFIG_RTK_VOIP_TX y

	else
		define_bool		 CONFIG_RTK_VOIP_DRIVERS_PCM8651B_ n
		define_bool		 CONFIG_RTK_VOIP_DRIVERS_PCM8651BV_ n
	   fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM865xC" == "y" ]; then
		choice  'Type' \
			"RTL8952  CONFIG_RTK_VOIP_DRIVERS_PCM8651CV_\
			 RTL8962  CONFIG_RTK_VOIP_DRIVERS_PCM8651CVA_" RTL8651CV

	   	define_bool CONFIG_RTK_VOIP_RX y
	   	define_bool CONFIG_RTK_VOIP_TX y
	
	else
		define_bool		 CONFIG_RTK_VOIP_DRIVERS_PCM8651CV_ n
		define_bool		 CONFIG_RTK_VOIP_DRIVERS_PCM8651CVA_ n
	fi


	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8671" == "y" ]; then
			choice  'Type' \
				"RTL8972  CONFIG_RTK_VOIP_DRIVERS_PCM8671V_\
				RTL8982  CONFIG_RTK_VOIP_DRIVERS_PCM8671VA_" RTL8972
				
	   	define_bool CONFIG_RTK_VOIP_RX y
	   	define_bool CONFIG_RTK_VOIP_TX y
	fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY" == "y" ]; then
			choice  'Type' \
				"RTL8972B  CONFIG_RTK_VOIP_DRIVERS_PCM8972B_\
				RTL8981B  CONFIG_RTK_VOIP_DRIVERS_PCM8981B_\
				RTL8982B  CONFIG_RTK_VOIP_DRIVERS_PCM8982B_\
				RTL8984B  CONFIG_RTK_VOIP_DRIVERS_PCM8984B_" RTL8972B
				
	   	define_bool CONFIG_RTK_VOIP_RX y
	   	define_bool CONFIG_RTK_VOIP_TX y
	fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651CVA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651BV_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8671VA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8981B_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8982B_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8984B_" == "y" ]; then
		define_bool 	 CONFIG_AUDIOCODES_VOIP y
		define_bool 	 CONFIG_AUDIOCODES_VOIP_RELEASE y
		define_bool      AUDIOCODES_VOIP y
		define_bool      ACMW_LX y
		define_bool      ACL_BYPASS y
		define_bool      ACL_RELEASE y
		define_bool      AUDIOCODES_VOIP_SIP y
	else
		define_bool 	 CONFIG_AUDIOCODES_VOIP n
		define_bool 	 CONFIG_AUDIOCODES_VOIP_RELEASE n
		define_bool      AUDIOCODES_VOIP n
		define_bool      ACMW_LX n
		define_bool      ACL_BYPASS n
		define_bool      ACL_RELEASE n
		define_bool      AUDIOCODES_VOIP_SIP n
   fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_" == "y" ]; then
		define_bool ACL_RTL8186VA y
		define_bool ACL_LINUX_2_4_18 y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651CVA_" == "y" ]; then 
		define_bool ACL_RTL8651C y
		define_bool ACL_UCLINUX_2_4_X y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651BV_" == "y" ]; then
		define_bool ACL_RTL8651BV y
		define_bool ACL_UCLINUX_2_4_X y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8671VA_" == "y" ]; then
		define_bool ACL_RTL8671VA y
		define_bool ACL_LINUX_2_4_18 y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8981B_" == "y" ]; then
		#define_bool ACL_RTL8981B y
		define_bool ACL_RTL8651C y
		define_bool ACL_LINUX_2_4_18 y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8982B_" == "y" ]; then
		#define_bool ACL_RTL8982B y
		define_bool ACL_RTL8651C y
		define_bool ACL_LINUX_2_4_18 y
	fi
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8984B_" == "y" ]; then
		#define_bool ACL_RTL8984B y
		define_bool ACL_RTL8651C y
		define_bool ACL_LINUX_2_4_18 y
	fi
	
	comment 'VoIP Security'
	bool 'Enable SRTP' CONFIG_RTK_VOIP_SRTP
	bool 'Enable SIP TLS' CONFIG_RTK_VOIP_SIP_TLS

	comment 'ATA / IP PHONE'
     	choice 'ATA / IP PHONE' \
        	"IP_phone CONFIG_RTK_VOIP_DRIVERS_IP_PHONE\
        	ATA_SLIC CONFIG_RTK_VOIP_DRIVERS_ATA_SLIC" ATA_SLIC
	if [ "$CONFIG_RTK_VOIP_DRIVERS_IP_PHONE" == "y" ]; then
		define_bool CONFIG_RTK_VOIP_IP_PHONE y
		choice 'CODEC' \
			"WM8510 CONFIG_RTK_VOIP_DRIVERS_CODEC_WM8510\
			ALC5621 CONFIG_RTK_VOIP_DRIVERS_CODEC_ALC5621" WM8510
		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY" == "y" ]; then
			bool 'IIS Support' CONFIG_RTK_VOIP_DRIVERS_IIS
		fi
	fi

	if [ "$CONFIG_RTK_VOIP_DRIVERS_ATA_SLIC" == "y" ]; then
   		choice  'SLIC' \
			"Silab	CONFIG_RTK_VOIP_DRIVERS_SLIC_SILAB\
			Zarlink CONFIG_RTK_VOIP_DRIVERS_SLIC_ZARLINK\
			W682388 CONFIG_RTK_VOIP_DRIVERS_SLIC_W682388" Silab
		
		if [ "$CONFIG_RTK_VOIP_DRIVERS_SLIC_SILAB" == "y" ]; then
			choice  'Silab SLIC' \
			"SI3210 CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3210\
			SI3215 CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3215\
			SI3217x	CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3217x\
			SI3226 CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3226" SI3215
		fi
		
		if [ "$CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3217x" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_DRIVERS_SLIC_SI3226 y
			choice  'SLIC ID' \
				"SI32178 CONFIG_RTK_VOIP_SLIC_SI32178" SI32178
		fi

		if [ "$CONFIG_RTK_VOIP_DRIVERS_SLIC_ZARLINK" == "y" ]; then
			choice  'Zarlink SLIC' \
				"LE88111 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88111\
				LE88221 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88221\
				LE88266 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88266\
				LE89116 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE89116\
				LE89316 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE89316" LE89116
		fi
		
		if [ "$CONFIG_RTK_VOIP_DRIVERS_SLIC_ZARLINK" == "y" ]; then
			choice  'Zarlink SLIC' \
				"LE88111 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88111\
				LE88221 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88221\
				LE88266 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88266\
				LE89116 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE89116\
				LE89316 CONFIG_RTK_VOIP_DRIVERS_SLIC_LE89316" LE89116
		fi
		
		if  [ "$CONFIG_RTK_VOIP_ETHERNET_DSP" == "y" ]; then
				if  [ "$CONFIG_RTK_VOIP_ETHERNET_DSP_IS_HOST" == "y" ]; then
					
					choice  'Number of DSP Device' \
						"1 CONFIG_RTK_VOIP_DSP_DEVICE_NUM_1\
						2 CONFIG_RTK_VOIP_DSP_DEVICE_NUM_2\
						3 CONFIG_RTK_VOIP_DSP_DEVICE_NUM_3\
						4 CONFIG_RTK_VOIP_DSP_DEVICE_NUM_4" 1

					choice  'Channel Number Per DSP Device' \
						"1 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_1\
						2 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_2\
						3 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_3\
						4 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_4\
						5 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_5\
						6 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_6\
						7 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_7\
						8 CONFIG_RTK_VOIP_CH_NUM_PER_DSP_8" 4

   			choice  'Number of SLIC(FXS)' \
				"1 CONFIG_RTK_VOIP_SLIC_NUM_1\
				2 CONFIG_RTK_VOIP_SLIC_NUM_2\
				3 CONFIG_RTK_VOIP_SLIC_NUM_3\
				4 CONFIG_RTK_VOIP_SLIC_NUM_4\
				5 CONFIG_RTK_VOIP_SLIC_NUM_5\
						6 CONFIG_RTK_VOIP_SLIC_NUM_6\
						7 CONFIG_RTK_VOIP_SLIC_NUM_7\
						8 CONFIG_RTK_VOIP_SLIC_NUM_8" 4

				elif  [ "$CONFIG_RTK_VOIP_ETHERNET_DSP_IS_DSP" == "y" ]; then

   					choice  'Number of SLIC(FXS)' \
						"1 CONFIG_RTK_VOIP_SLIC_NUM_1\
						2 CONFIG_RTK_VOIP_SLIC_NUM_2\
						3 CONFIG_RTK_VOIP_SLIC_NUM_3\
						4 CONFIG_RTK_VOIP_SLIC_NUM_4" 4
				fi
		else
			if [ "$CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88111" == "y" ]; then
				define_bool CONFIG_RTK_VOIP_DRIVERS_SLIC_LE88221 y
   				choice  'Number of SLIC(FXS)' \
					"1 CONFIG_RTK_VOIP_SLIC_NUM_1" 1
			else
   				choice  'Number of SLIC(FXS)' \
					"1 CONFIG_RTK_VOIP_SLIC_NUM_1\
					2 CONFIG_RTK_VOIP_SLIC_NUM_2\
					3 CONFIG_RTK_VOIP_SLIC_NUM_3\
					4 CONFIG_RTK_VOIP_SLIC_NUM_4\
					5 CONFIG_RTK_VOIP_SLIC_NUM_5\
					6 CONFIG_RTK_VOIP_SLIC_NUM_6\
					7 CONFIG_RTK_VOIP_SLIC_NUM_7\
					8 CONFIG_RTK_VOIP_SLIC_NUM_8" 2
			fi
			fi
		fi

   	comment 'DAA(FXO)'
	bool 'DAA Support' CONFIG_RTK_VOIP_DRIVERS_FXO
	if [ "$CONFIG_RTK_VOIP_DRIVERS_FXO" == "y" ]; then
		if [ "$CONFIG_RTK_VOIP_DRIVERS_IP_PHONE" == "n" ]; then
			choice 'DAA Type' \
			"Virtual_DAA CONFIG_RTK_VOIP_DRIVERS_VIRTUAL_DAA \
			DAA_SI3050 CONFIG_RTK_VOIP_DRIVERS_SI3050" Virtual_DAA
			
			if [ "$CONFIG_RTK_VOIP_DRIVERS_VIRTUAL_DAA" == "y" ]; then
				bool 'SUPPORT 2 RELAY' CONFIG_RTK_VOIP_DRIVERS_VIRTUAL_DAA_2_RELAY_SUPPORT
			fi
			
			if [ "$CONFIG_RTK_VOIP_DRIVERS_SI3050" == "y" ]; then
				define_bool CONFIG_RTK_VOIP_PULSE_DIAL_GEN_TIMER y
				choice  'Number of DAA(FXO)' \
					"1 CONFIG_RTK_VOIP_DAA_NUM_1\
					2 CONFIG_RTK_VOIP_DAA_NUM_2" 1
			fi
		elif [ "$CONFIG_RTK_VOIP_DRIVERS_IP_PHONE" == "y" ]; then
			comment '(DAA_SI3050) DAA Type'
			define_bool CONFIG_RTK_VOIP_DRIVERS_SI3050 y
			comment '(1)Number of DAA(FXO)'
			define_bool CONFIG_RTK_VOIP_DAA_NUM_1 y
		fi 
	fi
   
	if [ "$CONFIG_RTK_VOIP_DRIVERS_ATA_SLIC" == "y" ]; then
   		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM865xC" == "y" ]; then
			comment 'SLIC/DAA gpio pin selection'
			define_bool CONFIG_RTK_VOIP_GPIO_8651B n
			define_bool CONFIG_RTK_VOIP_GPIO_8186PV_V275 n
			define_bool CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI n
			define_bool CONFIG_RTK_VOIP_865xC_QOS y
			define_bool CONFIG_RTK_VOIP_WAN_VLAN y
   		choice	'EV_Board' \
   			"RTL8962_QA/Demo	CONFIG_RTK_VOIP_GPIO_8651C\
				RTL8962_V100 CONFIG_RTK_VOIP_GPIO_8962" 8962_V100

		if [ "$CONFIG_RTK_VOIP_GPIO_8962" == "y" ]; then
			bool 'WAN PORT 4' CONFIG_FIX_WAN_TO_4
		else
			define_bool CONFIG_FIX_WAN_TO_4 n
		fi

		elif [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651" == "y" ]; then
			comment 'SLIC/DAA gpio pin selection --> (8651B)EV_Board'
			define_bool CONFIG_RTK_VOIP_GPIO_8651B y
			define_bool CONFIG_RTK_VOIP_GPIO_8651C n
			define_bool CONFIG_RTK_VOIP_GPIO_8186PV_V275 n
			define_bool CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI n
		fi

		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8972B_FAMILY" == "y" ]; then
			comment 'SLIC/DAA gpio pin selection'
			define_bool CONFIG_RTK_VOIP_GPIO_8651B n
			define_bool CONFIG_RTK_VOIP_GPIO_8186PV_V275 n
			define_bool CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI n
			if [ "$CONFIG_RTL865X_LIGHT_ROMEDRV" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_865xC_QOS y
			fi
			define_bool CONFIG_RTK_VOIP_WAN_VLAN y
   		choice	'EV_Board' \
   			"RTL8982B_QA/Demo CONFIG_RTK_VOIP_GPIO_8982B_QA\
			RTL8972B_VoIP_V100 CONFIG_RTK_VOIP_GPIO_8972B" RTL8972B_VoIP_V100
		fi

   		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_GPIO_8651B n
			define_bool CONFIG_RTK_VOIP_GPIO_8651C n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2 n
			define_bool CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI n
   		comment 'SLIC/DAA gpio pin selection'
   		choice	'EV_Board' \
   			"8186PV_V275	CONFIG_RTK_VOIP_GPIO_8186PV_V275\
				8186V_ALL CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220" 8186V_ALL
		fi

   		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8671" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_GPIO_8651B n
			define_bool CONFIG_RTK_VOIP_GPIO_8651C n
			define_bool CONFIG_RTK_VOIP_GPIO_8186PV_V275 n
			define_bool CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220 n
			comment 'SLIC/DAA gpio pin selection'
			choice 'EV_Board' \
   				"QA_V1.1_V1.1.2.2	CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2\
   				V1.2				CONFIG_RTK_VOIP_GPIO_8671_V1_2\
     			V1.2_EMI			CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI" V1.2_EMI
     		choice 'Flash Size' \
     			"4M_FLASH_SIZE CONFIG_RTK_VOIP_4M_8M_LAYOUT\
     			2M_FLASH_SIZE CONFIG_RTK_VOIP_2M_8M_LAYOUT" 4M_FLASH_SIZE 
		fi

#		choice	'EV_Board' \
#   			"8186PV_V275			CONFIG_RTK_VOIP_GPIO_8186PV_V275\
#   			8186V_ALL				CONFIG_RTK_VOIP_GPIO_8186V_V100_V200_V210_C220\
#   			8651B					CONFIG_RTK_VOIP_GPIO_8651B\
#   			8651C					CONFIG_RTK_VOIP_GPIO_8651C\
#   			8671_QA_V1.1_V1.1.2.2	CONFIG_RTK_VOIP_GPIO_8671_QA_V1_1_V1_1_2_2\
#   			8671_V1.2				CONFIG_RTK_VOIP_GPIO_8671_V1_2\
#     		8671_V1.2_EMI			CONFIG_RTK_VOIP_GPIO_8671_V1_2_EMI" 8186V_ALL
	fi
   
	if [ "$CONFIG_RTK_VOIP_DRIVERS_IP_PHONE" == "y" ]; then
		comment 'IP Phone gpio pin selection'
		choice	'EV_Board' \
			"IPP_100	CONFIG_RTK_VOIP_GPIO_IPP_100\
			IPP_101		CONFIG_RTK_VOIP_GPIO_IPP_101\
			IPP_8972_V00	CONFIG_RTK_VOIP_GPIO_IPP_8972_V00\
			IPP_8972_V01	CONFIG_RTK_VOIP_GPIO_IPP_8972_V01\
			IPP_8952_V00	CONFIG_RTK_VOIP_GPIO_IPP_8952_V00\
			IPP_8972B_V00	CONFIG_RTK_VOIP_GPIO_IPP_8972B_V00\
			IPP_8972B_V99	CONFIG_RTK_VOIP_GPIO_IPP_8972B_V99" \
			IPP_101

		if [ "$CONFIG_RTK_VOIP_GPIO_IPP_8952_V00" == "y" ]; then
			define_bool	CONFIG_FIX_WAN_TO_4	y
		fi
		if [ "$CONFIG_RTK_VOIP_GPIO_IPP_8972_V00" == "y" ] || [ "$CONFIG_RTK_VOIP_GPIO_IPP_8972_V01" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_2M_8M_LAYOUT y
		fi
		if [ "$CONFIG_RTK_VOIP_GPIO_IPP_8972B_V00" == "y" ] || [ "$CONFIG_RTK_VOIP_GPIO_IPP_8972B_V99" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_865xC_QOS y
			define_bool CONFIG_RTK_VOIP_WAN_VLAN y
		fi
   	fi
   
	comment 'IVR'   	
	bool 'IVR Instructions' CONFIG_RTK_VOIP_IVR
	comment 'Codecs'
	bool 'G.729AB' CONFIG_RTK_VOIP_G729AB
	bool 'G.723.1' CONFIG_RTK_VOIP_G7231
        
	if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651BV_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8651CVA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8671VA_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8981B_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8982B_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8984B_" == "y" ]; then
		define_bool CONFIG_RTK_VOIP_G722 n
		define_bool CONFIG_RTK_VOIP_G726 n
		define_bool CONFIG_RTK_VOIP_GSMFR n
		define_bool CONFIG_RTK_VOIP_ILBC n
	else
		if [ "$CONFIG_VOIP_SDK" == "y" ]; then
			define_bool CONFIG_RTK_VOIP_AMR_NB n
			define_bool CONFIG_RTK_VOIP_SPEEX_NB n
		else
			bool 'AMR-NB' CONFIG_RTK_VOIP_AMR_NB
			bool 'SPEEX-NB' CONFIG_RTK_VOIP_SPEEX_NB
		fi
		bool 'G.726' CONFIG_RTK_VOIP_G726
		bool 'G.722' CONFIG_RTK_VOIP_G722
		bool 'GSM-FR (GSM 06.10)' CONFIG_RTK_VOIP_GSMFR
		bool 'iLBC' CONFIG_RTK_VOIP_ILBC
	fi

		bool 'T.38 (FAX)' CONFIG_RTK_VOIP_T38

	fi

	define_bool CONFIG_RTK_VOIP_SILENCE y

	if [ "$CONFIG_RTK_VOIP_PACKAGE_8186" == "y" ]; then
		# enable SQUASHFS
		if [ "$CONFIG_SQUASHFS" == "y" ]; then
		define_bool CONFIG_RTK_MTD_ROOT y
		fi
		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM865xC" == "y" ]; then
		# enable light rome driver for QOS
		define_bool CONFIG_RTL865X_LIGHT_ROMEDRV y
		# enable CLE for debug
		if [ "$CONFIG_VOIP_SDK" == "y" ]; then
		define_bool CONFIG_RTL865X_CLE n
		else
		define_bool CONFIG_RTL865X_CLE y
		fi
		fi
	fi

	if [ "$CONFIG_RTL865X_LIGHT_ROMEDRV" == "y" ]; then
	comment 'Port Link'
	bool 'Port Link Monitor' CONFIG_RTK_VOIP_PORT_LINK
	if [ "$CONFIG_RTK_VOIP_PORT_LINK" == "y" ]; then
		if [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186V_" == "y" ] || [ "$CONFIG_RTK_VOIP_DRIVERS_PCM8186VA_" == "y" ]; then
			choice  'Monitor Mode' \
			"8306_Interrupt CONFIG_RTK_VOIP_PORT_LINK_8306_INTERRUPT\
			Polling_Mode CONFIG_RTK_VOIP_PORT_LINK_POLLING_MODE" 8306_Interrupt
			if [ "$CONFIG_RTK_VOIP_PORT_LINK_POLLING_MODE" == "y" ]; then
				int '(Sec) POLLING_MODE_TIME' CONFIG_RTK_VOIP_PORT_LINK_POLLING_TIME 5
			fi
		fi
	fi
	fi

endmenu