Skip to content

PM: the dai config message sent by hda_load and sof_restore_pipelines are not the same #442

Closed

Description

@zhuyingjiang

The tx message sequence which send by first load and the tx message sequence by runtime resume are not the same. This leads to WHL have error when do runtime resume:
[ 19.377552] sof-audio sof-audio: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG
[ 19.377765] sof-audio sof-audio: error: ipc error for 0x80010000 size 0xc
[ 19.377776] sof-audio sof-audio: error: failed to set dai config for Analog Playback and Capture
[ 19.377780] sof-audio sof-audio: error: failed to restore pipeline after resume -5
[ 19.377786] sof-audio sof-audio: error: volume get failed to resume -16

Activity

  1. self-assigned this
    on Dec 14, 2018
  2. plbossart commented on Dec 14, 2018

    @plbossart
    Member

    @zhuyingjiang Can you please provide a better description of the problem and attach the logs for startup and resume. No one can help with the limited information described.

  3. ranj063 commented on Dec 14, 2018

    @ranj063
    Collaborator

    @zhuyingjiang @plbossart I think the problem is in the call to sof_set_dai_config() in sof_link_hda_load().
    For the other dai types, we update config for all dai's matching the link name but for hda we should also match the direction. I think that should fix this problem.

  4. zhuyingjiang commented on Dec 16, 2018

    @zhuyingjiang
    Author

    @ranj063 It is not the direction, it is the dai_index has not been set. Fixed by #450

  5. zhuyingjiang commented on Dec 17, 2018

    @zhuyingjiang
    Author

    down.log
    @plbossart Log attached, with the tx message data also added to log, more analysis is in #450

  6. zhuyingjiang commented on Dec 20, 2018

    @zhuyingjiang
    Author

    #472 will fix this.

  7. wenqingfu commented on Jan 19, 2019

    @wenqingfu

    fixed by #509

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions