Re: Recording audio on M3+KF on AGL 6.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jason,

capturing with 4a is a work in progress.
If the hw:2 is actually the sound card you want to capture from,
the method you are using should work.

I suspect that your input PCM is in mute state, there is a known issue about that
Could you check or set it like this:

m3ulcb:~# amixer -D hw:ak4613 cget iface=MIXER,name='DVC In Mute Switch'
numid=15,iface=MIXER,name='DVC In Mute Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on

You can change the state this way:

m3ulcb:~# amixer -D hw:ak4613 cset iface=MIXER,name='DVC In Mute Switch' off
numid=15,iface=MIXER,name='DVC In Mute Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off

Regards,
Thierry

On 10/31/2018 04:47 PM, Jason Reich wrote:

Hi, I sent this last week, and no responses, so I'm trying again. 


Is there any way to get microphone input with 4A on M3+Kingfisher running Flounder?


There is a 4a-play utility, but no 4a-record.


thanks

Jason.


From: Jason Reich
Sent: Friday, October 26, 2018 11:25:52 AM
To: automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Recording audio on M3+KF on AGL 6.0
 

Hello,

I'm looking into audio recording (to ultimately support voice commands) on an M3 with Kingfisher.  I'm trying to learn how 4A works, but haven't seen much about microphones, line in, or recording.  And initially, I'm just trying to get any input using command line tools like arecord, parec, etc.  However, I'm not having any luck.  


If I do "arecord -l", I see many devices listed (see below), with the device hw:2,0 ak4613 being most likely (to use the mic port on the M3 board).


But when I try:

arecord -D hw:2,0 -f S24_LE -c 2 -r 48000

it generates data, but all zeros.  


I've tried the other devices as well, and they either record null data or fail due to device open or device missing.


How can I record data on AGL 6 with 4A?  And are there any sample apps that record microphone input?


thanks

Jason Reich.


A full list of alsa recording devices on my system:


m3ulcb:/usr/libexec/agl/4a-hal/etc# arecord -l 
**** List of CAPTURE Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 5/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: pcm3168a [pcm3168a], device 0: rsnd-dai.0-pcm3168a pcm3168a-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: ak4613 [ak4613], device 0: rsnd-dai.1-ak4613-hifi ak4613-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: radio [radio], device 0: rsnd-dai.2-si468x-pcm si468x-pcm-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 4: wl18xx [wl18xx], device 0: rsnd-dai.3-wl18xx-pcm wl18xx-pcm-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0






_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux