mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: when starting up HSP stream, send 2 packets first, only afterwards enter one-read-one-write logic
This commit is contained in:
		
							parent
							
								
									d77b28cb4b
								
							
						
					
					
						commit
						ee6657aa9a
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -1268,6 +1268,12 @@ static void thread_func(void *userdata) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (u->source && PA_SOURCE_IS_LINKED(u->source->thread_info.state)) {
 | 
					        if (u->source && PA_SOURCE_IS_LINKED(u->source->thread_info.state)) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            /* We should send two blocks to the device before we expect
 | 
				
			||||||
 | 
					             * a response. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (u->write_index == 0 && u->read_index <= 0)
 | 
				
			||||||
 | 
					                do_write = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (pollfd && (pollfd->revents & POLLIN)) {
 | 
					            if (pollfd && (pollfd->revents & POLLIN)) {
 | 
				
			||||||
                int n_read;
 | 
					                int n_read;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue