Thank you Icenowy. Turns out It's actually a alsa setting problem.
Solve this problem by these steps:
$ alsamixer
$ F4
$ turn on capture related switch

在 2017年4月25日星期二 UTC+8下午11:50:58,Icenowy Zheng写道:
>
>
>
> 于 2017年4月25日 GMT+08:00 上午10:43:30, [email protected] <javascript:> 写到: 
> >Hey guys. 
> >I'm using these source for Nanoi-NEO2: 
> >https://github.com/friendlyarm/linux 
> >branch:sunxi-4.11.y-devel 
> ><https://github.com/friendlyarm/linux/tree/sunxi-4.11.y-devel> 
> >Basically it forks from Icenowy zheng's github. 
> > 
> >Here's my problem: 
> >I'm testing H5 internal codec.I'm able to play wav by: 
> >$ aplay test.wav 
> >However I failed to test recording by: 
> >$ arecord -f cd -d 5 test.wav                                           
> >     
> >                                   
> >Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, 
> > 
> >Stereo 
> >arecord: pcm_read:2032: read error: Input/output error 
>
> Could you try to run 
> ``` 
> amixer -c 0 cset numid=12 2 
> ``` 
> before recording? 
>
> > 
> >strace info: 
> >ioctl(4, SNDRV_PCM_IOCTL_READI_FRAMES 
> >, 0xffffcfcf1170) = -1 EIO (Input/output error) 
> > 
> >dmesg info: 
> >capture write error (DMA or IRQ trouble?) 
> > 
> >fisr time to use google group. Let me know if I've missed sth 
> >important. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to