module-device-restore: Volume save and restore for all ports?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was chatting with Baughn on IRC last night and he mentioned something
that made me think about a deficiency in module-device-restore.

As jack sensing will eventually be with us, it would make sense to save
and restore the volume of all ports separately. Only saving the current
port's volume would be a pain.

At present, the jack sensing does not work too well, but some h/w (incl.
Baughn's) has internal jack sensing and thus when he plugs in his
headphones he adjusts the "speaker" volume (in a raw alsa mixer -
although the same problem would be present if he switched ports,
adjusted volume and then switched back).


After rebooting, his Speaker volume is not restored (unsurprisingly) as
module-device-restore will only save the volume for a single (i.e. the
active) port, not all ports.

When jack sensing comes in, I presume we would want to save the volume
of the speaker port separately from the volume of the "amplifier" port.
(is this a valid assumption?)

In which case, would it make sense to make module-device-restore
automatically save the volume of each port on shutdown and restore them
all on startup? This approach would mean that even if we use a raw alsa
mixer to adjust the speaker slider, the value would be saved when PA exists.

Does this seem valid or is there another approach here that should be used?

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux