Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b61fdb0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "a2dp: Fix BT SCO Tx configuration during a2dp to sco transition"

parents ac9ef4fc 225e13c7
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -1182,7 +1182,7 @@ static bool a2dp_set_backend_cfg(uint8_t direction)
                    rate_str = SPEECH_TX_SAMPLE_RATE;
                else
                    rate_str = ABR_TX_SAMPLE_RATE;
            }

                ALOGD("%s: set backend tx sample rate = %s", __func__, rate_str);
                ctl_sample_rate = mixer_get_ctl_by_name(a2dp.adev->mixer,
                                                MIXER_SOURCE_SAMPLE_RATE_TX);
@@ -1198,6 +1198,7 @@ static bool a2dp_set_backend_cfg(uint8_t direction)
                    goto fail;
                }
            }
        }
    } else {
        /* Fallback to legacy approch if MIXER_SAMPLE_RATE_RX and
        MIXER_SAMPLE_RATE_TX is not supported */