mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: bluez5: Add profile name to sinks and sources
See commit 380a7fc240.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									8cda1fe3e2
								
							
						
					
					
						commit
						2abcbd2041
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -947,7 +947,7 @@ static int add_source(struct userdata *u) {
 | 
				
			||||||
    data.module = u->module;
 | 
					    data.module = u->module;
 | 
				
			||||||
    data.card = u->card;
 | 
					    data.card = u->card;
 | 
				
			||||||
    data.driver = __FILE__;
 | 
					    data.driver = __FILE__;
 | 
				
			||||||
    data.name = pa_sprintf_malloc("bluez_source.%s", u->device->address);
 | 
					    data.name = pa_sprintf_malloc("bluez_source.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile));
 | 
				
			||||||
    data.namereg_fail = false;
 | 
					    data.namereg_fail = false;
 | 
				
			||||||
    pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile));
 | 
					    pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile));
 | 
				
			||||||
    pa_source_new_data_set_sample_spec(&data, &u->sample_spec);
 | 
					    pa_source_new_data_set_sample_spec(&data, &u->sample_spec);
 | 
				
			||||||
| 
						 | 
					@ -1104,7 +1104,7 @@ static int add_sink(struct userdata *u) {
 | 
				
			||||||
    data.module = u->module;
 | 
					    data.module = u->module;
 | 
				
			||||||
    data.card = u->card;
 | 
					    data.card = u->card;
 | 
				
			||||||
    data.driver = __FILE__;
 | 
					    data.driver = __FILE__;
 | 
				
			||||||
    data.name = pa_sprintf_malloc("bluez_sink.%s", u->device->address);
 | 
					    data.name = pa_sprintf_malloc("bluez_sink.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile));
 | 
				
			||||||
    data.namereg_fail = false;
 | 
					    data.namereg_fail = false;
 | 
				
			||||||
    pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile));
 | 
					    pa_proplist_sets(data.proplist, "bluetooth.protocol", pa_bluetooth_profile_to_string(u->profile));
 | 
				
			||||||
    pa_sink_new_data_set_sample_spec(&data, &u->sample_spec);
 | 
					    pa_sink_new_data_set_sample_spec(&data, &u->sample_spec);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue