Skip to content

[Bug][CML]Headset arecord not work when plug in headset as soon as wake up from S3 (2/12) #1055

Closed

Description

@ClarexZhou

Describe the bug
Headset arecord not work when plug in headset as soon as login account when wake up from S3

To Reproduce

  1. System auto login is off (setting->details->users to turn off automatic login)
  2. Enter suspend via Power menu (Long press Shutdown icon after click top right corner, icon will change to suspend icon, then select it)
  3. Press any button to wake up, account password is query.
  4. Plug in headset quickly, just after login account.
  5. 'arecord -Dhw:0,0 -r48000 -c2 -fs16_le 1.wav -vv -i' to catpure.

frequency
2/12

Actual result
Check jack detection via 'amixer cget numid=34', headset can't be detected

Recover method: plug out headset, wait for more than 5 seconds, plug in headset again. Error can be recovered.

Expected result
Arecord should work successfully

Environment
Firmware: 6cc8da10, https://github.com/thesofproject/sof/tree/cml-hda-dmic-001-drop-stable
Kernel: 1cd1a89 sof-v5.0
Topology: file: sof-hda-generic.tplg same path as firmware

No error log.
captureNotWorkAfterPluginASAPafterWakeup_dmesg.log
captureNotWorkAfterPluginASAPafterWakeup_logger.log

Activity

  1. changed the title [-][Bug][CML]Headset arecord not work when plug in headset as soon as wake up from S3 (4/10)[/-] [+][Bug][CML]Headset arecord not work when plug in headset as soon as wake up from S3 (2/12)[/+] on Jun 24, 2019
  2. ClarexZhou commented on Jun 24, 2019

    @ClarexZhou
    Author

    Error also occurred when do quickly plug in/ out during account login when system bootup (4/40)

  3. ClarexZhou commented on Jun 24, 2019

    @ClarexZhou
    Author

    Error also can be reproduced when quick plug in/out several times during sound setting opened.

  4. ranj063 commented on Jun 24, 2019

    @ranj063
    Collaborator

    @ClarexZhou could you please check if #977 helps ?

  5. RanderWang commented on Jun 25, 2019

    @RanderWang

    this issue is same as #1054.

  6. RanderWang commented on Jun 25, 2019

    @RanderWang

    Error also can be reproduced when quick plug in/out several times during sound setting opened.

    This is not a bug, it is can be reproduced with legacy hda driver.

  7. RanderWang commented on Jun 25, 2019

    @RanderWang

    @ClarexZhou could you please check if #977 helps ?

    @ranj063 this PR has been merged in v5.0, but makes no effect for this case.
    I have a idea but need to be confirmed

  8. RanderWang commented on Jun 28, 2019

    @RanderWang

    The patch has been merged

  9. ClarexZhou commented on Jun 28, 2019

    @ClarexZhou
    Author

    Capture not work issue still occurred with PR #1060.
    Scenario 1: System Boot up -> quickly plug in headset -> Then arecord ->capture not work (3/10)
    Scenario 2: Enter S3->wake up->quickly plug in headset just after enter account password.->arecord to check->capture not work. (2/12)

    Can be recovered via plug out headset, wait for more than 5 seconds, plug in headset again. Error can be recovered.

  10. plbossart commented on Jan 17, 2020

    @plbossart
    Member

    @ClarexZhou this issue has been stale for 6+ months, can we close it?

  11. ClarexZhou commented on Jan 17, 2020

    @ClarexZhou
    Author

    close for error not occurred after run 10 times on release/sof-v5.0 fb3a8e4.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions