mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
Style fix: Remove new lines from opening brackets
This patch replaces every occurrence of ')\n{' with ') {'.
Command used for this:
find . -type d \( -name ffmpeg \) -prune -o \
-regex '\(.*\.[hc]\|.*\.cc\)' \
-a -not -name core-util.c -a -not \
-name adrian-aec.c -a -not -name g711.c \
-exec sed -i -e '/)$/{N;s/)\n{$/) {/}' {} \;
The excluded files are mirrored files from external sources.
This commit is contained in:
parent
cbd274676d
commit
e95d054e40
25 changed files with 40 additions and 80 deletions
|
|
@ -116,8 +116,7 @@ static const char *available_to_string(pa_available_t a) {
|
|||
}
|
||||
}
|
||||
|
||||
static void append_port_list(pa_strbuf *s, pa_hashmap *ports)
|
||||
{
|
||||
static void append_port_list(pa_strbuf *s, pa_hashmap *ports) {
|
||||
pa_device_port *p;
|
||||
void *state;
|
||||
|
||||
|
|
|
|||
|
|
@ -210,8 +210,7 @@ pa_bool_t pa_in_system_mode(void);
|
|||
#define pa_streq(a,b) (!strcmp((a),(b)))
|
||||
|
||||
/* Like pa_streq, but does not blow up on NULL pointers. */
|
||||
static inline bool pa_safe_streq(const char *a, const char *b)
|
||||
{
|
||||
static inline bool pa_safe_streq(const char *a, const char *b) {
|
||||
if (a == NULL || b == NULL)
|
||||
return a == b;
|
||||
return pa_streq(a, b);
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@
|
|||
|
||||
#include "cpu-orc.h"
|
||||
|
||||
pa_bool_t pa_cpu_init_orc(pa_cpu_info cpu_info)
|
||||
{
|
||||
pa_bool_t pa_cpu_init_orc(pa_cpu_info cpu_info) {
|
||||
#ifndef DISABLE_ORC
|
||||
/* Update these as we test on more architectures */
|
||||
pa_cpu_x86_flag_t x86_want_flags = PA_CPU_X86_MMX | PA_CPU_X86_SSE | PA_CPU_X86_SSE2 | PA_CPU_X86_SSE3 | PA_CPU_X86_SSSE3 | PA_CPU_X86_SSE4_1 | PA_CPU_X86_SSE4_2;
|
||||
|
|
|
|||
|
|
@ -67,8 +67,7 @@ void pa_device_port_new_data_done(pa_device_port_new_data *data) {
|
|||
pa_xfree(data->description);
|
||||
}
|
||||
|
||||
void pa_device_port_set_available(pa_device_port *p, pa_available_t status)
|
||||
{
|
||||
void pa_device_port_set_available(pa_device_port *p, pa_available_t status) {
|
||||
pa_core *core;
|
||||
|
||||
pa_assert(p);
|
||||
|
|
|
|||
|
|
@ -1590,8 +1590,7 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
|
|||
}
|
||||
|
||||
|
||||
static bool handle_input_underrun(playback_stream *s, bool force)
|
||||
{
|
||||
static bool handle_input_underrun(playback_stream *s, bool force) {
|
||||
bool send_drain;
|
||||
|
||||
if (pa_memblockq_is_readable(s->memblockq))
|
||||
|
|
|
|||
|
|
@ -824,8 +824,7 @@ int pa_sink_update_status(pa_sink*s) {
|
|||
}
|
||||
|
||||
/* Called from any context - must be threadsafe */
|
||||
void pa_sink_set_mixer_dirty(pa_sink *s, pa_bool_t is_dirty)
|
||||
{
|
||||
void pa_sink_set_mixer_dirty(pa_sink *s, pa_bool_t is_dirty) {
|
||||
pa_atomic_store(&s->mixer_dirty, is_dirty ? 1 : 0);
|
||||
}
|
||||
|
||||
|
|
@ -1378,8 +1377,7 @@ void pa_sink_render_full(pa_sink *s, size_t length, pa_memchunk *result) {
|
|||
}
|
||||
|
||||
/* Called from main thread */
|
||||
pa_bool_t pa_sink_update_rate(pa_sink *s, uint32_t rate, pa_bool_t passthrough)
|
||||
{
|
||||
pa_bool_t pa_sink_update_rate(pa_sink *s, uint32_t rate, pa_bool_t passthrough) {
|
||||
pa_bool_t ret = FALSE;
|
||||
|
||||
if (s->update_rate) {
|
||||
|
|
@ -3770,8 +3768,7 @@ pa_bool_t pa_sink_set_formats(pa_sink *s, pa_idxset *formats) {
|
|||
|
||||
/* Called from the main thread */
|
||||
/* Checks if the sink can accept this format */
|
||||
pa_bool_t pa_sink_check_format(pa_sink *s, pa_format_info *f)
|
||||
{
|
||||
pa_bool_t pa_sink_check_format(pa_sink *s, pa_format_info *f) {
|
||||
pa_idxset *formats = NULL;
|
||||
pa_bool_t ret = FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -740,8 +740,7 @@ int pa_source_update_status(pa_source*s) {
|
|||
}
|
||||
|
||||
/* Called from any context - must be threadsafe */
|
||||
void pa_source_set_mixer_dirty(pa_source *s, pa_bool_t is_dirty)
|
||||
{
|
||||
void pa_source_set_mixer_dirty(pa_source *s, pa_bool_t is_dirty) {
|
||||
pa_atomic_store(&s->mixer_dirty, is_dirty ? 1 : 0);
|
||||
}
|
||||
|
||||
|
|
@ -968,8 +967,7 @@ void pa_source_post_direct(pa_source*s, pa_source_output *o, const pa_memchunk *
|
|||
}
|
||||
|
||||
/* Called from main thread */
|
||||
pa_bool_t pa_source_update_rate(pa_source *s, uint32_t rate, pa_bool_t passthrough)
|
||||
{
|
||||
pa_bool_t pa_source_update_rate(pa_source *s, uint32_t rate, pa_bool_t passthrough) {
|
||||
pa_bool_t ret = FALSE;
|
||||
|
||||
if (s->update_rate) {
|
||||
|
|
@ -2807,8 +2805,7 @@ pa_idxset* pa_source_get_formats(pa_source *s) {
|
|||
|
||||
/* Called from the main thread */
|
||||
/* Checks if the source can accept this format */
|
||||
pa_bool_t pa_source_check_format(pa_source *s, pa_format_info *f)
|
||||
{
|
||||
pa_bool_t pa_source_check_format(pa_source *s, pa_format_info *f) {
|
||||
pa_idxset *formats = NULL;
|
||||
pa_bool_t ret = FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@
|
|||
pa_do_volume_func_t fallback;
|
||||
|
||||
static void
|
||||
pa_volume_s16ne_orc(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length)
|
||||
{
|
||||
pa_volume_s16ne_orc(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {
|
||||
if (channels == 2) {
|
||||
int64_t v = (int64_t)volumes[1] << 32 | volumes[0];
|
||||
pa_volume_s16ne_orc_2ch (samples, v, ((length / (sizeof(int16_t))) / 2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue