mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-01 06:46:47 -04:00
spa: alsa: Add a mechanism for external volume control
Currently enabled at device creation and delegated to an external entity via a varlink protocol.
This commit is contained in:
parent
6e1fe332ef
commit
ce6961bc08
9 changed files with 758 additions and 88 deletions
|
|
@ -11,6 +11,11 @@
|
|||
#include <poll.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <spa/param/audio/volume.h>
|
||||
#include <spa/support/varlink.h>
|
||||
|
||||
#include "ext-volume.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
|
|
@ -239,6 +244,8 @@ struct acp_device {
|
|||
int64_t latency_ns;
|
||||
uint32_t codecs[32];
|
||||
uint32_t n_codecs;
|
||||
|
||||
uint32_t ext_volume_flags;
|
||||
};
|
||||
|
||||
struct acp_card_profile {
|
||||
|
|
@ -277,6 +284,8 @@ struct acp_card {
|
|||
struct acp_port **ports;
|
||||
uint32_t preferred_input_port_index;
|
||||
uint32_t preferred_output_port_index;
|
||||
|
||||
struct spa_acp_ext_volume ext_volume;
|
||||
};
|
||||
|
||||
struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue