Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pipewire pipewire
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 585
    • Issues 585
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PipeWirePipeWire
  • pipewirepipewire
  • Issues
  • #935
Closed
Open
Issue created Mar 20, 2021 by Wellington Wallace Miguel Melo@wwmm

PipeWire API: how to know if a headphone is plugged?

In Pulseaudio PulseEffects has a feature where a preset can be automatically loaded depending on the default device selected by the user and also if the device is the same but a headphone is plugged.

Right now this feature is only partially working in PipeWire. If the user switches to a different card it works because the node name changes and I can use that to load a different preset just like in Pulseaudio. But for headphones this functionality is broken because I do not know how to detect if a headphone is plugged or not in PipeWire. In Pulseaudio the device has a property named port. If it is not null then something is plugged there and an identifier name can be read. I am not sure what to search for in PipeWire.

Ironically if the user runs our Pulseaudio release in PipeWire's compatibility layer for Pulseaudio the feature works for headphones https://github.com/wwmm/pulseeffects/issues/918#issuecomment-803344737. So there is something obvious I am missing here =/

Edited Mar 20, 2021 by Wellington Wallace Miguel Melo
Assignee
Assign to
Time tracking