From f30b4bf5062fca18ce5c1230f7ab4fbf970fa63d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 24 Oct 2019 12:48:28 +0200 Subject: [PATCH] alsa-seq; remove latency property --- spa/plugins/alsa/alsa-seq-source.c | 26 ++------------------------ spa/plugins/alsa/alsa-seq.h | 2 -- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/spa/plugins/alsa/alsa-seq-source.c b/spa/plugins/alsa/alsa-seq-source.c index 1e0f53fdf..484d56c86 100644 --- a/spa/plugins/alsa/alsa-seq-source.c +++ b/spa/plugins/alsa/alsa-seq-source.c @@ -41,14 +41,10 @@ #include "alsa-seq.h" static const char default_device[] = "default"; -static const uint32_t default_min_latency = 64; -static const uint32_t default_max_latency = 1024; static void reset_props(struct props *props) { strncpy(props->device, default_device, 64); - props->min_latency = default_min_latency; - props->max_latency = default_max_latency; } static int impl_node_enum_params(void *object, int seq, @@ -85,20 +81,6 @@ static int impl_node_enum_params(void *object, int seq, SPA_PROP_INFO_name, SPA_POD_String("The ALSA device"), SPA_PROP_INFO_type, SPA_POD_Stringn(p->device, sizeof(p->device))); break; - case 1: - param = spa_pod_builder_add_object(&b, - SPA_TYPE_OBJECT_PropInfo, id, - SPA_PROP_INFO_id, SPA_POD_Id(SPA_PROP_minLatency), - SPA_PROP_INFO_name, SPA_POD_String("The minimum latency"), - SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Int(p->min_latency, 1, INT32_MAX)); - break; - case 2: - param = spa_pod_builder_add_object(&b, - SPA_TYPE_OBJECT_PropInfo, id, - SPA_PROP_INFO_id, SPA_POD_Id(SPA_PROP_maxLatency), - SPA_PROP_INFO_name, SPA_POD_String("The maximum latency"), - SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Int(p->max_latency, 1, INT32_MAX)); - break; default: return 0; } @@ -109,9 +91,7 @@ static int impl_node_enum_params(void *object, int seq, case 0: param = spa_pod_builder_add_object(&b, SPA_TYPE_OBJECT_Props, id, - SPA_PROP_device, SPA_POD_Stringn(p->device, sizeof(p->device)), - SPA_PROP_minLatency, SPA_POD_Int(p->min_latency), - SPA_PROP_maxLatency, SPA_POD_Int(p->max_latency)); + SPA_PROP_device, SPA_POD_Stringn(p->device, sizeof(p->device))); break; default: return 0; @@ -190,9 +170,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags, } spa_pod_parse_object(param, SPA_TYPE_OBJECT_Props, NULL, - SPA_PROP_device, SPA_POD_OPT_Stringn(p->device, sizeof(p->device)), - SPA_PROP_minLatency, SPA_POD_OPT_Int(&p->min_latency), - SPA_PROP_maxLatency, SPA_POD_OPT_Int(&p->max_latency)); + SPA_PROP_device, SPA_POD_OPT_Stringn(p->device, sizeof(p->device))); break; } default: diff --git a/spa/plugins/alsa/alsa-seq.h b/spa/plugins/alsa/alsa-seq.h index f9e43f9e6..66bb16be9 100644 --- a/spa/plugins/alsa/alsa-seq.h +++ b/spa/plugins/alsa/alsa-seq.h @@ -46,8 +46,6 @@ extern "C" { struct props { char device[64]; - uint32_t min_latency; - uint32_t max_latency; }; #define MAX_EVENT_SIZE 1024