mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
alsa: Add pa_alsa_jack_new() and pa_alsa_jack_free()
This reduces code duplication in alsa-mixer.c and alsa-ucm.c. No functional changes.
This commit is contained in:
parent
c50766b52a
commit
f5fecff0b4
3 changed files with 39 additions and 25 deletions
|
|
@ -170,6 +170,9 @@ struct pa_alsa_jack {
|
|||
pa_alsa_required_t required_absent;
|
||||
};
|
||||
|
||||
pa_alsa_jack *pa_alsa_jack_new(pa_alsa_path *path, const char *name, const char *alsa_name);
|
||||
void pa_alsa_jack_free(pa_alsa_jack *jack);
|
||||
|
||||
/* A path wraps a series of elements into a single entity which can be
|
||||
* used to control it as if it had a single volume slider, a single
|
||||
* mute switch and a single list of selectable options. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue