Skip to content

[BUG] [TGL] ipc error when tirgger wov pipline with s24_le and s32_le #3009

@ClarexZhou

Description

@ClarexZhou

Describe the bug
Unable to install hw params and "ipc error for 0x60010000 size 20" is dmesg when tirgger wov pipline with s24_le and s32_le

To Reproduce
arecord -Dhw:0,100 -M -N -f s24_le -r 16000 -i -vvv -c2 --period-size=68000 ./tmp.wav --dump-hw-params

Reproduction Rate
3/3

Expected behavior
wov pipline should be triggered successfully

Impact
wov trigger failed with ipc error.

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  1. Name of the topology file
    • Topology: sof-tgl-max98373-rt5682.tplg
  2. Name of the platform(s) on which the bug is observed.
    • Platform: TGL chrome volteer with 98373 in I2S mode

Screenshots or console output


ubuntu@TGL-Volteer-01:~$ arecord -Dhw:0,100 -M -N -f s24_le -r 16000 -i -vvv -c2 --period-size=68000 ./tmp.wav --dump-hw-params
Recording WAVE './tmp.wav' : Signed 24 bit Little Endian, Rate 16000 Hz, Stereo
HW Params of device "hw:0,100":
--------------------
ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S16_LE S24_LE S32_LE
SUBFORMAT:  STD
SAMPLE_BITS: [16 32]
FRAME_BITS: [32 64]
CHANNELS: 2
RATE: 16000
PERIOD_TIME: [1500 3999000]
PERIOD_SIZE: [24 63984]
PERIOD_BYTES: [192 255936]
PERIODS: [2 160]
BUFFER_TIME: [3000 19998000]
BUFFER_SIZE: [48 319968]
BUFFER_BYTES: [192 1279872]
TICK_TIME: ALL
--------------------
arecord: set_params:1363: Unable to install hw params:
ACCESS:  MMAP_INTERLEAVED
FORMAT:  S24_LE
SUBFORMAT:  STD
SAMPLE_BITS: 32
FRAME_BITS: 64
CHANNELS: 2
RATE: 16000
PERIOD_TIME: 1999500
PERIOD_SIZE: 31992
PERIOD_BYTES: 255936
PERIODS: 2
BUFFER_TIME: 3999000
BUFFER_SIZE: 63984
BUFFER_BYTES: 511872
TICK_TIME: 0

no error sof logger trace.
Dmesg

[  155.916096] sof-audio-pci 0000:00:1f.3: pcm: open stream 100 dir 1
[  155.916098] sof-audio-pci 0000:00:1f.3: period min 192 max 256000 bytes
[  155.916098] sof-audio-pci 0000:00:1f.3: period count 2 max 160
[  155.916099] sof-audio-pci 0000:00:1f.3: buffer max 1280000 bytes
[  155.916238] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 100 dir 1
[  155.916240] sof-audio-pci 0000:00:1f.3: generating page table for 0000000075d0612b size 0x7cf80 pages 125
[  155.916246] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
[  155.916261] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful
[  155.916279] sof-audio-pci 0000:00:1f.3: period_bytes:0x3e7c0
[  155.916282] sof-audio-pci 0000:00:1f.3: periods:2
[  155.916294] sof-audio-pci 0000:00:1f.3: stream_tag 2
[  155.916301] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS
[  155.916598] sof-audio-pci 0000:00:1f.3: error: ipc error for 0x60010000 size 20
[  155.916601] sof-audio-pci 0000:00:1f.3: error: hw params ipc failed for stream 2
[  155.916603] sof-audio-pci 0000:00:1f.3: ASoC: 0000:00:1f.3 hw params failed: -22
[  155.916605]  DMIC16k: ASoC: hw_params FE failed -22
[  155.916608] sof-audio-pci 0000:00:1f.3: pcm: free stream 100 dir 1
[  155.916729] sof-audio-pci 0000:00:1f.3: pcm: close stream 100 dir 1
[  156.815606] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[  156.815638] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG

dmesg_wov_006.txt
full_sof_wov_006.txt

sof-tgl-max98373-rt5682.conf.txt

SectionPCMCapabilities."Sound Trigger Capture 100" {

	formats "S32_LE,S24_LE,S16_LE"
	rate_min "16000"
	rate_max "16000"
	channels_min "2"
	channels_max "2"
	periods_min "2"
	periods_max "160"
	period_size_min	"192"
	period_size_max	"256000"
	buffer_size_min	"256000"
	buffer_size_max	"1280000"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    I2SApplies to I2S bus for codec connectionTGLApplies to Tiger LakebugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions