mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
alsa: add on and off profiles
This commit is contained in:
parent
354bb042e2
commit
bf344a86e5
5 changed files with 199 additions and 46 deletions
|
|
@ -42,7 +42,8 @@ enum spa_param_type {
|
|||
SPA_PARAM_Buffers, /**< buffer configurations */
|
||||
SPA_PARAM_Meta, /**< allowed metadata for buffers */
|
||||
SPA_PARAM_IO, /**< configurable IO areas */
|
||||
SPA_PARAM_Profile, /**< port profile configuration */
|
||||
SPA_PARAM_EnumProfile, /**< profile enumeration */
|
||||
SPA_PARAM_Profile, /**< profile configuration */
|
||||
};
|
||||
|
||||
/** Properties for SPA_TYPE_OBJECT_ParamList */
|
||||
|
|
@ -78,6 +79,8 @@ enum spa_param_io {
|
|||
/** properties for SPA_TYPE_OBJECT_ParamProfile */
|
||||
enum spa_param_profile {
|
||||
SPA_PARAM_PROFILE_START, /**< object id, one of enum spa_param_type */
|
||||
SPA_PARAM_PROFILE_id, /**< profile id */
|
||||
SPA_PARAM_PROFILE_name, /**< profile name */
|
||||
SPA_PARAM_PROFILE_direction, /**< direction, input/output */
|
||||
SPA_PARAM_PROFILE_format, /**< profile format specification */
|
||||
};
|
||||
|
|
|
|||
|
|
@ -264,6 +264,8 @@ static const struct spa_type_info spa_type_param_buffers[] = {
|
|||
|
||||
static const struct spa_type_info spa_type_param_profile[] = {
|
||||
{ SPA_PARAM_PROFILE_START, SPA_TYPE_PARAM_PROFILE_BASE, SPA_TYPE_Id, spa_type_param, },
|
||||
{ SPA_PARAM_PROFILE_id, SPA_TYPE_PARAM_PROFILE_BASE "id", SPA_TYPE_Int, },
|
||||
{ SPA_PARAM_PROFILE_name, SPA_TYPE_PARAM_PROFILE_BASE "name", SPA_TYPE_String, },
|
||||
{ SPA_PARAM_PROFILE_direction, SPA_TYPE_PARAM_PROFILE_BASE "direction", SPA_TYPE_Id, spa_type_direction },
|
||||
{ SPA_PARAM_PROFILE_format, SPA_TYPE_PARAM_PROFILE_BASE "format", SPA_TYPE_Object, NULL, },
|
||||
{ 0, NULL, },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue