Skip to content

[BUG][TGL]Get blob test failed when using sof-ctl tools #2222

Closed

Description

@YvonneYang2

Describe the bug
When run command " ./sof-ctl -Dhw:0 -c name= 'SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1 "
It shows "sof-ctl: control.c:302: snd_ctl_elem_info: Assertion `ctl && info && (info->id.name[0] || info->id.numid)' failed."
@keyonjie Could you have a look? Thanks.

To Reproduce

  1. System boot up.
  2. put dsmparam_.txt and sof-ctl in ./ folder.
    dsmparam_.txt
  3. Run command "./sof-ctl -Dhw:0 -c name= 'SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1 "

Console shows:

~$ amixer contents | grep "SMART_AMP"
numid=186,iface=MIXER,name='SMART_AMP3.0 Smart_amp Config'
numid=187,iface=MIXER,name='SMART_AMP3.0 Smart_amp Model'
~$ sof-ctl -Dhw:0 -c name= 'SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1
sof-ctl: control.c:302: snd_ctl_elem_info: Assertion `ctl && info && (info->id.name[0] || info->id.numid)' failed.
Aborted (core dumped)

Reproduction Rate
10/10

Expected behavior
sof-ctl can read it successfully.

Environment
https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)
revert regression on USB-C 6a7c533
revert d4b41f8
revert regression on PINCTRL cd0a323
FW:
https://github.com/thesofproject/sof/tree/releases/tgl/v7.0-rc2 commit: b36dabe4
revert e35e91de652e06183c51ecc9814e7165f780c116
+PR 3069
TPLG: same as fw path sof-tgl-sdw-max98373-rt5682-4ch.tplg rename to sof-tgl-sdw-max98373-rt5682.tplg
platform: TGL chrome book with codec 98373 in SDW mode

dmesg.log
all-logger.log

Activity

  1. added
    bugSomething isn't working
    TGLApplies to Tiger Lake platform
    on Jun 22, 2020
  2. sinahuang commented on Jun 23, 2020

    @sinahuang

    Issue also can be seen on TGL chrome book with codec 98373 in I2S mode.

  3. YvonneYang2 commented on Jun 23, 2020

    @YvonneYang2
    Author

    Verified #2226 , error can still be reproduced.

  4. RanderWang commented on Jun 29, 2020

    @RanderWang

    After tracing ALSA lib, I finally found root reason. no space after "name="

    - " ./sof-ctl -Dhw:0 -c name= 'SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1 "
    + " ./sof-ctl -Dhw:0 -c name='SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1 "
  5. YvonneYang2 commented on Jun 29, 2020

    @YvonneYang2
    Author

    Checked it with "./sof-ctl -Dhw:0 -c name='SMART_AMP3.0 Smart_amp Model' -br -s dsmparam_.txt -t 1"
    Issue cannot be reproduced.

    Close it.

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

Metadata

Metadata

Assignees

Labels

TGLApplies to Tiger Lake platformbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions