Skip to content

[CML][HDA] arecord cannot record any signal from onboard DMIC #831

Closed

Description

@stevyan

Summary
arecord cannot record any signal from onboard DMIC

To Reproduce

  1. arecord -Dhw:0,6 -f s32_le -r 48000 -c 2 /dev/null -vv -i
  2. arecord -Dhw:0,7 -f s16_le -r 48000 -c 2 /dev/null -vv -i

Actual Result

Recording WAVE '/dev/null' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 0 'sof-skl_hda_card' device 6 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  buffer_size  : 8184
  period_size  : 2040
  period_time  : 42500
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 2040
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 8184
  silence_threshold: 0
  silence_size : 0
  boundary     : 9214364837600034816
  appl_ptr     : 0
  hw_ptr       : 0
#+                                                 | 00%
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 0 'sof-skl_hda_card' device 7 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  : 16368
  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   : 16368
  silence_threshold: 0
  silence_size : 0
  boundary     : 9214364837600034816
  appl_ptr     : 0
  hw_ptr       : 0
#+                                                 | 00%

Expected Result

  1. ############+ | 48%
  2. #################+ | 75%

Environment
HW Platform: CML laptop with ALC3204 and onboard DMIC
Kernel: rander/cml-validation-branch (topic/sof-dev 58d1b6b + issue 767 regression fix + DMIC patch)
Firmware: master ed6ac05 (revert the commit f5e7843)
Topology: rander/cml-validation-branch (master 742f83b + DMIC topology support patch )

sof-logger log

   0      2         PIPE 1.5        124895.104167         6.770833 src/audio/pipeline.c:188 	pipeline_complete()
    0      2          IPC            125004.739583       109.635414    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            125007.604167         2.864583    src/ipc/handler.c:867 	ipc: comp 45 -> cmd 0
    0      2       VOLUME            125022.604167        15.000000   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            125025.520833         2.916667   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 45
    0      2       VOLUME            125028.333333         2.812500   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 52056
    0      2       VOLUME            125031.093750         2.760417   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 52056
    0      2          IPC            125168.645833       137.552078    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            125171.875000         3.229167    src/ipc/handler.c:867 	ipc: comp 38 -> cmd 0
    0      2       VOLUME            125185.156250        13.281250   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            125188.333333         3.177083   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 38
    0      2       VOLUME            125191.250000         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 65536
    0      2       VOLUME            125194.270833         3.020833   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 65536
    0      2          IPC            125402.604167       208.333328    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            125405.625000         3.020833    src/ipc/handler.c:867 	ipc: comp 31 -> cmd 0
    0      2       VOLUME            125416.666667        11.041667   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            125419.843750         3.177083   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 31
    0      2       VOLUME            125422.760417         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 65536
    0      2       VOLUME            125425.781250         3.020833   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 65536
    0      2          IPC            125637.135417       211.354172    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            125640.156250         3.020833    src/ipc/handler.c:867 	ipc: comp 22 -> cmd 0
    0      2       VOLUME            125649.531250         9.375000   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            125652.552083         3.020833   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 22
    0      2       VOLUME            125655.468750         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 65536
    0      2       VOLUME            125658.489583         3.020833   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 65536
    0      2          IPC            125978.385417       319.895844    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            125981.406250         3.020833    src/ipc/handler.c:867 	ipc: comp 15 -> cmd 0
    0      2       VOLUME            125988.906250         7.500000   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            125991.927083         3.020833   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 15
    0      2       VOLUME            125994.843750         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 52056
    0      2       VOLUME            125998.020833         3.177083   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 52056
    0      2          IPC            126212.916667       214.895828    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            126215.989583         3.072917    src/ipc/handler.c:867 	ipc: comp 8 -> cmd 0
    0      2       VOLUME            126221.666667         5.677083   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            126224.687500         3.020833   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 8
    0      2       VOLUME            126227.604167         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 65536
    0      2       VOLUME            126230.781250         3.177083   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 65536
    0      2          IPC            126425.052083       194.270828    src/ipc/handler.c:865 	ipc: hdr 0x50010000 tx (108) > rx (92)
    0      2          IPC            126428.229167         3.177083    src/ipc/handler.c:867 	ipc: comp 1 -> cmd 0
    0      2       VOLUME            126431.927083         3.697917   src/audio/volume.c:434 	volume_cmd()
    0      2       VOLUME            126434.947917         3.020833   src/audio/volume.c:327 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, cdata->comp_id = 1
    0      2       VOLUME            126437.864583         2.916667   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 0, value = 65536
    0      2       VOLUME            126441.041667         3.177083   src/audio/volume.c:332 	volume_ctrl_set_cmd(), SOF_CTRL_CMD_VOLUME, channel = 1, value = 65536
    0      2          IPC            126642.968750       201.927078    src/ipc/handler.c:643 	ipc: pm -> restore
    0      2          IPC            127571.093750       928.125000    src/ipc/handler.c:239 	ipc: comp 55 -> params
    0      2         PIPE 101.58     127589.322917        18.229166 src/audio/pipeline.c:320 	pipeline_params()
    0      2         HOST            127593.177083         3.854167     src/audio/host.c:514 	host_params()
    0      2          DMA            127599.218750         6.041667 intel/cavs/hda-dma.c:464 	hda-dmac: 4 channel 1 -> get
    0      2          DMA            127603.229167         4.010417 intel/cavs/hda-dma.c:685 	hda-dmac: 4 channel 1 -> config

dmesg-record_muted.log
sof-logger-record_muted.log

Activity

  1. singalsu commented on Apr 12, 2019

    @singalsu
    Collaborator

    @RanderWang If the capture produces no data I think the DMIC addr, DMA and IRQ settings should be checked for this platform. Do you have the documentation (I don't have myself)?

    @stevyan Just a minute, I misinterpreted the "######" thing. Is it the arecord VU meter output? If it means that arecord captures a recording normally but the PCM samples are zeros it's an issue with the microphones (powered? receiving clock? sending data?)

  2. mengdonglin commented on Apr 12, 2019

    @mengdonglin

    @singalsu Can this information "DMIC addr, DMA and IRQ settings" usually get by dumping ACPI info from BIOS or some audio design document?

  3. singalsu commented on Apr 12, 2019

    @singalsu
    Collaborator

    @mengdonglin The platform audio cluster programming guide usually contains these, I don't have the document for CML. I probably made the mistake by assuming that nothing is captured. I thought the #### characters in the reported error would be some progress bar (time) but I learned from arecord manual it's a level meter meter instead (-vv option).

    If the capture data flows but remains zero the latter mic connection or powering might be the issue. Physical access to PDM bus and mic power would be needed to confirm.

  4. added
    bug
    CML
    P1
    HDA
    on Apr 12, 2019
  5. stevyan commented on Apr 15, 2019

    @stevyan
    Author

    It doesn't reproduce, only recorded with very level volume.
    For DMIC2(hw:0,7), the record rate cannot set 16K correctly, risk new issue will track it.

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

    CMLHDAP1bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions