Bug 90168 - No sound after using pactl set-sink-volume on FreeBSD
Summary: No sound after using pactl set-sink-volume on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: modules (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 06:23 UTC by Ting-Wei Lan
Modified: 2015-04-30 10:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Ting-Wei Lan 2015-04-25 06:23:34 UTC
I get no sound after using pactl or gnome-shell to change the volume, regardless of the value of the volume. I find the volume of pcm, which can be showed by 'mixer' command, is always set to 0 after using pactl.

A patch is available in FreeBSD ports: http://svnweb.freebsd.org/ports/head/audio/pulseaudio/files/patch-src_modules_oss_module-oss.c?revision=372768&view=markup
Comment 1 Tanu Kaskinen 2015-04-29 14:48:27 UTC
Thanks for reporting.

The link you gave points to a PulseAudio change, but the change is part of a bigger commit: http://svnweb.freebsd.org/ports?view=revision&revision=372768

Is only that small part required to fix the volume problem?
Comment 2 Tanu Kaskinen 2015-04-29 15:05:41 UTC
Hmm, actually this seems to be the original commit: http://svnweb.freebsd.org/ports?limit_changes=0&view=revision&revision=237576

Revision 372768 just adds a comment to the old patch.

The original patch was committed by "marcus", do you know the full name and email address of "marcus"? Those would be useful for the git commit authorship information.
Comment 3 Ting-Wei Lan 2015-04-29 18:54:39 UTC
Yes, only the patch for src/modules/oss/module-oss.c is needed. I tested using the master branch.

The name and email of "marcus" can be found on this web page:
http://www.freebsd.org/gnome/contact.html
Comment 4 Tanu Kaskinen 2015-04-30 10:27:36 UTC
Now that I looked more closely at what the patch does, the first part (adding #ifndef __FreeBSD__) doesn't make sense to me. However, the mixer fd fix is obviously good.

I'll apply the mixer fd fix. If you really need the first part of the patch too, I'll apply it separately, if you can explain why it's needed.

I'm closing this bug, please reopen if necessary.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.