使用自带codec录音报错, arecord: pcm_read:2072: read error: I/O error
-
使用自带的codec进行录音,报错了,这是什么原因呢?alsamixer也设置了
root@TinaLinux:/# arecord -D hw:0,0 -f S16_LE test.wav Recording WAVE 'test.wav' : [ 162.476954] [SNDCODEC][sunxi_card_hw_params][620]:stream_flag: 1 Signed 16 bit Little Endian, Rate 8000 Hz, Mono arecord: pcm_read:2072: read error: I/O error
-
通过 amixer 查看 route 状态,确认是否设置了需要的上下电通路。
-
@whycanservice
你好,这是amixer 的显示内容,请问如何操作呢?root@TinaLinux:/# amixer Simple mixer control 'Headphone',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Headphone volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 4 [57%] Simple mixer control 'FMINL gain volume',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'FMINR gain volume',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC1 ADC2 swap',0 Capabilities: enum Items: 'Off' 'On' Item0: 'Off' Simple mixer control 'ADC1 Input FMINL',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC1 Input LINEINL',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC1 Input MIC1 Boost',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC1 volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 255 Mono: 160 [63%] Simple mixer control 'ADC2 Input FMINR',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC2 Input LINEINR',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC2 Input MIC2 Boost',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC2 volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 255 Mono: 160 [63%] Simple mixer control 'ADC3 ADC4 swap',0 Capabilities: enum Items: 'Off' 'On' Item0: 'Off' Simple mixer control 'ADC3 Input MIC3 Boost',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'ADC3 volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 255 Mono: 160 [63%] Simple mixer control 'DAC volume',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 255 Front Left: 160 [63%] Front Right: 160 [63%] Simple mixer control 'HpSpeaker',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'LINEINL gain volume',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'LINEINR gain volume',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'LINEOUT',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'LINEOUT volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 31 Mono: 26 [84%] Simple mixer control 'LINEOUTL Output Select',0 Capabilities: enum Items: 'DAC_SINGLE' 'DAC_DIFFER' Item0: 'DAC_DIFFER' Simple mixer control 'LINEOUTR Output Select',0 Capabilities: enum Items: 'DAC_SINGLE' 'DAC_DIFFER' Item0: 'DAC_DIFFER' Simple mixer control 'MIC1 Input Select',0 Capabilities: enum Items: 'MIC_DIFFER' 'MIC_SINGLE' Item0: 'MIC_DIFFER' Simple mixer control 'MIC1 gain volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 31 Mono: 31 [100%] Simple mixer control 'MIC2 Input Select',0 Capabilities: enum Items: 'MIC_DIFFER' 'MIC_SINGLE' Item0: 'MIC_DIFFER' Simple mixer control 'MIC2 gain volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 31 Mono: 31 [100%] Simple mixer control 'MIC3 Input Select',0 Capabilities: enum Items: 'MIC_DIFFER' 'MIC_SINGLE' Item0: 'MIC_DIFFER' Simple mixer control 'MIC3 gain volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 31 Mono: 31 [100%] Simple mixer control 'codec hub mode',0 Capabilities: enum Items: 'hub_disable' 'hub_enable' Item0: 'hub_disable' Simple mixer control 'digital volume',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 63 Mono: 63 [100%]
-
-
amixer -D hw:audiocodec cset numid=21 0 && \ amixer -D hw:audiocodec cset numid=9 30 && \ amixer -D hw:audiocodec cset numid=23 1 && \ amixer -D hw:audiocodec cset numid=25 0 && \ arecord -D hw:audiocodec -f S16_LE -t wav -r 16000 -d 3 t.wav
-
请问一下,你这个问题解决了吗
-
@qinlinbin 后面有解决吗,什么问题
-
音频都不行吗?是不是模块没初始化
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号