Jump to content

How to use Microphone or LineIn on ct?


nordicco

Recommended Posts

How to get a headphone or simple mic to work on a ct as recording device?

 

In vanilla armbian for ct capture_use and playback_use are undefined in script.bin and

 

# arecord -l

 

does not list any devices.

 

According to http://www.cubieforums.com/index.php/topic,2211.msg20637.html#msg20637

I changed both values with bin2fex / fex2bin to "1", rebooted and now I get

 

**** List of CAPTURE Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

But any try to capture noise from different microphones or headsets does not work. Playback is not an issue (speaker-test works as expected). Every try with

 

# arecord -vvv -c 2 /tmp/my.wav

 

produces a file with silence.

 

Did I miss anything?

 

TIA

 

-- output of amixer contents

 

numid=1,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=63,step=0
  : values=51
numid=14,iface=MIXER,name='Master Capture Mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=13,iface=MIXER,name='Line output Volume'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=5,iface=MIXER,name='LineL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=6,iface=MIXER,name='LineR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=17,iface=MIXER,name='Linein Pre-AMP'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=4
numid=10,iface=MIXER,name='Mic Input Mux'
  ; type=INTEGER,access=rw------,values=1,min=0,max=15,step=0
  : values=9
numid=24,iface=MIXER,name='Mic Power'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=23,iface=MIXER,name='Mic1 Boost'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=27,iface=MIXER,name='Mic1 gain Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
  : values=2
numid=22,iface=MIXER,name='Mic2 Boost'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=26,iface=MIXER,name='Mic2 gain Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=0
numid=20,iface=MIXER,name='MicL Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
  : values=1
numid=21,iface=MIXER,name='MicR Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
  : values=1
numid=25,iface=MIXER,name='ADC Input Mux'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=2
numid=19,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=5
numid=2,iface=MIXER,name='Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=12,iface=MIXER,name='Fm output Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=3
numid=3,iface=MIXER,name='FmL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=4,iface=MIXER,name='FmR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=18,iface=MIXER,name='LINEIN APM Volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=3
numid=7,iface=MIXER,name='Ldac Left Mixer'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=9,iface=MIXER,name='Ldac Right Mixer'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=16,iface=MIXER,name='Left Capture Mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=11,iface=MIXER,name='MIC output volume'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=3
numid=8,iface=MIXER,name='Rdac Right Mixer'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=15,iface=MIXER,name='Right Capture Mute'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off

 

Link to comment
Share on other sites

Thank you Igor.

 

Just in case anyone else tries to record sound with a microphone on a ct-board: It's not possible via the builtin 3.5"-jack.

 

You need a USB-soundcard to record sound. I.e. a CM108 based usb-stick. The latter did it for me.

 

Did I miss something?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines