Online Support
  Atmel Series  (29) TOP10
  MYS-SAM9X5 (3)
  MYS-SAM9G45 (1)
  MYD-SAM9X5 (7)
  MYD-SAM9X5-V2 (2)
  MYD-JA5D2X (0)
  MYD-SAMA5D3X (11)
  MYD-SAMA5D3X-C (0)
  MYD-JA5D4X (0)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-JA5D2X (0)
  MYC-SAMA5D3X (0)
  MCC-SAMA5D3X-C (0)
  MYC-JA5D4X (0)
  NXP Series  (23) TOP10
  MYS-6ULX (4)
  MYD-Y6ULX (3)
  MYD-IMX28X (2)
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYC-Y6ULX (4)
  MYC-IMX28X (0)
  i.MX 6UL/6ULL (6)
  TI Series  (24) TOP10
  MYD-AM335X (12)
  MYD-AM335X-Y (0)
  MYD-AM335X-J (0)
  MYD-C437X (0)
  MYD-C437X-PRU (5)
  Rico Board (6)
  MYC-AM335X (1)
  MCC-AM335X-Y (0)
  MCC-AM335X-J (0)
  MYC-C437X (0)
  Xilinx Series  (20) TOP10
  Z-turn Board (9)
  Z-turn Lite (2)
  MYD-C7Z010/20 (0)
  MYD-C7Z015 (7)
  MYD-Y7Z010/007S (0)
  MYC-C7Z010/20 (0)
  MYC-C7Z015 (0)
  MYC-Y7Z010/007S (0)
  HMI Solutions  (0) TOP10
  MY-EVC5100S-HMI (0)
  Others  (1) TOP10
  MY-WF003U (1)
  Home >  Support > Atmel Series > MYD-SAMA5D3X
How to use MIC on SAMA5D3X?
How to use MIC on SAMA5D3X?

1. Decompress kernel source code and execute below commands to modify the file sama5d3mb.dtsi

# cd linux-at91/

# gedit arch/arm/boot/dts/sama5d3mb.dtsi

Find the sound configuration and add the lines "Mic", "MICBIAS" in the location as shown in below diagram:

Execute below commands and recompile the kernel:

./make_image.sh  linux-512mb

If the DDR2 is 256MB, please use the command: ./make_image.sh  linux256mb

After compilation, please replace the old uImage by newly created uImage (in arch/arm/boot/) and then reprogram.

2. Login in Linux and execute:

# alsamixer

3. Use the left/right direction keys on keyboard to switch the item to HPL Mux [ADC], and then press up/down direction keys to switch to Bypass, such as the diagram shown below:

4. Use the left/right keys on keyboard to switch the Iteam to Left Capture Inverting Mux and then press the up/down direction keys to switch to IN1L, such as the diagram shown below:

5. After above configuration, we can use the MIC on board for recording and playback testing.It equals to a microphone function. If you no need synch-playback, you don’t need to execute the step 3.