Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893228 - media-video/pipewire: Enforce CONFIG_SND_PROC_FS=y Kernel config option
Summary: media-video/pipewire: Enforce CONFIG_SND_PROC_FS=y Kernel config option
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 17:25 UTC by CaptainBlood
Modified: 2023-10-01 14:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2023-02-04 17:25:39 UTC
It has been failing for a while here.
Had 2 use alsa output.
For what ever reason CONFIG_SND_PROC_FS=y has then been set here.
pipewire output then started to work.

Went back & forth to double check, successfully.

Reproducible: Always
Comment 1 Adrian Schollmeyer 2023-02-05 20:04:01 UTC
Just to be clear: You experience failures when running with a custom configured Linux Kernel with CONFIG_SND_PROC_FS!=y, right?

Unfortunately I have been unable to get a custom configured Kernel working on my laptop due to some weird Firmware issues, so I can only do tests with sys-kernel/gentoo-kernel, which has CONFIG_SND_PROC_FS=y set.

Also, what do you mean with “fails as a service”? Does this mean MPD only fails when run via your system's service manager (OpenRC, systemd, etc.) or does this issue occur regardless of how MPD is started?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-05 20:15:35 UTC
(In reply to Adrian Schollmeyer from comment #1)
> Also, what do you mean with “fails as a service”? Does this mean MPD only
> fails when run via your system's service manager (OpenRC, systemd, etc.) or
> does this issue occur regardless of how MPD is started?

Also, does it fail to start? Any output in journal/syslog/whatever? Or does it fail at runtime?
Comment 3 CaptainBlood 2023-02-05 22:13:59 UTC
> You experience failures when running with a custom configured Linux Kernel with CONFIG_SND_PROC_FS!=y, right?
snippet from ~/.config/mpd/mpd.conf:
audio_output {
	type		"pipewire"
	name		"Pipewire Sound Server"
} doesn't work indeed.

> What do you mean with “fails as a service”?
Only 
[pipewire] fails as a service
is relevant there, as described above.

> Or does it fail at runtime?
Yes. Remaining is paused state. terminal echoes ~ "No output available" upon resume.

snippet from ~/.config/mpd/mpd.conf:
audio_output {
	type		"alsa"
	name		"My ALSA Device"
	device		"hw:0,0"	# optional
##	mixer_type      "hardware"	# optional
##	mixer_device	"default"	# optional
##	mixer_control	"PCM"		# optional
##	mixer_index	"0"		# optional
}works fine when configured.
Comment 4 CaptainBlood 2023-02-06 23:07:38 UTC
> this issue occur regardless of how MPD is started.
Indeed.
Comment 5 Adrian Schollmeyer 2023-02-17 16:43:10 UTC
I think the culprit isn't MPD, but rather PipeWire itself, which uses procfs to obtain info about the sound cards. See this comment [0] in the PipeWire source code.

@sam/leio: Since you are the maintainers of media-video/pipewire, could you please have a look at this? I think this might require enforcing CONFIG_SND_PROC_FS!=n in media-video/pipewire.

@CaptainBlood: You might wanna try reproducing this issue with PipeWire clients other than MPD, since you actually have a Kernel with that config option disabled. I suspect you might be able to reproduce this with software other than MPD.

[0] https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/1c9ffef813232d0a80b6597476d01f5e28864709/spa/plugins/alsa/alsa-udev.c#L303-311
Comment 6 Adrian Schollmeyer 2023-02-25 16:17:22 UTC
According to the Wiki [0] CONFIG_SND_PROC_FS is already required for PipeWire to work. It's up to the maintainers of media-video/pipewire if they'd like to check for the Kernel config option in the ebuild, but it's definitely not a problem with media-sound/mpd.

[0] https://wiki.gentoo.org/wiki/PipeWire#Kernel
Comment 7 CaptainBlood 2023-10-01 14:55:22 UTC
Contrary to wiki, CONFIG_SND_VERBOSE_PROCFS isn't set here.
Not saying it may help in some cases, though.