mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	control: Add UMP Endpoint and Block info query support
Add functions to query the UMP Endpoint and Block info via control interface. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									8bc10c83b1
								
							
						
					
					
						commit
						81b0cf46d1
					
				
					 6 changed files with 51 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1281,6 +1281,30 @@ int snd_ctl_ump_next_device(snd_ctl_t *ctl, int *device)
 | 
			
		|||
	return -ENXIO;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \brief Get UMP Endpoint info about a UMP RawMidi device
 | 
			
		||||
 * \param ctl CTL handle
 | 
			
		||||
 * \param info UMP Endpoint info pointer
 | 
			
		||||
 * \return 0 on success otherwise a negative error code
 | 
			
		||||
 */
 | 
			
		||||
int snd_ctl_ump_endpoint_info(snd_ctl_t *ctl, snd_ump_endpoint_info_t *info)
 | 
			
		||||
{
 | 
			
		||||
	assert(ctl && info);
 | 
			
		||||
	return ctl->ops->ump_endpoint_info(ctl, info);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \brief Get UMP Block info about a UMP RawMidi device
 | 
			
		||||
 * \param ctl CTL handle
 | 
			
		||||
 * \param info UMP Block info pointer
 | 
			
		||||
 * \return 0 on success otherwise a negative error code
 | 
			
		||||
 */
 | 
			
		||||
int snd_ctl_ump_block_info(snd_ctl_t *ctl, snd_ump_block_info_t *info)
 | 
			
		||||
{
 | 
			
		||||
	assert(ctl && info);
 | 
			
		||||
	return ctl->ops->ump_block_info(ctl, info);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \brief Set Power State to given SND_CTL_POWER_* value and do the power management
 | 
			
		||||
 * \param ctl CTL handle
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue