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

fix issue with grabing volume of mono sources and sinks #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jackinloadup
Copy link

fixes #52 I believe

@graysky2 graysky2 force-pushed the master branch 2 times, most recently from 6242df0 to 4115a1c Compare September 12, 2019 19:27
Copy link

@imustafin imustafin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to send a similar PR :)

@jackinloadup @graysky2 indeed this should fix #52 and that issue is a real problem.

My headset is mono and I have a similar problem to #52.

My headset has no Front {Left, Right} channels and has only Mono channel:

  * index: 2
	name: <alsa_output.usb-Razer_Razer_Nari-00.mono-fallback>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9040
	volume: mono: 25658 /  39% / -24.44 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537

Compared to stereo

    index: 1
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 30419 /  46% / -20.00 dB,   front-right: 30419 /  46% / -20.00 dB
	        balance 0.00

Thus this PR should fix the problem.

common/pulseaudio-ctl.in Outdated Show resolved Hide resolved
common/pulseaudio-ctl.in Outdated Show resolved Hide resolved
@graysky2 graysky2 force-pushed the master branch 3 times, most recently from bb1dbd9 to 1eb2a0c Compare May 9, 2021 14:10
@somini somini mentioned this pull request Nov 17, 2021
Correct awk expression

Co-authored-by: Ilgiz Mustafin <[email protected]>
@jackinloadup
Copy link
Author

Apologies for the hiatus. Please comment if this issue is still relevant and I'll put in the time to resolve the conflict and test.

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

Successfully merging this pull request may close these issues.

/usr/bin/pulseaudio-ctl: line 194: 5 + : syntax error: operand expected (error token is "+ ")
2 participants