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.

C6748 MIC_IN not works

Other Parts Discussed in Thread: OMAP-L138, OMAP-L137

 

Hi

I need to do the test, which takes the signal from the microphone input codec AIC3106 (C6748) and sends it to the output (headphones). I looked through the forum and found this link:

http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/12198.aspx#116954

I use PSP 01_30_00_06, but the above steps did not help me. Although the link described the problem to C6747, but I use the C6748. What can be done in this case?

Thank you.

 

  • Hi Alexandr,

    Please ignore if I've misunderstood your question, but since I was one of the posters on the thread you gave a link to ...

    ... my problem was with using the SIO_ctrl() function to change the parameter settings on the AIC3106 connected to an OMAP-L137 on a Spectrum Digital EVM and to an OMAP-L138 on a logic PD eXperimenter. I was not trying to select different inputs (as I believe the original poster was) but was trying to change other parameters on the AIC3106.

    Are you finding that SIO-ctrl() doesn't work?

    It turned out that there was an error in the audio driver source file audio.c. The same problem applied to C6747 and C6748.

    That was in February 2010. In the most recent version of PSP that I have downloaded, that error has been corrected by TI.

    Regards,

    Donald

  • Hi Donald,

    SIO_ctrl() works fine and returns a status 0. The package PSP 01_30_00_06 audio.c file has a line of 662 (Ptr) & cmdArg-> ioctlArg, which I corrected by (Ptr)cmdArg-> ioctlArg. Next, do write to command register Aic31_AC_IOCTL_REG_WRITE. For example, to use MIC IN to disable LINE IN (registers 19, 22 value 0x7C) and include the MIC IN (register 17 value 0x0F, 18 value 0xF0) and run the example audioSample. Connected to the board microphone and headphones, but the result is not obtained. How to verify that SIO_ctrl () work correctly? I think MIC IN must initialize at the beginning, otherwise MIC IN is not working. Now I check it

    Regards,

    Alexandr

  • I checked the work of the team SIO_ctrl() for example Aic31_AC_IOCTL_MUTE_ON and it works.

    Audio_IoctlParam ioctlParam;

    int status;

    ...

    ioctlParam.aiModule = Audio_ModuleSel_AUDIO_CODEC;

    ioctlParam.codecId = 0;

    ioctlParam.ioctlArg = 0;

    status = SIO_ctrl (inStream, Aic31_AC_IOCTL_MUTE_ON, (Arg) & ioctlParam);

    printf ("Aic31_AC_IOCTL_MUTE_ON status =% d \ n", status);

     

    I put this code at the end of the function createStreams () from example audioSample.pjt (file audioSample_io.c), and then commented out it to check the correctness of the commnd Aic31_AC_IOCTL_MUTE_ON. It works.

    Then I tried to do Aic31_AC_IOCTL_SELECT_INPUT_SOURCE:

    int arg = ICodec_InputDest_MICIN;

    ...

    ioctlParam.ioctlArg = (Ptr) &arg;

    status = SIO_ctrl (inStream, Aic31_AC_IOCTL_SELECT_INPUT_SOURCE, (Arg) & ioctlParam);

    But with a microphone so nothing heard.

    Then I opened the project codec.pjt (file Aic31.c) and added features aic31InitAdc(Aic31_Object *instHandle) instead of:

     

    / * MIC3L / R is not connected to the left ADC PGA * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG17, (Uint8) 0xFF);

    / * MIC3L / R is not connected to the right ADC PGA * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG18, (Uint8) 0xFF);

    / * Power on the Line L1R * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG19, (Uint8) 0x04);

    / * REG20 (not required) * /

    / * REG21 (not required) * /

    / * Power on the Line LIL * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG22, (Uint8) 0x04);

     

    the following lines:

     

    / * Disable the LINE IN connected to the ADC * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG19, (Uint8) 0x7C);

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG22, (Uint8) 0x7C);

    / * Connect the MIC IN to the ADC * /

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG17, (Uint8) 0x0F);

    retVal | = aic31RegWrite (instHandle, Aic31_P0_REG18, (Uint8) 0xF0);

     

    Then compile the project codec.pjt and audioSample.pjt. But with a microphone so nothing heard.

  • Alexandr,

    What hardware are you using? What exactly are the electrical connections to your microphone (from the MIC3L, MIC3R and MICBIAS pins on the AIC3106) and what type of microphone are you using (does it require MICBIAS)?

    Donald

  •  

    Hi Donald,

     

    I use the ZOOM OMAP-L138 eXperimenter Kit with module C6748.

    Register 17 (value 0x0F): MIC3L Input Level Control for Left ADC PGA Mix

    Register 18 (value 0xF0): MIC3R Input Level Control for Right ADC PGA Mix

    Register 25 (value 0x40): MICBIAS output is powered to 2.0V

    For tests using a standard analog microphone

     

  • Alexandr,

    The MIC3L, MIC3R, MICBIAS pins are not connected to anything on the Zoom OMAP-L138 eXperimenter. Only the LINE1LP/MIC1LP and LINE1RP/mic1RP pins are connected to the 3.5mm LINE IN jack socket. This precludes the use of a microphone that requires MICBIAS. You can use a DYNAMIC microphone plugged into the LINE IN jack socket with the audioSample program as supplied (in terms of input selection) and the trick is to set the ADC gain (registers 15 and 16) to, say, 24dB. You can't use the ultra-cheap type of desktop microphone that you can plug into a PC soundcard - that would need to be connected using the MIC3L, MIC3R, MICBIAS pins (as is an option on the Spectrum Digital OMAP-L137 EVM).

     

    Donald

  • Donald,

    I looked up the schematic board and saw that MIC3L, MIC3R MICBIAS and will not connect. Then I looked schematic board EVMOMAPL137

    http://support.spectrumdigital.com/boards/evmomapl137/revg/files/EVMOMAPL137_Schematics_revg.pdf

    It clearly shows that these lines (MIC3L, MIC3R and MICBIAS) connected to the corresponding input lines. I conclude that the use of MIC on board ZOOM OMAP-L138 eXperimenter Kit is physically impossible.

    Thank you