Ticket #164 (reopened enhancement)

Opened 9 months ago

Last modified 3 months ago

Change number of channels at runtime

Reported by: shogun_panda Assigned to: lennart
Priority: normal Milestone:
Component: daemon Severity: normal
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 on 06/02/08 17:39:37.
Patch from openSUSE to allow changing speaker setup on the fly

Change History

11/19/07 12:31:22 changed 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!

11/19/07 23:35:45 changed by lennart

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

Closing this then.

11/21/07 11:49:28 changed by shogun_panda

  • status changed from closed to reopened.
  • resolution 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

06/02/08 17:34:27 changed by rodrigo

  • cc set to rodrigo.

06/02/08 17:39:37 changed by rodrigo

  • attachment paprefs-speaker-setup.patch added.

Patch from openSUSE to allow changing speaker setup on the fly

06/02/08 17:41:34 changed 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