mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
sco-sink: msbc timeout should follow processed samples
Remove wrong adjustment to the write timeout with mSBC. The time between writes should be the 7.5ms at which we encode, which is correct even when the frames get fragmented to incommensurate tx packets (on USB BT adapters). Fixes sound on RTL8176B. This adapter has large reported write_mtu, so the wrong delay affected it.
This commit is contained in:
parent
14dcfb8a28
commit
8b4fbac187
1 changed files with 0 additions and 6 deletions
|
|
@ -441,12 +441,6 @@ static void flush_data(struct impl *this)
|
|||
|
||||
next_timeout = get_next_timeout(this, now_time, processed / port->frame_size);
|
||||
|
||||
if (this->transport->codec == HFP_AUDIO_CODEC_MSBC) {
|
||||
uint64_t min_delay = (this->transport->write_mtu / port->frame_size
|
||||
* SPA_NSEC_PER_SEC / port->current_format.info.raw.rate);
|
||||
next_timeout = SPA_MAX(next_timeout, min_delay);
|
||||
}
|
||||
|
||||
if (this->clock) {
|
||||
this->clock->nsec = now_time;
|
||||
this->clock->position = this->total_samples;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue