Home
last modified time | relevance | path

Searched refs:PA_ERR_INVALID (Results 1 – 16 of 16) 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
Derror.c41 [PA_ERR_INVALID] = N_("Invalid argument"), in pa_strerror()
Dstream.c102 …ALIDITY_RETURN_NULL(c, name || (p && pa_proplist_contains(p, PA_PROP_MEDIA_NAME)), PA_ERR_INVALID); in pa_stream_new_with_proplist_internal()
216 PA_CHECK_VALIDITY_RETURN_NULL(c, ss && pa_sample_spec_valid(ss), PA_ERR_INVALID); in pa_stream_new_with_proplist()
220 …TURN_NULL(c, !map || (pa_channel_map_valid(map) && map->channels == ss->channels), PA_ERR_INVALID); in pa_stream_new_with_proplist()
223 …LL(c, map = pa_channel_map_init_auto(&tmap, ss->channels, PA_CHANNEL_MAP_DEFAULT), PA_ERR_INVALID); in pa_stream_new_with_proplist()
1223 PA_STREAM_PASSTHROUGH)), PA_ERR_INVALID); in create_stream()
1233 …Y(s->context, direction == PA_STREAM_RECORD || !(flags & (PA_STREAM_PEAK_DETECT)), PA_ERR_INVALID); in create_stream()
1234 …(direction == PA_STREAM_PLAYBACK && sync_stream->direction == PA_STREAM_PLAYBACK), PA_ERR_INVALID); in create_stream()
1235 …PA_STREAM_EARLY_REQUESTS)) != (PA_STREAM_ADJUST_LATENCY|PA_STREAM_EARLY_REQUESTS), PA_ERR_INVALID); in create_stream()
1428 PA_CHECK_VALIDITY(s->context, data, PA_ERR_INVALID); in pa_stream_begin_write()
1429 PA_CHECK_VALIDITY(s->context, nbytes && *nbytes != 0, PA_ERR_INVALID); in pa_stream_begin_write()
[all …]
Dcontext.c980 PA_CHECK_VALIDITY(c, !(flags & ~(PA_CONTEXT_NOAUTOSPAWN|PA_CONTEXT_NOFAIL)), PA_ERR_INVALID);
981 PA_CHECK_VALIDITY(c, !server || *server, PA_ERR_INVALID);
1075 return PA_ERR_INVALID;
1385 …(c, mode == PA_UPDATE_SET || mode == PA_UPDATE_MERGE || mode == PA_UPDATE_REPLACE, PA_ERR_INVALID);
1414 PA_CHECK_VALIDITY_RETURN_NULL(c, keys && keys[0], PA_ERR_INVALID);
1632 PA_CHECK_VALIDITY_RETURN_ANY(c, !ss || pa_sample_spec_valid(ss), PA_ERR_INVALID, (size_t) -1);
1645 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.c1000 *ret = PA_ERR_INVALID; in playback_stream_new()
1893 int ret = PA_ERR_INVALID; in command_create_playback_stream()
1924 … || pa_namereg_is_valid_name_or_wildcard(sink_name, PA_NAMEREG_SINK), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1925 …LIDITY_GOTO(c->pstream, sink_index == PA_INVALID_INDEX || !sink_name, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1926 …LIDITY_GOTO(c->pstream, !sink_name || sink_index == PA_INVALID_INDEX, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
1927 CHECK_VALIDITY_GOTO(c->pstream, pa_cvolume_valid(&volume), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2020 CHECK_VALIDITY_GOTO(c->pstream, pa_sample_spec_valid(&ss), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2021 …tream, map.channels == ss.channels && volume.channels == ss.channels, tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2022 CHECK_VALIDITY_GOTO(c->pstream, pa_channel_map_valid(&map), tag, PA_ERR_INVALID, finish); in command_create_playback_stream()
2025 … 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()
Dsource-output.c264 return -PA_ERR_INVALID; in pa_source_output_new()
274 pa_return_val_if_fail(!data->driver || pa_utf8_valid(data->driver), -PA_ERR_INVALID); in pa_source_output_new()
281 pa_return_val_if_fail(source, -PA_ERR_INVALID); in pa_source_output_new()
314 …data->direct_on_input || data->direct_on_input->sink == data->source->monitor_of, -PA_ERR_INVALID); in pa_source_output_new()
365 …turn_val_if_fail(pa_cvolume_compatible(&data->volume_factor, &data->sample_spec), -PA_ERR_INVALID); in pa_source_output_new()
370 …l(pa_cvolume_compatible(&data->volume_factor_source, &data->source->sample_spec), -PA_ERR_INVALID); in pa_source_output_new()
395 pa_return_val_if_fail(data->resample_method < PA_RESAMPLER_MAX, -PA_ERR_INVALID); in pa_source_output_new()
Dsink-input.c328 return -PA_ERR_INVALID; in pa_sink_input_new()
338 pa_return_val_if_fail(!data->driver || pa_utf8_valid(data->driver), -PA_ERR_INVALID); in pa_sink_input_new()
372 -PA_ERR_INVALID); in pa_sink_input_new()
447 pa_return_val_if_fail(data->resample_method < PA_RESAMPLER_MAX, -PA_ERR_INVALID); in pa_sink_input_new()
/third_party/pulseaudio/src/modules/bluetooth/
Dmodule-bluez5-device.c1993 return -PA_ERR_INVALID; in uuid_to_profile()