Ticket #164 (closed enhancement: fixed)

Opened 2 years ago

Last modified 14 months ago

Change number of channels at runtime

Reported by: shogun_panda Owned by: lennart
Milestone: 0.9.15 Component: daemon
Keywords: Cc: rodrigo

Description

Hi! I have an Acer laptop which ships an Intel HDA sound card.

This cards support both 5.1 and 2.0 output (which I can manage with channels option), but in former case I have to use all 3 jacks (output, line-in and mic-in) to obtain 5.1 output. When I want to plug a mic or any other device in mic-in or line-in jacks, I have to switch to 2.0 mode.

With ALSA, this could be done with a switch in the mixer. Unfortunately, PA doesn't seems to support this and I have to restart the server (or reload the module) every time to reflect this change. Should be channels numbers be modifiable at runtime?

Best regards!

Shogun

Attachments

paprefs-speaker-setup.patch (52.1 kB) - added by rodrigo 22 months ago.
Patch from openSUSE to allow changing speaker setup on the fly

Change History

Changed 2 years ago by shogun_panda

I just notice I report a little error. ALSA mixer switch only changes jacks' routing, not the channel count. Sorry for the mistake!

Changed 2 years ago by lennart

  • status changed from new to closed
  • resolution set to invalid

Closing this then.

Changed 2 years ago by shogun_panda

  • status changed from closed to reopened
  • resolution invalid deleted

Hi!

I think you set this to invalid by reading my second comment. But when I talked about my mistake I didn't refer to entire ticket but only on what I have written.

What I mean is that this ticket should be read as: "Should you add the possibility to change sink's channels' number at runtime?"

Sorry for misunderstanding. Best regards!

Shogun

Changed 22 months ago by rodrigo

  • cc rodrigo added

Changed 22 months ago by rodrigo

Patch from openSUSE to allow changing speaker setup on the fly

Changed 22 months ago by rodrigo

For this patch we just kill and restart the pulseaudio daemon, but it doesn't work very well, so there should be a better solution

Changed 14 months ago by lennart

  • status changed from reopened to closed
  • resolution set to fixed
  • milestone set to 0.9.15

PA in git now allows "hot" changing of input/output profiles of sound cards. i.e. you can switch between "Analog Stereo", "Digital Stereo", "Analog 5.1" on-the-fly.

Note: See TracTickets for help on using tickets.