导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    使用自带codec录音报错, arecord: pcm_read:2072: read error: I/O error

    MR Series
    5
    8
    2629
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • R
      RTQQQ LV 5 最后由 编辑

      使用自带的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
      
      
      1 条回复 最后回复 回复 引用 分享 1
      • WhycanService
        WhycanService LV 8 最后由 编辑

        通过 amixer 查看 route 状态,确认是否设置了需要的上下电通路。

        R 2 条回复 最后回复 回复 引用 分享 0
        • R
          RTQQQ LV 5 @WhycanService 最后由 编辑

          @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%]
          
          
          1 条回复 最后回复 回复 引用 分享 0
          • R
            RTQQQ LV 5 @WhycanService 最后由 编辑

            @whycanservice d9f9dd22-9da5-4807-aee6-ae38a8cf934c-image.png

            1 条回复 最后回复 回复 引用 分享 0
            • WhycanService
              WhycanService LV 8 最后由 编辑

              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
              
              1 条回复 最后回复 回复 引用 分享 0
              • Q
                qqqlb LV 6 最后由 编辑

                请问一下,你这个问题解决了吗

                S 1 条回复 最后回复 回复 引用 分享 0
                • S
                  shuaige LV 6 @qinlinbin 最后由 编辑

                  @qinlinbin 后面有解决吗,什么问题

                  1 条回复 最后回复 回复 引用 分享 0
                  • W
                    wuwenli_81 LV 3 最后由 编辑

                    音频都不行吗?是不是模块没初始化

                    1 条回复 最后回复 回复 引用 分享 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策