Skip to content

[BUG][BYT][I2S] Nothing can be recorded when used "arecord -Dhw:0,0 -r48000 -c2 -fs16_le s30.wav -vvv -i" to record #1423

Closed

Description

@Liviali155

Describe the bug
Nothing can be recorded when used "arecord -Dhw:0,0 -r48000 -c2 -fs16_le s30.wav -vvv -i" to record

To Reproduce

  1. sudo reboot
  2. arecord -Dhw:0,0 -r48000 -c2 -fs16_le s30.wav -vvv -i -d 10
ubuntu@cd-byt-mb-rt5682-07:~$ arecord -Dhw:0,0 -r48000 -c2 -fs16_le s30.wav -vvv -i
Recording WAVE 's30.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 0 'sof-rt5682' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16320
  period_size  : 4080
  period_time  : 85000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 4080
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 16320
  silence_threshold: 0
  silence_size : 0
  boundary     : 9187343239835811840
  appl_ptr     : 0
  hw_ptr       : 0
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
Max peak (8160 samples): 0x00000000 #                    0%
^CAborted by signal Interrupt...
Max peak (96 samples): 0x00000000 #                    0%

Reproduction Rate
100%

Expected behavior
It can record audio

Impact
It can record nothing

Environment
platform: BYT MinnowBoard with I2S RT5682
Firmware: fe321d6 https://github.com/thesofproject/sof/commits/master
Kernel: c265f25 https://github.com/thesofproject/linux/commits/topic/sof-dev
Topology: file: tools/topology/sof-byt-rt5682.tplg same as firmware

dmesg.log
logger.log

Activity

  1. added
    bugSomething isn't working
    BYTApplies to Baytrail platform
    on Nov 1, 2019
  2. plbossart commented on Nov 4, 2019

    @plbossart
    Member

    @dengyangchao have you used the relevant mixer settings, seems to me that your configuration is incomplete on the codec side?
    @bardliao can you try to reproduce?

  3. bardliao commented on Nov 5, 2019

    @bardliao
    Collaborator

    @Liviali155 @plbossart I believe that is a mixer setting issue. @Liviali155 Could you try
    rt5682.txt first?

  4. ClarexZhou commented on Nov 5, 2019

    @ClarexZhou

    Close. Error not seen after change to below amixer setting:
    numid=14,iface=MIXER,name='Stereo1 ADC L1 Mux'
    ; type=ENUMERATED,access=rw------,values=1,items=2
    ; Item #0 'DAC MIX'
    ; Item #1 'ADC'
    : values=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BYTApplies to Baytrail platformbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions