Skip to content

HDA analog capture with all 0s #433

Closed

Description

@keyonjie

I tested with glk-003-drop-stable branch(commit 22fa01d) on my LeafHill, arecord can run with HDA analog codec device, but all captured PCM data are 0s.

@mmaka1 can you help on this?

Activity

  1. added
    bugSomething isn't working as expected
    APLApplies to Apollolake platform
    P1Blocker bugs or important features
    on Sep 28, 2018
  2. mengdonglin commented on Sep 28, 2018

    @mengdonglin
    Collaborator

    @RanderWang Could you help to share if capture can work on WHL after you enables HD-A on WHL? Thanks

  3. RanderWang commented on Sep 29, 2018

    @RanderWang
    Collaborator

    @mengdonglin yes, all zero. Thank you for your info and I don't have to debug kernel

  4. self-assigned this
    on Sep 29, 2018
  5. RanderWang commented on Oct 16, 2018

    @RanderWang
    Collaborator

    @lgirdwood

    Update status:
    Janusz tested the FW on windows with loop-back mode, found some noise in capture data.
    I tested it on Linux, only zero data is gotten in FW and HOST. I checked the output of codec
    with an analyzer, the data is sent by codec to DSP. So I think it is very possible that Host
    driver sets some HDA registers wrongly

  6. lgirdwood commented on Oct 16, 2018

    @lgirdwood
    Member

    @RanderWang ok to confirm

    1. Codec sends PCM data to host on HDA bus validated by logic analyser.
    2. Host only reads back PCM data as 0s.

    So can you check

    1. FW link DMA buffer contents, just add some trace to dump first samples in period on every 10th copy. This will show if FW is reading back 0s or not.

    2. If FW reads 0s, please check pinmux settings for HDA Rx pin.

    @mmaka1 and @tlauda any ideas at your end if FW reads 0s in link DMA buffer ?

  7. RanderWang commented on Oct 17, 2018

    @RanderWang
    Collaborator

    @RanderWang ok to confirm

    1. Codec sends PCM data to host on HDA bus validated by logic analyser.
    
    2. Host only reads back PCM data as 0s.
    

    So can you check

    1. FW link DMA buffer contents, just add some trace to dump first samples in period on every 10th copy. This will show if FW is reading back 0s or not.
    
    2. If FW reads 0s, please check pinmux settings for HDA Rx pin.
    

    @mmaka1 and @tlauda any ideas at your end if FW reads 0s in link DMA buffer ?

    I confirm 1 & 2. I also dump data in FW, all zero.

  8. RanderWang commented on Oct 17, 2018

    @RanderWang
    Collaborator

    @lgirdwood

      I also tried legacy HDA, both playback & capture work.  So I think pin setting is correct
    
  9. RanderWang commented on Oct 17, 2018

    @RanderWang
    Collaborator

    I also checked PPLC registers with Janusz, all are correct. Now I ask Janusz for help to dump other registers on Windows.

  10. mengdonglin commented on Oct 19, 2018

    @mengdonglin
    Collaborator

    PR thesofproject/linux#194 is to fix this issue.
    @RanderWang Maybe you can use the magic words "fixes #433" in your PR to automatically close this issue when your PR is merged?

  11. 5 remaining items

  12. mengdonglin commented on Nov 9, 2018

    @mengdonglin
    Collaborator

    @RanderWang Is the issue fixed or need any other PR?

  13. RanderWang commented on Nov 9, 2018

    @RanderWang
    Collaborator

    @mengdonglin Another PR

  14. jocelyn-li commented on Nov 24, 2018

    @jocelyn-li

    thesofproject/linux#291 is to fix this issue.

  15. jocelyn-li commented on Dec 7, 2018

    @jocelyn-li

    @RanderWang can this be closed as thesofproject/linux#291 was merged?

  16. mengdonglin commented on Dec 17, 2018

    @mengdonglin
    Collaborator

    Closing this issue since it's fixed by thesofproject/linux#291.

  17. mengdonglin commented on Dec 17, 2018

    @mengdonglin
    Collaborator

    Will revisit HDA capture on WHL when #700 is fixed.

  18. RanderWang commented on Mar 5, 2019

    @RanderWang
    Collaborator

    fixed

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

Metadata

Metadata

Assignees

Labels

APLApplies to Apollolake platformP1Blocker bugs or important featuresWHLApplies to WhiskeyLake platformbugSomething isn't working as expectedlinuxProved to be a Linux kernel driver issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions