update for param api change

This commit is contained in:
Wim Taymans 2019-01-18 13:39:37 +01:00
parent 386e5c966c
commit 1fd2e6beae

View file

@ -120,7 +120,7 @@ static void device_event_param(void *object,
if (spa_pod_parse_object(param, if (spa_pod_parse_object(param,
SPA_TYPE_OBJECT_ParamProfile, NULL, SPA_TYPE_OBJECT_ParamProfile, NULL,
SPA_PARAM_PROFILE_id, SPA_POD_Int(&id), SPA_PARAM_PROFILE_index, SPA_POD_Int(&id),
SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) { SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) {
pw_log_warn("device %d: can't parse profile", g->id); pw_log_warn("device %d: can't parse profile", g->id);
return; return;
@ -134,7 +134,7 @@ static void device_event_param(void *object,
uint32_t id; uint32_t id;
if (spa_pod_parse_object(param, if (spa_pod_parse_object(param,
SPA_TYPE_OBJECT_ParamProfile, NULL, SPA_TYPE_OBJECT_ParamProfile, NULL,
SPA_PARAM_PROFILE_id, SPA_POD_Int(&id)) < 0) { SPA_PARAM_PROFILE_index, SPA_POD_Int(&id)) < 0) {
pw_log_warn("device %d: can't parse profile", g->id); pw_log_warn("device %d: can't parse profile", g->id);
return; return;
} }
@ -1261,7 +1261,7 @@ static void card_callback(struct card_data *d)
if (spa_pod_parse_object(profiles[j], if (spa_pod_parse_object(profiles[j],
SPA_TYPE_OBJECT_ParamProfile, NULL, SPA_TYPE_OBJECT_ParamProfile, NULL,
SPA_PARAM_PROFILE_id, SPA_POD_Int(&id), SPA_PARAM_PROFILE_index, SPA_POD_Int(&id),
SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) { SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) {
pw_log_warn("device %d: can't parse profile %d", g->id, j); pw_log_warn("device %d: can't parse profile %d", g->id, j);
continue; continue;
@ -1415,7 +1415,7 @@ static void card_profile(pa_operation *o, void *userdata)
if (spa_pod_parse_object(profiles[i], if (spa_pod_parse_object(profiles[i],
SPA_TYPE_OBJECT_ParamProfile, NULL, SPA_TYPE_OBJECT_ParamProfile, NULL,
SPA_PARAM_PROFILE_id, SPA_POD_Int(&test_id), SPA_PARAM_PROFILE_index, SPA_POD_Int(&test_id),
SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) { SPA_PARAM_PROFILE_name, SPA_POD_String(&name)) < 0) {
pw_log_warn("device %d: can't parse profile %zd", g->id, i); pw_log_warn("device %d: can't parse profile %zd", g->id, i);
continue; continue;
@ -1432,7 +1432,7 @@ static void card_profile(pa_operation *o, void *userdata)
SPA_PARAM_Profile, 0, SPA_PARAM_Profile, 0,
spa_pod_builder_add_object(&b, spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamProfile, SPA_PARAM_Profile, SPA_TYPE_OBJECT_ParamProfile, SPA_PARAM_Profile,
SPA_PARAM_PROFILE_id, SPA_POD_Int(id))); SPA_PARAM_PROFILE_index, SPA_POD_Int(id)));
res = 1; res = 1;
done: done:
if (d->success_cb) if (d->success_cb)