mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -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
|
|
@ -1022,8 +1022,7 @@ static int update_sw_params(struct userdata *u) {
|
|||
|
||||
/* Called from IO Context on unsuspend or from main thread when creating sink */
|
||||
static void reset_watermark(struct userdata *u, size_t tsched_watermark, pa_sample_spec *ss,
|
||||
pa_bool_t in_thread)
|
||||
{
|
||||
pa_bool_t in_thread) {
|
||||
u->tsched_watermark = pa_usec_to_bytes_round_up(pa_bytes_to_usec_round_up(tsched_watermark, ss),
|
||||
&u->sink->sample_spec);
|
||||
|
||||
|
|
@ -1604,8 +1603,7 @@ static pa_bool_t sink_set_formats(pa_sink *s, pa_idxset *formats) {
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static pa_bool_t sink_update_rate_cb(pa_sink *s, uint32_t rate)
|
||||
{
|
||||
static pa_bool_t sink_update_rate_cb(pa_sink *s, uint32_t rate) {
|
||||
struct userdata *u = s->userdata;
|
||||
int i;
|
||||
pa_bool_t supported = FALSE;
|
||||
|
|
|
|||
|
|
@ -914,8 +914,7 @@ static int update_sw_params(struct userdata *u) {
|
|||
|
||||
/* Called from IO Context on unsuspend or from main thread when creating source */
|
||||
static void reset_watermark(struct userdata *u, size_t tsched_watermark, pa_sample_spec *ss,
|
||||
pa_bool_t in_thread)
|
||||
{
|
||||
pa_bool_t in_thread) {
|
||||
u->tsched_watermark = pa_usec_to_bytes_round_up(pa_bytes_to_usec_round_up(tsched_watermark, ss),
|
||||
&u->source->sample_spec);
|
||||
|
||||
|
|
@ -1411,8 +1410,7 @@ static void source_update_requested_latency_cb(pa_source *s) {
|
|||
update_sw_params(u);
|
||||
}
|
||||
|
||||
static pa_bool_t source_update_rate_cb(pa_source *s, uint32_t rate)
|
||||
{
|
||||
static pa_bool_t source_update_rate_cb(pa_source *s, uint32_t rate) {
|
||||
struct userdata *u = s->userdata;
|
||||
int i;
|
||||
pa_bool_t supported = FALSE;
|
||||
|
|
|
|||
|
|
@ -525,8 +525,7 @@ static void append_lost_relationship(pa_alsa_ucm_device *dev) {
|
|||
}
|
||||
}
|
||||
|
||||
int pa_alsa_ucm_query_profiles(pa_alsa_ucm_config *ucm, int card_index)
|
||||
{
|
||||
int pa_alsa_ucm_query_profiles(pa_alsa_ucm_config *ucm, int card_index) {
|
||||
char *card_name;
|
||||
const char **verb_list;
|
||||
int num_verbs, i, err = 0;
|
||||
|
|
|
|||
|
|
@ -1450,8 +1450,7 @@ pa_bool_t pa_alsa_may_tsched(pa_bool_t want) {
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
snd_hctl_elem_t* pa_alsa_find_jack(snd_hctl_t *hctl, const char* jack_name)
|
||||
{
|
||||
snd_hctl_elem_t* pa_alsa_find_jack(snd_hctl_t *hctl, const char* jack_name) {
|
||||
snd_ctl_elem_id_t *id;
|
||||
|
||||
snd_ctl_elem_id_alloca(&id);
|
||||
|
|
|
|||
|
|
@ -309,8 +309,7 @@ static void init_profile(struct userdata *u) {
|
|||
am->source = pa_alsa_source_new(u->module, u->modargs, __FILE__, u->card, am);
|
||||
}
|
||||
|
||||
static void report_port_state(pa_device_port *p, struct userdata *u)
|
||||
{
|
||||
static void report_port_state(pa_device_port *p, struct userdata *u) {
|
||||
void *state;
|
||||
pa_alsa_jack *jack;
|
||||
pa_available_t pa = PA_AVAILABLE_UNKNOWN;
|
||||
|
|
@ -347,8 +346,7 @@ static void report_port_state(pa_device_port *p, struct userdata *u)
|
|||
pa_device_port_set_available(p, pa);
|
||||
}
|
||||
|
||||
static int report_jack_state(snd_hctl_elem_t *elem, unsigned int mask)
|
||||
{
|
||||
static int report_jack_state(snd_hctl_elem_t *elem, unsigned int mask) {
|
||||
struct userdata *u = snd_hctl_elem_get_callback_private(elem);
|
||||
snd_ctl_elem_value_t *elem_value;
|
||||
pa_bool_t plugged_in;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue