Giter Site home page Giter Site logo

Comments (7)

tlauda avatar tlauda commented on August 15, 2024

@plbossart HiFi3 or generic implementation?

from sof.

plbossart avatar plbossart commented on August 15, 2024

from sof.

lgirdwood avatar lgirdwood commented on August 15, 2024

@singalsu this may need ZC or a smaller step size.

from sof.

singalsu avatar singalsu commented on August 15, 2024

@lgirdwood Sure, I will check some options after doing the updates to my UP2. Also as 3rd option logarithmic step could cope with larger step length. Zero crossings detection based volume update could be best but it would need largest amount of work.

from sof.

singalsu avatar singalsu commented on August 15, 2024

I can now repeat the issue with my UP2+HiFiBerry after some struggle with fresh code. It's a bit hard to hear the zipper with music but with sine (997 Hz) it's quite audible.

from sof.

singalsu avatar singalsu commented on August 15, 2024

The effect is also a bit different when pressing cursor keys in alsamixer vs. running successive commands like
amixer sset 'PGA1.0 Master Playback Volume 1',0 10 10
and
amixer sset 'PGA1.0 Master Playback Volume 1',0 32 32
so there may be two different issues. For the cursor keys case I wonder if the previous ramp has completed before the new target gain is received. The zipper noise is stronger in the keys press case. Recording the playback should confirm what happens.

Note: I'm testing with gcc compiled FW. But it looks like the HiFi3 version just uses different copy function versions while the volwork code is shared so the issue should be the same.

from sof.

singalsu avatar singalsu commented on August 15, 2024

I will submit a pull request with 250 ms long linear volume ramp (was 64 ms) and with gain value update rate increased to every 1 ms (was 2 ms). I can still hear very silent zipper noise with sine wave but no more with music. If it's considered still too noisy maybe there's still room for some ramp length increase. Or consider changing ramp to logarithmic (still a small change) or even use ZC detection (major change, includes HiFi3 optimized code).

from sof.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.