Home
last modified time | relevance | path

Searched refs:PA_ERR_INVALID (Results 1 – 19 of 19) sorted by relevance

/third_party/pulseaudio/src/pulse/
Dformat.c228 return -PA_ERR_INVALID; in pa_format_info_to_sample_spec()
230 return -PA_ERR_INVALID; in pa_format_info_to_sample_spec()
232 return -PA_ERR_INVALID; in pa_format_info_to_sample_spec()
234 return -PA_ERR_INVALID; in pa_format_info_to_sample_spec()
324 return -PA_ERR_INVALID; in pa_format_info_get_prop_int()
330 return -PA_ERR_INVALID; in pa_format_info_get_prop_int()
343 int ret = -PA_ERR_INVALID; in pa_format_info_get_prop_int_range()
357 return -PA_ERR_INVALID; in pa_format_info_get_prop_int_range()
389 int i, ret = -PA_ERR_INVALID; in pa_format_info_get_prop_int_array()
403 return -PA_ERR_INVALID; in pa_format_info_get_prop_int_array()
[all …]
Dscache.c47 PA_CHECK_VALIDITY(s->context, length > 0, PA_ERR_INVALID); in pa_stream_connect_upload()
48 PA_CHECK_VALIDITY(s->context, length == (size_t) (uint32_t) length, PA_ERR_INVALID); in pa_stream_connect_upload()
54 PA_CHECK_VALIDITY(s->context, name && *name && pa_utf8_valid(name), PA_ERR_INVALID); in pa_stream_connect_upload()
178 PA_CHECK_VALIDITY_RETURN_NULL(c, name && *name, PA_ERR_INVALID); in pa_context_play_sample()
179 PA_CHECK_VALIDITY_RETURN_NULL(c, !dev || *dev, PA_ERR_INVALID); in pa_context_play_sample()
218 PA_CHECK_VALIDITY_RETURN_NULL(c, name && *name, PA_ERR_INVALID); in pa_context_play_sample_with_proplist()
219 PA_CHECK_VALIDITY_RETURN_NULL(c, !dev || *dev, PA_ERR_INVALID); in pa_context_play_sample_with_proplist()
261 PA_CHECK_VALIDITY_RETURN_NULL(c, name && *name, PA_ERR_INVALID); in pa_context_remove_sample()
Dsimple.c151 CHECK_VALIDITY_RETURN_ANY(rerror, !server || *server, PA_ERR_INVALID, NULL); in pa_simple_new()
152 …ITY_RETURN_ANY(rerror, dir == PA_STREAM_PLAYBACK || dir == PA_STREAM_RECORD, PA_ERR_INVALID, NULL); in pa_simple_new()
153 CHECK_VALIDITY_RETURN_ANY(rerror, !dev || *dev, PA_ERR_INVALID, NULL); in pa_simple_new()
154 CHECK_VALIDITY_RETURN_ANY(rerror, ss && pa_sample_spec_valid(ss), PA_ERR_INVALID, NULL); in pa_simple_new()
155 …rerror, !map || (pa_channel_map_valid(map) && map->channels == ss->channels), PA_ERR_INVALID, NULL) in pa_simple_new()
276 CHECK_VALIDITY_RETURN_ANY(rerror, data, PA_ERR_INVALID, -1); in pa_simple_write()
277 CHECK_VALIDITY_RETURN_ANY(rerror, length > 0, PA_ERR_INVALID, -1); in pa_simple_write()
316 CHECK_VALIDITY_RETURN_ANY(rerror, data, PA_ERR_INVALID, -1); in pa_simple_read()
317 CHECK_VALIDITY_RETURN_ANY(rerror, length > 0, PA_ERR_INVALID, -1); in pa_simple_read()
Dintrospect.c351 PA_CHECK_VALIDITY_RETURN_NULL(c, !name || *name, PA_ERR_INVALID); in pa_context_get_sink_info_by_name()
374 PA_CHECK_VALIDITY_RETURN_NULL(c, idx != PA_INVALID_INDEX, PA_ERR_INVALID); in pa_context_set_sink_port_by_index()
399 PA_CHECK_VALIDITY_RETURN_NULL(c, !name || *name, PA_ERR_INVALID); in pa_context_set_sink_port_by_name()
630 PA_CHECK_VALIDITY_RETURN_NULL(c, !name || *name, PA_ERR_INVALID); in pa_context_get_source_info_by_name()
653 PA_CHECK_VALIDITY_RETURN_NULL(c, idx != PA_INVALID_INDEX, PA_ERR_INVALID); in pa_context_set_source_port_by_index()
678 PA_CHECK_VALIDITY_RETURN_NULL(c, !name || *name, PA_ERR_INVALID); in pa_context_set_source_port_by_name()
760 PA_CHECK_VALIDITY_RETURN_NULL(c, idx != PA_INVALID_INDEX, PA_ERR_INVALID); in pa_context_get_client_info()
1024 PA_CHECK_VALIDITY_RETURN_NULL(c, idx != PA_INVALID_INDEX, PA_ERR_INVALID); in pa_context_get_card_info_by_index()
1049 PA_CHECK_VALIDITY_RETURN_NULL(c, !name || *name, PA_ERR_INVALID); in pa_context_get_card_info_by_name()
1079 PA_CHECK_VALIDITY_RETURN_NULL(c, idx != PA_INVALID_INDEX, PA_ERR_INVALID); in pa_context_set_card_profile_by_index()
[all …]
Ddef.h475 PA_ERR_INVALID, /**< Invalid argument */ enumerator
506 #define PA_ERR_INVALID PA_ERR_INVALID macro
Dstream.c104 …ALIDITY_RETURN_NULL(c, name || (p && pa_proplist_contains(p, PA_PROP_MEDIA_NAME)), PA_ERR_INVALID); in pa_stream_new_with_proplist_internal()
218 PA_CHECK_VALIDITY_RETURN_NULL(c, ss && pa_sample_spec_valid(ss), PA_ERR_INVALID); in pa_stream_new_with_proplist()
222 …TURN_NULL(c, !map || (pa_channel_map_valid(map) && map->channels == ss->channels), PA_ERR_INVALID); in pa_stream_new_with_proplist()
225 …LL(c, map = pa_channel_map_init_auto(&tmap, ss->channels, PA_CHANNEL_MAP_DEFAULT), PA_ERR_INVALID); in pa_stream_new_with_proplist()
1242 PA_STREAM_PASSTHROUGH)), PA_ERR_INVALID); in create_stream()
1252 …Y(s->context, direction == PA_STREAM_RECORD || !(flags & (PA_STREAM_PEAK_DETECT)), PA_ERR_INVALID); in create_stream()
1253 …(direction == PA_STREAM_PLAYBACK && sync_stream->direction == PA_STREAM_PLAYBACK), PA_ERR_INVALID); in create_stream()
1254 …PA_STREAM_EARLY_REQUESTS)) != (PA_STREAM_ADJUST_LATENCY|PA_STREAM_EARLY_REQUESTS), PA_ERR_INVALID); in create_stream()
1451 PA_CHECK_VALIDITY(s->context, data, PA_ERR_INVALID); in pa_stream_begin_write()
1452 PA_CHECK_VALIDITY(s->context, nbytes && *nbytes != 0, PA_ERR_INVALID); in pa_stream_begin_write()
[all …]
Derror.c41 [PA_ERR_INVALID] = N_("Invalid argument"), in pa_strerror()
Dcontext.c993 PA_CHECK_VALIDITY(c, !(flags & ~(PA_CONTEXT_NOAUTOSPAWN|PA_CONTEXT_NOFAIL)), PA_ERR_INVALID);
994 PA_CHECK_VALIDITY(c, !server || *server, PA_ERR_INVALID);
1098 return PA_ERR_INVALID;
1408 …(c, mode == PA_UPDATE_SET || mode == PA_UPDATE_MERGE || mode == PA_UPDATE_REPLACE, PA_ERR_INVALID);
1437 PA_CHECK_VALIDITY_RETURN_NULL(c, keys && keys[0], PA_ERR_INVALID);
1655 PA_CHECK_VALIDITY_RETURN_ANY(c, !ss || pa_sample_spec_valid(ss), PA_ERR_INVALID, (size_t) -1);
1668 PA_CHECK_VALIDITY(c, !cookie_file_path || *cookie_file_path, PA_ERR_INVALID);
Dext-stream-restore.c243 pa_context_set_error(c, PA_ERR_INVALID); in pa_ext_stream_restore_write()
291 pa_context_set_error(c, PA_ERR_INVALID); in pa_ext_stream_restore_delete()
Dext-device-manager.c226 PA_CHECK_VALIDITY_RETURN_NULL(c, *description, PA_ERR_INVALID); in pa_ext_device_manager_set_device_description()
291 pa_context_set_error(c, PA_ERR_INVALID); in pa_ext_device_manager_delete()
/third_party/pulseaudio/src/pulsecore/
Dstream-util.c52 return -PA_ERR_INVALID; in pa_stream_get_volume_channel_map()
63 return -PA_ERR_INVALID; in pa_stream_get_volume_channel_map()
68 return -PA_ERR_INVALID; in pa_stream_get_volume_channel_map()
83 return -PA_ERR_INVALID; in pa_stream_get_volume_channel_map()
Dprotocol-native.c1003 *ret = PA_ERR_INVALID; in playback_stream_new()
1901 int ret = PA_ERR_INVALID; in command_create_playback_stream()
1932 … || pa_namereg_is_valid_name_or_wildcard(sink_name, PA_NAMEREG_SINK), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1933 …LIDITY_GOTO(c->pstream, sink_index == PA_INVALID_INDEX || !sink_name, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1934 …LIDITY_GOTO(c->pstream, !sink_name || sink_index == PA_INVALID_INDEX, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1935 CHECK_VALIDITY_GOTO(c->pstream, pa_cvolume_valid(&volume), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2028 CHECK_VALIDITY_GOTO(c->pstream, pa_sample_spec_valid(&ss), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2029 …tream, map.channels == ss.channels && volume.channels == ss.channels, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2030 CHECK_VALIDITY_GOTO(c->pstream, pa_channel_map_valid(&map), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2033 … CHECK_VALIDITY_GOTO(c->pstream, pa_format_info_valid(format), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
[all …]
Dcore-format.c110 return -PA_ERR_INVALID; in pa_format_info_to_sample_spec2()
157 …turn_val_if_fail(pa_format_info_get_prop_int(f, PA_PROP_FORMAT_RATE, &rate) == 0, -PA_ERR_INVALID); in pa_format_info_to_sample_spec_fake()
Dmessage-handler.c151 return -PA_ERR_INVALID; in pa_message_handler_send_message()
Dsource-output.c266 return -PA_ERR_INVALID; in pa_source_output_new()
276 pa_return_val_if_fail(!data->driver || pa_utf8_valid(data->driver), -PA_ERR_INVALID); in pa_source_output_new()
283 pa_return_val_if_fail(source, -PA_ERR_INVALID); in pa_source_output_new()
316 …data->direct_on_input || data->direct_on_input->sink == data->source->monitor_of, -PA_ERR_INVALID); in pa_source_output_new()
367 …turn_val_if_fail(pa_cvolume_compatible(&data->volume_factor, &data->sample_spec), -PA_ERR_INVALID); in pa_source_output_new()
372 …l(pa_cvolume_compatible(&data->volume_factor_source, &data->source->sample_spec), -PA_ERR_INVALID); in pa_source_output_new()
397 pa_return_val_if_fail(data->resample_method < PA_RESAMPLER_MAX, -PA_ERR_INVALID); in pa_source_output_new()
Dcard.c499 return -PA_ERR_INVALID; in card_message_handler()
Dsink-input.c391 return -PA_ERR_INVALID; in pa_sink_input_new()
401 pa_return_val_if_fail(!data->driver || pa_utf8_valid(data->driver), -PA_ERR_INVALID); in pa_sink_input_new()
435 -PA_ERR_INVALID); in pa_sink_input_new()
510 pa_return_val_if_fail(data->resample_method < PA_RESAMPLER_MAX, -PA_ERR_INVALID); in pa_sink_input_new()
Dcore-util.c1644 return -PA_ERR_INVALID; in pa_get_data_dirs()
/third_party/pulseaudio/src/modules/bluetooth/
Dmodule-bluez5-device.c2187 return -PA_ERR_INVALID; in uuid_to_profile()
2590 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2600 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2607 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2612 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2617 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2624 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2630 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2648 return -PA_ERR_INVALID; in bluez5_device_message_handler()
2655 return -PA_ERR_INVALID; in bluez5_device_message_handler()