Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALSA volume control is broken [partial fix included] #5

Closed
benosteen opened this issue Apr 18, 2012 · 4 comments
Closed

ALSA volume control is broken [partial fix included] #5

benosteen opened this issue Apr 18, 2012 · 4 comments

Comments

@benosteen
Copy link

benosteen/linux@067ac7c

This doesn't solve the actual problem, but does allow for smooth control of apparent volume using 'alsamixer' for example.

However, this ALSA control doesn't seem to affect the output volume at all, and it's not something I can debug further without knowing more about what values I should be passing over vcos(?) to the OpenMAX IL side of things to affect volume.

@benosteen
Copy link
Author

Refined control in this commit: benosteen/linux@25f94a1

I haven't been able to reverse-engineer what the volume curve is for this control, but this commit at least fixes the direction of it, and it now does affect the volume in the way you might expect.

It doesn't quite mute it however...

@popcornmix
Copy link
Contributor

Internally on GPU this is the volume scale:
Sets the volume (attenuation in dB) on the given player as a 24.8 fixed
point number. Negative values (up to -24.0dB) amplify the signal, but
clipping could then occur.

@benosteen
Copy link
Author

Brilliant! :) So the upper limit that the volume accepts is at it's loudest -6144 (-24.0). I've guestimated +24.0dB for the quietest value, which seems to be in the right ballpark and altered my fork of the src.

Is there any documentation on how to raise a mute flag on the gpu hw? Does it have that capability?

@popcornmix
Copy link
Contributor

I believe this was fixed in
raspberrypi/linux@b683e89
Please reopen if there is still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants