This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDX5535EZDSP: Audio Pre-Processing: Getting noisy sound output

Part Number: TMDX5535EZDSP

Hi,

I have configured Audio Pre-processing project for 2 Mics from CMB. I have used the software patches from C5517_TIDEP-0077_VoiceProcessing_patch2.

I have also kept a continuous watch expression on buf_Outptr,buf_Outptr2 and inFramePtr.

I am getting random values in inFramePtr, and the sound output via audio out headphones is noisy.

I am attaching a file containing the samples from inFramePtr.

-11670
3949
-660
-976
-3060
2557
9881
-21746
-21014
-1051
1432
128
14763
4475
-2964
22497
-15549
2720
-18104
-32768
-6748
2325
13693
-23431
19706
-6450
5235
3543
-32768
16360
-8640
-3657
3392
12482
19627
-26930
-21552
-18430
-13827
13172
-6178
10311
-1948
265
7785
-696
13150
29612
10409
-8690
-19656
31574
-23226
32187
-11685
-6225
-32768
5129
-21727
-15375
5230
-8590
19188
-16050
11069
-19647
20973
-32738
-32768
-8116
-21939
-1049
16700
-6384
32767
-15901
-1017
-13788
12508
-32768
-3255
13380
3796
-5903
-5150
2751
9309
11931
19036
-22753
-32768
22094
22139
1363
32767
32767
23255
-5635
17992
29047
4972
13663
8370
-7213
2027
-11515
27917
-23236
16635
21003
-11385
1529
-4476
-2775
-3702
-5708
780
17665
-1951
-5519
4662
-24018
-18174
-5236
27112
-15986
4628
-13299
-11376
-5993
-18894
-32768
-25187
30974
-8083
32767
11704
-7147
7423
6390
-12842
3984
22360
-25701
-6411
-22917
19090
4907
-15026
26744
32767
32767
-19419
19934
32767
15790
-10748
-15901
-24099
-23076
22378
17033
-16451
32767
26227
-21777
29022
-32768
-7610
15692
-11905
5382
23180
1883
-20377
26188
-870
-14755
-4370
-32768
32767
14873
-8088
22769
-317
30933
-28844
-10579
-4990
-7445
-2425
14913
12414
9514
-9361
-25080
-16667
2676
-114
-11363
-25900
-32768
-574
-32768
-32768
9390
23528
20143
24426
-32768
16034
28726
15227
-28270
5861
-9717
-5578
31221
20982
-19709
11511
4971
2977
-32768
15279
28684
-12328
-15619
-20533
-11398
-13093
-32768
-32768
6983
-32768
28665
-23151
3153
-6286
-5543
-32768
-32768
23091
-4614
-26306
12713
32767
17451
7979
10539
3289
-7561
-16225
-29779
4972
20438
-9011
7834
27753
10169
1107
8119
-16937
19964
9240
878
-32768
-15987
-24924
24422
-3491
3113
-11794
-3894
-19069
-7729
32767
-19956
29331
13432
-7225
11415
3164
-16308
24979
16077
-29113
9330
3397
26894
8128
-9166
-32768
10942
3876
21344
-12641
21082
18617
-16384
5094
6195
-32768
-8957
-22195
32767
-32768
32767
14881
18697
11157
7007
-20914
10861
-17364
-12673
4477
15444
12442
795
-11748
-17185
32767
-634
-22674
17202
-5663
3981
-32768
9788
1671
-29443
-26053
-23934
-13290
-32768
6373
-21248
-8717
15688
32767
4572
-21928
1097
-23848
16294
10972
12393
7291
-17915
-24247
5334
-4259
-32768
-14090
18469
22347
32767
998
15872
5474
-11052
-30823
-6288
-3165
-5602
-3660
2804
-25636
32767
-5540
7264
30051
11431
-32768
20116
27052
11253
-17475
-17323
18595
32767
3763
-32768
3699
1045
-12590
-14122
-24634
-2171
-19566
10983
-10676
-29972
-1672
-9267
5910
26318
7095
12523
32767
-23814
-3900
16332
-913
1622
-5600
13596
-8399
22739
32767
5065
17155
-5774
17268
25962
-15939
3425
9778
32767
32767
3688
-32768
16760
29415
8029
1425
-32768
-2660
32767
-23882
-930
3848
238
-209
2224
32767
12410
-22737
11236
-11016
-30006
17368
-13488
10635
-18822
4789
3968
-919
28740
-20017
-32768
11261
7341
16133
9149
-6636
11200
-11750
18758
5677
-32768
-1774
12084
-21483
28589
-32768
32767
630
-20059
1848
-22579
-29983
15902
-8840
8167
2844
-5460
17444
23004
18485
-19928
32767
27499
7596
32767
7639
30191
-10952
-32768
28667
-27877
-32768
32767
-2543
-24095
-26121
20503
-32768
745
-8994
1721
-22590
-22321
9427
6199
15075
-22447
19008
-32768
19998
29926
2948
-32768
32767
17395
-11831
-3197
-7279
31699
27723
-14692
14977
-32768
380
-11399
-359
-26328
31666
-2720
-15355
26724
22418
-5016
-14546
-15339
-5850
3875
22868
7979
30650
-32768
-31315
-14038
-17279
5022
23663
-6381
3946
12846
2451
7551
0
-12815
5857
13882
-8831
-8586
-11761
-24131
7926
20813
-32768
1793
29203
3558
4098
10451
-1994
6026
25097
32767
-1820
-32768
3682
-23655
-9528
32767
-13688
7476
-1600
32767
-32768
10486
32767
-7364
-1298
6208
-32768
-32768
-28426
1894
28628
-9268
-8160
-24290
-30237
11096
-17453
-26840
15207
2610
-17123
-13531
-3511
32458
702
1256
-32768
32767
-30690
27015
-16527
-5570
-23362
-11325
32767
21584
-6686
32767
-23011
23001
13641
14087
-26144
9209
7688
674
3955
-12492
-12921
1114
-32768
-15065
-32768
32767
32767
28382
-6905
2627
-20787
-23391
26331
-11253
22307
6215
24766
32164
32767
32767
14518
-5898
30645
13816
901
1398
-8317
-20840
-3986
1918
9457
11481
21306
10621
9951
-5292
-14786
-25617
-7664
4602
-1771
-27369
-6944
-20786
-16156
-4717
-28324
11172
-21816
1931
30559
-32768
-16672
-23786
2154
25521
15872
-4312
-29367
9645
21921
-389
-6438
9071
15447
14894
-10117
-19476
30322
-27540
-32768
-16157
14690
-4993
18044
-18718
-17785
-5361
-796
6240
-21394
-25616
-9373
-2223
-4957
-9623
32767
11724
-4647
4111
4748
-8264
652
-20829
-30164
-16016
9440
-28269
32767
-10028
8440
32767
-25250
-15238
-7151
3595
11154
-22748
6934
-31268
-28724
-26897
-3558
529
12688
7715
32767
-844
22185
-11107
20803
-10871
6974
8668
-11193
-32768
2869
32397
20670
2855
32767
-32768
9887
-3517
-25442
32767
-15895
8109
-15822
-20226
32767
32767
-12657
8383
6514
-32768
-373
32767
6385
-10917
1637
-32768
12330
-13195
24384
-2879
-7522
-12838
-5323
-6042
13034
16269
-24839
-15307
12337
-7659
-32768
5707
-2140
-9021
-90
32767
-14483
32767
-31679
-14297
15157
-25360
-32768
32767
237
20011
-1543
6128
-3847
5997
3127
3216
-8518
11290
-2305
-26908
-27433
22697
2947
5290
-5594
25191
-13013
752
-24790
-30937
-9547
-21206
29789
-32768
6583
-32768
-13375
9927
-25393
-8816
-19421
6974
25170
9330
26512
-10571
25722
20593
38
-3430
17417
-8649
-9488
21469
10350
8250
31176
-28204
14389
-4937
14409
32751
-1422
-26765
11972
-20935
-19774
16146
-11099
-10766
4546
19676
20933
26522
2808
23223
18230
-13509
-7793
22107
10842
-12214
16726
-27194
-20785
-30821
-3517
5661
1136
32767
-10842
-24382
-28378
-15901
32767
10287
8483
3030
32767
2268
-1739
2254
-1024
29296
23104
1852
-29738
-32768
32764
32767
-24876
-24056
-25640
25309
29496
-78
30167
3253
-20
-29441
17780
-9416
32108
-1746
1307
-1581
31296
-12494
9961
2728
18382
-20908
29149
577
19333
-1551
-18016
13823
20864
6353
-5438
-8034
5000
-13698
-5529
-16384
-29542
-851
-15152
-32768
25004
-20244
4690
14371
13194
-2963
24498
-16812
0
23364
11313
-1030
1526
-10181
14876
-28594
-17983
3
20618
19090
29274
0
6100
-2023
-26977
-12394
-32768
3953
28912
-16348
5414
8
32767
-11368
-31554
-16
-28536
-32768
24573
-32766
-27648
0
25502
-30230
5646
21573
23148
-29692
13926
-19859
-1171
-32768
-27204
-7742
-21212
1188
-20675
7594
29172
-10528
-27827
-28903
9059
-32768
0
5208
26272
-14223
18174
18186
7009
10054
-32768
7669
-5116
10182
26265
4197
13039
16016
-14824
27688
4718
-22732
21103
2780
-32416
-20477
-974
-25002
-18395
4460
-26624
-25359
0
-27391
3276
-7408
59
22624
-21345
-20997
8680
26758
0
24934
12106
-3606
-16285
-64
-4247
15765
-32768
10475
32767
-29336
-7390
16467
-12951
-20506
31712
-21355
-26485
-15773
-3737
-12996
31255
4759
31189
-28971
21055
-15793
-4730
0
-10734
-2
-28689
-32768
10402
-31655
15928
14313
-19136
20398
-19595
-32768
-2602
32767
-32768
3252
-10711
3584
8236
-24974
17057
-7313
-4522
1
7218
637
16040
-12592
-30880
32767
23464
-32768
1490
32767
25362
-16827
25801
-32768
29792
21239
20380
-8372
20513
32767
12997
17093
-32768
-19904
-11325
32767
4480
24049
-3174
-5
0
-14677
-32768
8691
4908
-10410
6471
-3962
25800
8140
17440
-6070
28530
-25777
256
19077
24025
-14611
-4300
-17728
-17020
20480
-3216
4872
6959
28467
-9785
-24683
-8535
-2616
-18670
-12416
13246
-436
15744
3963
-11041
3822
-27899
0
32463
32767
-3932
-20864
30478
8837
-18037
25611
-26263
-14267
25035
-9271
-23461
26768
-32768
-15359
-32768
-30043
26175
2780
-9008
-21288
0
-26799
-16721
16105
6015
-10687
5127
-32768
25034
23279
4659
-10631
-12676
27113
2257
32767
-20814
32767
32767
3037
-6909
2868
18484
-27734
-27038
-20193
6823
-8796
27640
30707
32767
10492
11086
-32768
7133
-1386
-28137
16222
15391
-12993
-6532
-9253
7878
3257
0
708
-24159
28267
-2348
-20380
13684
9275
7551
-10880
10390
90
-25910
-9172
-24345
4136
-28992
-9947
22276
28270
2938
-32768
0
-32768
0
25361
-8581
32767
-11540
-21411
-12851
690
-13415
-7064
10181
628
-250
26918
-30061
-32768
32230
-17925
25
1502
-26841
21064
32767
-19042
13401
-15836
-17664
-29240
24512
-7789
14060
-13648
-28161
23448
-11159
2038
-2220
2337
-23
27296
-15120
24399
0
-19764
23551
32767
20031
20972
-9454
-22072
-8449
21282
-26627
2286
-5175
-5472
-29136
83
-29963
1938
21471
4641
-22832
158
24436
11916
-31586
19384
-12035
16861
32767
-30705
7981
-32768
16744
7897
-14796
9216
18765
27184
-2686
18329
24576
-128
-29253
-10784
3729
-8778
-15598
-3848
-3979
-6608
-32540
-21897
-6380
16730
28482
18088
-32768
-7731
-20033
-14017
21395
15410
18509
14495
-9631
12432
-3716
25389
-31789
-13670
-24158
34
6376
13
-22528
-32768
-2
3506
-32768
-2
-23424
3225
-26720
-2
-16392
8854
-32768
-10936
30432
-8585
-10922
7371
-12164
-1
18329
4847
-15
-32768
-18725
15586
-25554
-18546
2350
-7748
15211
22573
-18670
-11197
0
-27220
-32768
-20311
16448
-6113
14968
14940
12020
32767
-19837
-11289
-4432
197
17719
-8
19652
29590
-12560
-4678
-32768
-20410
0
-32768
6254
2142
-7590
32767
13330
24235
5878
-19437
-5120
0
-2
-26112
24370
497
12523
-4638
-26625
10618
-13440
-32768
19043
24428
-56
13854
-12031
-14046
-22632
-15476
-16755
0
-1770
-32768
28622
8192
-16534
5451
4523
5531
-22480
31591
-16098
32767
0
10694
32767
-4597
12713
-2107
-32768
32552
-8406
-21845
32767
32767
-25661
-9890
15816
15106
-826
29407
-3392
32767
10261
-19032
32767
-32768
-32768
26353
-15241
-25471
29892
-28037
10608
-7761
-20261
780
-13106
32767
-17827
-5668
32767
-16740
14722
23761
-4554
9984
-27946
-32768
-29064
14352
-12738
-10635
-32768
29205
5899
32767
1537
-32768
-32768
-24899
19233
-5817
-403
3309
2293
-9031
27560
2863
-24538
32767
7679
-19071
-7836
6331
25334
-5552
23771
6744
-17045
-29066
15277
-14485
32767
-23721
-13133
-23659
10695
5191
6188
-8642
32767
-30607
8719
8844
-14844
13282
-2639
10043
32767
13590
8537
-18710
5532
18152
-4919
-32768
-10896
17265
2225
15409
-1742
32767
27906
-3747
-8444
32767
19972
-14744
-9146
-8519
13691
22615
32767
31457
21983
-7121
7829
-2654
12748
-15421
5005
3470
-22070
-18679
17270
-8198
32767
1652
-24504
-6182
-32768
5152
-15229
-3772
-15180
32767
-12209
32767
4595
29794
1019
-25728
18294
14020
2251
32767
-4447
-28869
-7355
32767
-30854
-17171
32767
-6238
-27767
32767
2839
8625
3137
-14440
17260
-1603
13219
-10038
-14903
2641
-7149
1144
7987
-6949
-32768
5263
-24096
14767
-32768
13206
-15858
2918
18385
-31512
-10233
-392
-16928
29194
5709
4557
-6215
-16297
-19479
11198
3216
32767
-9605
10061
-32768
23514
-10736
3173
-22203
23457
-16466
4285
6225
28878
-8885
-229
-2479
-29100
10844
-1159
-23495
-1283
7159
-1713
-5907
-9789
-6525
-21383
12807
16169
-18185
5850
-2483
-3407
-16811
32767
-32768
23213
-31309
-26968
-21056
-32768
-30942
2937
31817
-28088
-29978
12764
-6871
-32154
32767
-8420
7123
-8151
-2375
-12538
-32768
-1211
-26917
27851
-5936
1275
-5526
32767
-32768
-28426
18006
495
6499
-11319
-24902
6163
-23525
-5238
-29847
2200
12730
-9531
-32768
10276
-32768
-32768
9222
-2214
13245
3368
1735
2556
-26052
18852
-12844
-7607
-1480
-16881

Kindly help in solving the sound issue.

  • I've forwarded this to the c55x SW experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Kindly provide response, and solution .
  • Abhinandan,

    Its difficult to say why you are having noisy audio output. It could be a number of factors that could be causing this issue:

    - Incorrect wiring
    - Incorrect DMA config
    - Incorrect sampling rates
    - Incorrect clock settings

    You may want to re-check your system settings since you have modified your code from the original example.

    Lali
  • Lali,
    I have not modified the code.
    The code already has macros to set the number of Mics to use. I have set it to 2. So accordingly all configuration is taken care in the program itself.
    I think it has something to do with codec. Since c5517 has 2 codecs connected to i2s0 and i2s2 It might work with one acting as input and another acting as output to headphones.
    But c5535 has only 1 codec connected to i2s2 . So doing input processing and sending output to the headphones using same codec i2s2 line might be causing the noise issue due to mixing.

    Is my analysis correct?
  • Abhinandan,

    The C5535 ezdsp has one codec connected to I2S2 for the headphones.

    The CMB has 2 x PCM1864's to handle the audio from the microphones on the CMB. So, I don't think you are using the same codec to do input and output on the ezdsp. Please also check your wiring to ensure that there aren't any loose connections especially on the edge connector.

    Lali

  • Lali,
    I checked for any possible loose connection. There isnt any.
    Also I did a loopback which disables the bf, drc and other processing. Even with loopback I am getting noise.

    In previous reply you mentioned I2S2 is connected to headphone output via codec (codec acts only as output). I agree with that.

    I have doubt how I2S2 is used for input and output. In 2 Mic configuration, Mics 1 & 2 output is fed to the DSP via I2S2. And same I2S2 is being used for headphone output via codec. So as a result we are using I2S2 for Input and output. Does this has any effect on noise being generated?