How to use the headset and mic on the M3?

I burned the OS 2016-04-25-ubuntu-mate-16.04_Xenial_gpu_mpv_1080p_bt-bpi-m3_beta-sd-emmc.img to the eMMC on the Banana Pi BPI-M3.but the headset and mic are silence,How to solve this problem?

sky god said that you could test these command

aplay -D hw:0,0 audio_sample.wav  //from 3.5 hole
arecord -d 10 -f S16_LE -D plughw:0,0 test.wav //record by mic

thank you BPI_Q,i will try this way.

with the help of sinovoip,i have solved the problem(but only include the headset,I will try to solve MIC problem). First,you should write these command to the file of /etc/rc.d/rc.local,The most important is that in the rc.local,you must change the top file from #!/bin/sh to #!/bin/sh -x. The commands are

rm -f /usr/share/icons/hicolor/scalable/apps/libreoffice-*.svg || true rm -f /usr/share/applications/squeak.desktop || true

/usr/sbin/alsactl restore

headset mixer

/usr/bin/amixer -c 0 cset numid=114 1 /usr/bin/amixer -c 0 cset numid=65 0 /usr/bin/amixer -c 0 cset numid=66 0 /usr/bin/amixer -c 0 cset numid=75 1 /usr/bin/amixer -c 0 cset numid=68 1 /usr/bin/amixer -c 0 cset numid=84 1 /usr/bin/amixer -c 0 cset numid=88 1 /usr/bin/amixer -c 0 cset numid=104 0 /usr/bin/amixer -c 0 cset numid=103 0 /usr/bin/amixer -c 0 cset numid=26 61

amic mixer

/usr/bin/amixer -c 0 cset numid=108 0 /usr/bin/amixer -c 0 cset numid=107 0 /usr/bin/amixer -c 0 cset numid=99 1 /usr/bin/amixer -c 0 cset numid=95 1 /usr/bin/amixer -c 0 cset numid=28 0 /usr/bin/amixer -c 0 cset numid=27 0 /usr/bin/amixer -c 0 cset numid=41 1 /usr/bin/amixer -c 0 cset numid=34 1 /usr/bin/amixer -c 0 cset numid=15 4

/usr/sbin/alsactl store

exit 0

sudo apt-get install audacity

//( remember if you want to play mp3 format,you must install sox)

Hello,

try this method and please reply if it works or not.

Thanks

OK,thank you romaxmaniax