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.

numid=29,iface=MIXER,name='Analog Left AUXL Capture Switch'……which entry controls the switch of MIC?

Other Parts Discussed in Thread: DM3730

In DM3730,my mic could not work.Who can tell me the switch and volume of the DM3730 MIC?

numid=20,iface=MIXER,name='AVADC Clock Priority'
numid=19,iface=MIXER,name='Analog Capture Volume'
numid=29,iface=MIXER,name='Analog Left AUXL Capture Switch'
numid=30,iface=MIXER,name='Analog Left Carkit Mic Capture Switch'
numid=28,iface=MIXER,name='Analog Left Headset Mic Capture Switch'
numid=27,iface=MIXER,name='Analog Left Main Mic Capture Switch'
numid=26,iface=MIXER,name='Analog Right AUXR Capture Switch'
numid=25,iface=MIXER,name='Analog Right Sub Mic Capture Switch'
numid=15,iface=MIXER,name='Carkit Playback Volume'
numid=43,iface=MIXER,name='CarkitL Mixer AudioL1'
numid=44,iface=MIXER,name='CarkitL Mixer AudioL2'
numid=42,iface=MIXER,name='CarkitL Mixer Voice'
numid=40,iface=MIXER,name='CarkitR Mixer AudioR1'
numid=41,iface=MIXER,name='CarkitR Mixer AudioR2'

  • Hi QingboGuo,

    It seems that you have a hardware issue with the microphone. The dvsdk microphone support is tested and it works properly.

    BR

    Tsvetolin Shulev

  • Hi Cvetolin Shulev-XID,

    1 The MIC can work properly in PC,but the board I used dosen't from TI,but from the third party.

    2 The MIC can work in my board now but the sound is too low though I set the 'Analog Capture Volume'  and the playback items with the largest volume.

    Could you give me some advice? 

  • hello, I have the audio capture problem with my board(beagleboard-xm, revC), Ican play a wav using aplay, but when I record, there is noting but noise, I don't know if there is something wrong with my ALSA controls, can you show me your controls?

     

    PS: I built DVSDK on my board, linux-2.6.32

     

    Thank you!

  • Hello pp zhao,

    If you use the MIC audio input in your board and the develop software kit is dvsdk-4.02, I suggest you opening  the mic bias in the driver file sound/soc/codec/twl4030.c.Then it may work normally!

    BR

    QingboGuo

  • the version of DVSDK is 4_01_00_09.  Do I need to modify the twl4030.c? I am  new with linux, and thank you for your reply.

  • Hi pp zhao,

    To tell the trueth,I think it all needs to be changed no matter which version it is,because the original version just support linein but not MIC.

    0x00, /* REG_MICBIAS_CTL (0x4) */  修改为0x01, /* REG_MICBIAS_CTL (0x4) */

    then it may be OK!

    BR 

    QingboGuo

  • Hi QingboGuo:

           I know little about the kernel building, do you mean I modify the driver file and build the kernel again?

    Thank you !

  • Hi pp zhao,

           Yes,exactly! I met the same problem a few days ago and resolved it by this way!

    BR

    QingboGuo

  • Hi qq zhao,

    And I have to notice that you must make you MIC enable before modify the driver file,if not ,It may doesn't work yet.

    Please browse the circuit diagram to see which MIC channel you are used!

    BR 

    QingboGuo

  • Hi QingboGuo

        can I only build the sound part, and add it to the kernel module?

        The DVSDK system  I used is from the SF, and run its script which make it OK.

     

    Thank you for your reply!

  • Hello pp zhao,

    As far as I know, the sound part was builded in the kernel,so you can't only build it.Maybe it could, but I didn't have a try!

    If you just modified a file ,you just use the command "make linux" in dvsdk root directory, It will complete quickly! 

    BR

    QingboGuo

  • Hi QingboGuo:

    Thanks to your advices, now I can capture audio using arecord from alsa-utils, but the voice is very low and there is many noise when I play the capture audio, can you give me some advices?

    numid=19,iface=MIXER,name='Analog Capture Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=5,step=0
      : values=3,3
      | dBscale-min=0.00dB,step=6.00dB,mute=0
    numid=28,iface=MIXER,name='Analog Left AUXL Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=29,iface=MIXER,name='Analog Left Carkit Mic Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=27,iface=MIXER,name='Analog Left Headset Mic Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=26,iface=MIXER,name='Analog Left Main Mic Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=25,iface=MIXER,name='Analog Right AUXR Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=24,iface=MIXER,name='Analog Right Sub Mic Capture Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=15,iface=MIXER,name='Carkit Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
      : values=0,0
      | dBscale-min=-12.00dB,step=6.00dB,mute=1
    numid=42,iface=MIXER,name='CarkitL Mixer AudioL1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=43,iface=MIXER,name='CarkitL Mixer AudioL2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=41,iface=MIXER,name='CarkitL Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=39,iface=MIXER,name='CarkitR Mixer AudioR1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=40,iface=MIXER,name='CarkitR Mixer AudioR2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=38,iface=MIXER,name='CarkitR Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=1,iface=MIXER,name='Codec Operation Mode'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Option 2 (voice/audio)'
      ; Item #1 'Option 1 (audio)'
      : values=1
    numid=12,iface=MIXER,name='DAC Voice Analog Downlink Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=11,iface=MIXER,name='DAC Voice Analog Downlink Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=18,step=0
      : values=18
      | dBscale-min=-24.00dB,step=2.00dB,mute=0
    numid=10,iface=MIXER,name='DAC Voice Digital Downlink Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=49,step=0
      : values=49
      | dBscale-min=-37.00dB,step=1.00dB,mute=1
    numid=8,iface=MIXER,name='DAC1 Analog Playback Switch'
      ; type=BOOLEAN,access=rw------,values=2
      : values=off,off
    numid=6,iface=MIXER,name='DAC1 Analog Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=18,step=0
      : values=16,16
      | dBscale-min=-24.00dB,step=2.00dB,mute=0
    numid=4,iface=MIXER,name='DAC1 Digital Coarse Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=2,step=0
      : values=1,1
      | dBscale-min=0.00dB,step=6.00dB,mute=0
    numid=2,iface=MIXER,name='DAC1 Digital Fine Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0
      : values=63,63
      | dBscale-min=-63.00dB,step=1.00dB,mute=1
    numid=9,iface=MIXER,name='DAC2 Analog Playback Switch'
      ; type=BOOLEAN,access=rw------,values=2
      : values=on,on
    numid=7,iface=MIXER,name='DAC2 Analog Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=18,step=0
      : values=17,17
      | dBscale-min=-24.00dB,step=2.00dB,mute=0
    numid=5,iface=MIXER,name='DAC2 Digital Coarse Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=2,step=0
      : values=2,2
      | dBscale-min=0.00dB,step=6.00dB,mute=0
    numid=3,iface=MIXER,name='DAC2 Digital Fine Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0
      : values=63,63
      | dBscale-min=-63.00dB,step=1.00dB,mute=1
    numid=59,iface=MIXER,name='Earpiece Mixer AudioL1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=60,iface=MIXER,name='Earpiece Mixer AudioL2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=61,iface=MIXER,name='Earpiece Mixer AudioR1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=58,iface=MIXER,name='Earpiece Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=16,iface=MIXER,name='Earpiece Playback Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
      : values=3
      | dBscale-min=-6.00dB,step=6.00dB,mute=1
    numid=21,iface=MIXER,name='HS ramp delay'
      ; type=ENUMERATED,access=rw------,values=1,items=8
      ; Item #0 '27/20/14 ms'
      ; Item #1 '55/40/27 ms'
      ; Item #2 '109/81/55 ms'
      ; Item #3 '218/161/109 ms'
      ; Item #4 '437/323/218 ms'
      ; Item #5 '874/645/437 ms'
      ; Item #6 '1748/1291/874 ms'
      ; Item #7 '3495/2581/1748 ms'
      : values=0
    numid=37,iface=MIXER,name='HandsfreeL Mux'
      ; type=ENUMERATED,access=rw------,values=1,items=4
      ; Item #0 'Voice'
      ; Item #1 'AudioL1'
      ; Item #2 'AudioL2'
      ; Item #3 'AudioR2'
      : values=0
    numid=36,iface=MIXER,name='HandsfreeL Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=35,iface=MIXER,name='HandsfreeR Mux'
      ; type=ENUMERATED,access=rw------,values=1,items=4
      ; Item #0 'Voice'
      ; Item #1 'AudioR1'
      ; Item #2 'AudioR2'
      ; Item #3 'AudioL2'
      : values=0
    numid=34,iface=MIXER,name='HandsfreeR Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=14,iface=MIXER,name='Headset Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
      : values=3,3
      | dBscale-min=-12.00dB,step=6.00dB,mute=1
    numid=48,iface=MIXER,name='HeadsetL Mixer AudioL1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=49,iface=MIXER,name='HeadsetL Mixer AudioL2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=47,iface=MIXER,name='HeadsetL Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=45,iface=MIXER,name='HeadsetR Mixer AudioR1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=46,iface=MIXER,name='HeadsetR Mixer AudioR2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=44,iface=MIXER,name='HeadsetR Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=64,iface=MIXER,name='Left Digital Loopback Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
      : values=7
      | dBrange-
    0x00000000,0x00000003,0x00000001,0x00000008,0xfffff6a0,0x00010000,0x00000004,0x00000007,0x00000001,0x00000008,0xfffff8f8,0x00000258,
    numid=68,iface=MIXER,name='Left1 Analog Loopback Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=66,iface=MIXER,name='Left2 Analog Loopback Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=13,iface=MIXER,name='PreDriv Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
      : values=3,3
      | dBscale-min=-12.00dB,step=6.00dB,mute=1
    numid=55,iface=MIXER,name='PredriveL Mixer AudioL1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=56,iface=MIXER,name='PredriveL Mixer AudioL2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=57,iface=MIXER,name='PredriveL Mixer AudioR2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=54,iface=MIXER,name='PredriveL Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=53,iface=MIXER,name='PredriveR Mixer AudioL2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=51,iface=MIXER,name='PredriveR Mixer AudioR1'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=52,iface=MIXER,name='PredriveR Mixer AudioR2'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=50,iface=MIXER,name='PredriveR Mixer Voice'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=63,iface=MIXER,name='Right Digital Loopback Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
      : values=7
      | dBrange-
    0x00000000,0x00000003,0x00000001,0x00000008,0xfffff6a0,0x00010000,0x00000004,0x00000007,0x00000001,0x00000008,0xfffff8f8,0x00000258,
    numid=69,iface=MIXER,name='Right1 Analog Loopback Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=off
    numid=67,iface=MIXER,name='Right2 Analog Loopback Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=31,iface=MIXER,name='TX1 Capture Route'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Analog'
      ; Item #1 'Digimic0'
      : values=0
    numid=17,iface=MIXER,name='TX1 Digital Capture Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
      : values=12,12
      | dBscale-min=0.00dB,step=1.00dB,mute=0
    numid=30,iface=MIXER,name='TX2 Capture Route'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Analog'
      ; Item #1 'Digimic1'
      : values=0
    numid=18,iface=MIXER,name='TX2 Digital Capture Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
      : values=0,0
      | dBscale-min=0.00dB,step=1.00dB,mute=0
    numid=23,iface=MIXER,name='Vibra H-bridge direction'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Positive polarity'
      ; Item #1 'Negative polarity'
      : values=0
    numid=22,iface=MIXER,name='Vibra H-bridge mode'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Vibra H-bridge direction'
      ; Item #1 'Audio data MSB'
      : values=0
    numid=33,iface=MIXER,name='Vibra Mux'
      ; type=ENUMERATED,access=rw------,values=1,items=4
      ; Item #0 'AudioL1'
      ; Item #1 'AudioR1'
      ; Item #2 'AudioL2'
      ; Item #3 'AudioR2'
      : values=0
    numid=32,iface=MIXER,name='Vibra Route'
      ; type=ENUMERATED,access=rw------,values=1,items=2
      ; Item #0 'Local vibrator'
      ; Item #1 'Audio'
      : values=0
    numid=65,iface=MIXER,name='Voice Analog Loopback Switch'
      ; type=BOOLEAN,access=rw------,values=1
      : values=on
    numid=62,iface=MIXER,name='Voice Digital Loopback Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=41,step=0
      : values=40
      | dBscale-min=-51.00dB,step=1.00dB,mute=1

  • Hi pp zhao,

    I'm trying to use my DM3730 evm to interface it with the MIC.I found out that the MCBSP3 is modules that is actually capturing data and saving it to.What I'm interested to know is if the MCBSP3 is acting as a slave or master.if it is a slave then the configuration changes for the MCBSP3 and where to change the register values for the MCBSP.

    Looking forward for reply

    Thanking you,

    prasad

  • Hi QingboGuo,

      I have the same problem ,when i record with mic,the sound too low to heard it。

    Have you solved the problem?