mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
alsa-util: Add functions for accessing mixer elements through mixer class
Instead of using the hctl interface, we can find controls belonging to other iface types than "mixer". We do this by introducing a new mixer class "SND_MIXER_ELEM_PULSEAUDIO" and create snd_mixer_elem's for all PCM and CARD iface types (as Jacks are of the CARD type and ELD controls are of the PCM type). Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
f7c7cd1825
commit
1fd8848e64
2 changed files with 79 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ bool pa_alsa_may_tsched(bool want);
|
|||
snd_hctl_elem_t* pa_alsa_find_jack(snd_hctl_t *hctl, const char* jack_name);
|
||||
snd_hctl_elem_t* pa_alsa_find_eld_ctl(snd_hctl_t *hctl, int device);
|
||||
|
||||
snd_mixer_elem_t *pa_alsa_mixer_find(snd_mixer_t *mixer, const char *name, unsigned int device);
|
||||
|
||||
snd_mixer_t *pa_alsa_open_mixer(int alsa_card_index, char **ctl_device, snd_hctl_t **hctl);
|
||||
|
||||
typedef struct pa_hdmi_eld pa_hdmi_eld;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue