mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-04-02 07:15:46 -04:00
backend-native: Fix indentation and whitespace style
Replace tabs with spaces, remove trailing whitespace, remove bracing around single-line `if` blocks. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/740>
This commit is contained in:
parent
de8b0c1124
commit
c6bd6656a2
1 changed files with 20 additions and 21 deletions
|
|
@ -638,7 +638,7 @@ static bool hfp_rfcomm_handle(int fd, pa_bluetooth_transport *t, const char *buf
|
||||||
indicator = 1;
|
indicator = 1;
|
||||||
|
|
||||||
while ((r = pa_split_in_place(str, ",", &len, &state))) {
|
while ((r = pa_split_in_place(str, ",", &len, &state))) {
|
||||||
/* Ignore updates to mandantory indicators which are always ON */
|
/* Ignore updates to mandatory indicators which are always ON */
|
||||||
if (indicator == CIND_CALL_INDICATOR
|
if (indicator == CIND_CALL_INDICATOR
|
||||||
|| indicator == CIND_CALL_SETUP_INDICATOR
|
|| indicator == CIND_CALL_SETUP_INDICATOR
|
||||||
|| indicator == CIND_CALL_HELD_INDICATOR)
|
|| indicator == CIND_CALL_HELD_INDICATOR)
|
||||||
|
|
@ -712,9 +712,8 @@ static bool hfp_rfcomm_handle(int fd, pa_bluetooth_transport *t, const char *buf
|
||||||
} else if ((c->state == 2 || c->state == 3) && pa_startswith(buf, "AT+CMER=")) {
|
} else if ((c->state == 2 || c->state == 3) && pa_startswith(buf, "AT+CMER=")) {
|
||||||
if (sscanf(buf, "AT+CMER=%d,%*d,%*d,%d", &mode, &val) == 2) {
|
if (sscanf(buf, "AT+CMER=%d,%*d,%*d,%d", &mode, &val) == 2) {
|
||||||
/* Bluetooth HFP spec only defines mode == 3 */
|
/* Bluetooth HFP spec only defines mode == 3 */
|
||||||
if (mode != 3) {
|
if (mode != 3)
|
||||||
pa_log_warn("Unexpected mode for AT+CMER: %d", mode);
|
pa_log_warn("Unexpected mode for AT+CMER: %d", mode);
|
||||||
}
|
|
||||||
|
|
||||||
/* Configure CMER event reporting */
|
/* Configure CMER event reporting */
|
||||||
discovery->native_backend->cmer_indicator_reporting_enabled = !!val;
|
discovery->native_backend->cmer_indicator_reporting_enabled = !!val;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue