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.

Audio Noise on Blaze

Other Parts Discussed in Thread: TWL6040

Hi,

When recording audio on Blaze I noted that there is a suspicious device noise in the data. See below for the spectral details of noise:

Is it a known issue? I am using a pre-built android binary and I am using the Sound Recorder App.

Thanks,

Alireza

  • Hi Alireza,

    Can you provide the version of prebuild binaries you are using to try?, because I haven't see any noise on Blaze. Thank you.

  • Hi Israel,

    I am using prebuilt version of 4AI.1.7. I have attached the recorded .wav file. When recording the room was completely silent so I believe7026.BlazeNoiseLeft.wav this is the electronic noise introduced by the device.

  • I think this is harmonic distortion from above picture.

    So you need to check with sine wave by reference signal during voice recording.

    And then please attach the picture of time domain not frequency domain by x axis.

    IMO, the result is that sine wave has some distortion not pure.

    So please adjust input gains like twl6040 gain & ABE gains by tinymix.

     

    Thanks,

  • Well, There is no actual input. i.e. when recording I made sure that the room is completely silent. I am pretty sure this is generated by device itself.

  • Ok!

    If so, can i see all the gain parameters of ABE & TWL6040 using tinyalsa tool ?

     

    Thanks,

     

  • Sure. Here  is the output of my tinymix:

    ctl    type    num    name                                     value
    0    ENUM    1    DL1 Equalizer                            Flat response
    1    ENUM    1    DL2 Left Equalizer                       Flat response
    2    ENUM    1    DL2 Right Equalizer                      Flat response
    3    ENUM    1    Sidetone Equalizer                       Flat response
    4    ENUM    1    AMIC Equalizer                           High-pass 0dB
    5    ENUM    1    DMIC Equalizer                           High-pass 0dB
    6    INT    1    DL1 Media Playback Volume                118
    7    INT    1    DL1 Tones Playback Volume                0
    8    INT    1    DL1 Voice Playback Volume                120
    9    INT    1    DL1 Capture Playback Volume              0
    10    INT    1    VXREC Media Volume                       0
    11    INT    1    VXREC Tones Volume                       0
    12    INT    1    VXREC Voice DL Volume                    0
    13    INT    1    VXREC Voice UL Volume                    0
    14    INT    1    AUDUL Media Volume                       0
    15    INT    1    AUDUL Tones Volume                       0
    16    INT    1    AUDUL Voice UL Volume                    120
    17    INT    1    AUDUL Voice DL Volume                    0
    18    INT    1    SDT UL Volume                            0
    19    INT    1    SDT DL Volume                            0
    20    INT    2    DMIC1 UL Volume                          0 0
    21    INT    2    DMIC2 UL Volume                          0 0
    22    INT    2    DMIC3 UL Volume                          0 0
    23    INT    2    AMIC UL Volume                           120 120
    24    INT    2    BT UL Volume                             0 0
    25    BOOL    1    DL1 Mono Mixer                           Off
    26    BOOL    1    AUDUL Mono Mixer                         Off
    27    BOOL    1    DL1 MM_EXT Switch                        Off
    28    BOOL    1    DL1 BT_VX Switch                         Off
    29    BOOL    1    DL1 PDM_DL2 Switch                       On
    30    BOOL    1    DL1 PDM Switch                           Off
    31    BOOL    1    Sidetone Mixer Capture                   Off
    32    BOOL    1    Sidetone Mixer Playback                  On
    33    BOOL    1    Capture Mixer Tones                      Off
    34    BOOL    1    Capture Mixer Voice Playback             Off
    35    BOOL    1    Capture Mixer Voice Capture              Off
    36    BOOL    1    Capture Mixer Media Playback             Off
    37    BOOL    1    Voice Capture Mixer Tones Playback       Off
    38    BOOL    1    Voice Capture Mixer Media Playback       Off
    39    BOOL    1    Voice Capture Mixer Capture              Off
    40    BOOL    1    DL1 Mixer Tones                          Off
    41    BOOL    1    DL1 Mixer Voice                          Off
    42    BOOL    1    DL1 Mixer Capture                        Off
    43    BOOL    1    DL1 Mixer Multimedia                     On
    44    ENUM    1    MUX_VX1                                  None
    45    ENUM    1    MUX_VX0                                  None
    46    ENUM    1    MUX_UL11                                 AMic0
    47    ENUM    1    MUX_UL10                                 AMic0
    48    ENUM    1    MUX_UL07                                 None
    49    ENUM    1    MUX_UL06                                 None
    50    ENUM    1    MUX_UL05                                 None
    51    ENUM    1    MUX_UL04                                 None
    52    ENUM    1    MUX_UL03                                 None
    53    ENUM    1    MUX_UL02                                 None
    54    ENUM    1    MUX_UL01                                 None
    55    ENUM    1    MUX_UL00                                 None
    56    INT    2    Capture Preamplifier Volume              1 1
    57    INT    2    Capture Volume                           4 4
    58    INT    2    Aux FM Volume                            0 0
    59    INT    2    Headset Playback Volume                  15 15
    60    INT    2    Handsfree Playback Volume                26 26
    61    INT    1    Earphone Playback Volume                 0
    62    ENUM    1    Headset Power Mode                       Low-Power
    63    BOOL    1    Earphone Playback Switch                 Off
    64    BOOL    1    Aux Right Playback Switch                Off
    65    BOOL    1    Aux Left Playback Switch                 Off
    66    ENUM    1    Headset Right Playback                   Off
    67    ENUM    1    Headset Left Playback                    Off
    68    ENUM    1    Handsfree Right Playback                 Off
    69    ENUM    1    Handsfree Left Playback                  Off
    70    ENUM    1    Analog Right Capture Route               Off
    71    ENUM    1    Analog Left Capture Route                Off
    72    ENUM    1    TWL6040 Power Mode                       Low-Power

  • The values of all the parameters for ABE & twl6040 seem to be fine except for "Analog Left/Right Capture Route".

    Are these values on recording ? 

    As you know, "Analog Left/Right Capture Route" should be one of the 3 states(Aux/FM Left, Main Mic, Headset Mic) during recording.

     

    How about headset plugged while recording ?

     

  • Alireza,

    Try getting the log when the application is recording because when the application stops it change the path and turns off the twl6040 codec. For the log you shared it is off.

  • Hi Ice,

    Here is the output of tinymix when the sound recorder app is running and recording:

    ctl    type    num    name                                     value
    0    ENUM    1    DL1 Equalizer                            Flat response
    1    ENUM    1    DL2 Left Equalizer                       Flat response
    2    ENUM    1    DL2 Right Equalizer                      Flat response
    3    ENUM    1    Sidetone Equalizer                       Flat response
    4    ENUM    1    AMIC Equalizer                           High-pass 0dB
    5    ENUM    1    DMIC Equalizer                           High-pass 0dB
    6    INT    1    DL1 Media Playback Volume                118
    7    INT    1    DL1 Tones Playback Volume                0
    8    INT    1    DL1 Voice Playback Volume                120
    9    INT    1    DL1 Capture Playback Volume              0
    10    INT    1    VXREC Media Volume                       0
    11    INT    1    VXREC Tones Volume                       0
    12    INT    1    VXREC Voice DL Volume                    0
    13    INT    1    VXREC Voice UL Volume                    0
    14    INT    1    AUDUL Media Volume                       0
    15    INT    1    AUDUL Tones Volume                       0
    16    INT    1    AUDUL Voice UL Volume                    120
    17    INT    1    AUDUL Voice DL Volume                    0
    18    INT    1    SDT UL Volume                            101
    19    INT    1    SDT DL Volume                            120
    20    INT    2    DMIC1 UL Volume                          120 120
    21    INT    2    DMIC2 UL Volume                          120 120
    22    INT    2    DMIC3 UL Volume                          120 120
    23    INT    2    AMIC UL Volume                           135 135
    24    INT    2    BT UL Volume                             126 126
    25    BOOL    1    DL1 Mono Mixer                           Off
    26    BOOL    1    AUDUL Mono Mixer                         Off
    27    BOOL    1    DL1 MM_EXT Switch                        Off
    28    BOOL    1    DL1 BT_VX Switch                         Off
    29    BOOL    1    DL1 PDM_DL2 Switch                       On
    30    BOOL    1    DL1 PDM Switch                           Off
    31    BOOL    1    Sidetone Mixer Capture                   Off
    32    BOOL    1    Sidetone Mixer Playback                  On
    33    BOOL    1    Capture Mixer Tones                      Off
    34    BOOL    1    Capture Mixer Voice Playback             Off
    35    BOOL    1    Capture Mixer Voice Capture              Off
    36    BOOL    1    Capture Mixer Media Playback             Off
    37    BOOL    1    Voice Capture Mixer Tones Playback       Off
    38    BOOL    1    Voice Capture Mixer Media Playback       Off
    39    BOOL    1    Voice Capture Mixer Capture              Off
    40    BOOL    1    DL1 Mixer Tones                          Off
    41    BOOL    1    DL1 Mixer Voice                          Off
    42    BOOL    1    DL1 Mixer Capture                        Off
    43    BOOL    1    DL1 Mixer Multimedia                     On
    44    ENUM    1    MUX_VX1                                  None
    45    ENUM    1    MUX_VX0                                  None
    46    ENUM    1    MUX_UL11                                 AMic0
    47    ENUM    1    MUX_UL10                                 AMic0
    48    ENUM    1    MUX_UL07                                 None
    49    ENUM    1    MUX_UL06                                 None
    50    ENUM    1    MUX_UL05                                 None
    51    ENUM    1    MUX_UL04                                 None
    52    ENUM    1    MUX_UL03                                 None
    53    ENUM    1    MUX_UL02                                 None
    54    ENUM    1    MUX_UL01                                 None
    55    ENUM    1    MUX_UL00                                 None
    56    INT    2    Capture Preamplifier Volume              1 1
    57    INT    2    Capture Volume                           4 4
    58    INT    2    Aux FM Volume                            3 3
    59    INT    2    Headset Playback Volume                  15 15
    60    INT    2    Handsfree Playback Volume                26 26
    61    INT    1    Earphone Playback Volume                 14
    62    ENUM    1    Headset Power Mode                       Low-Power
    63    BOOL    1    Earphone Playback Switch                 Off
    64    BOOL    1    Aux Right Playback Switch                Off
    65    BOOL    1    Aux Left Playback Switch                 Off
    66    ENUM    1    Headset Right Playback                   Off
    67    ENUM    1    Headset Left Playback                    Off
    68    ENUM    1    Handsfree Right Playback                 Off
    69    ENUM    1    Handsfree Left Playback                  Off
    70    ENUM    1    Analog Right Capture Route               Off
    71    ENUM    1    Analog Left Capture Route                Main Mic
    72    ENUM    1    TWL6040 Power Mode                       Low-Power

  • I have one new finding. This noise is not present if I record using headset microphone. When I look at the diff of tinymix out (between two recording) this is what I see:

    Main Mic:

    29    BOOL    1    DL1 PDM_DL2 Switch                       Off
    30    BOOL    1    DL1 PDM Switch                           On

    71    ENUM    1    Analog Left Capture Route                Headset Mic

    Headset Mic:

    29    BOOL    1    DL1 PDM_DL2 Switch                       On
    30    BOOL    1    DL1 PDM Switch                           Off

    71    ENUM    1    Analog Left Capture Route                Main Mic

    I am not sure what 29 and 30 refer to ... could this be the root of issue. Any help is much appreciated!

  • It's normal state, becasue of DL1 ON in headset mode and DL2 ON in speaker mode(using builtin mic).

    But could you please turn AMIC gain down to 120 or 120 below while using Main Mic ?

    And then update the result on this.

    I think Main mic is much more sensitive, so it seems signals have some distortion.

    Anyway please check it and then let me know the result.

    Thanks,

  • Hi Alireza,

    Richard is right, you are using too big gain for that mic, even when ABE can give you more gain doesn't mean that you have to use it, you might be close to saturation due to environment noise (for minimum that it could be). Big gain is only needed in cases when you have other kind of mics that are less sensitive.

    Also you can play with gains at TWL6040 chip to reduce possible electrical noise, just check the controls: Capture Preamplifier Volume and Capture Volume.