mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: correct RFCOMM command to set HSP HS volume
This commit is contained in:
		
							parent
							
								
									0dde4f8774
								
							
						
					
					
						commit
						f56d08297d
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1210,9 +1210,15 @@ static int sco_set_volume_cb(void *data, int id, float volume)
 | 
			
		|||
	rfcomm->volumes[id].hw_volume = value;
 | 
			
		||||
 | 
			
		||||
	if (id == SPA_BT_VOLUME_ID_RX)
 | 
			
		||||
		msg = spa_aprintf("+VGM: %d", value);
 | 
			
		||||
		if (rfcomm->profile & SPA_BT_PROFILE_HFP_HF)
 | 
			
		||||
			msg = spa_aprintf("+VGM: %d", value);
 | 
			
		||||
		else
 | 
			
		||||
			msg = spa_aprintf("+VGM=%d", value);
 | 
			
		||||
	else if (id == SPA_BT_VOLUME_ID_TX)
 | 
			
		||||
		msg = spa_aprintf("+VGS: %d", value);
 | 
			
		||||
		if (rfcomm->profile & SPA_BT_PROFILE_HFP_HF)
 | 
			
		||||
			msg = spa_aprintf("+VGS: %d", value);
 | 
			
		||||
		else
 | 
			
		||||
			msg = spa_aprintf("+VGS=%d", value);
 | 
			
		||||
	else
 | 
			
		||||
		spa_assert_not_reached();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue