mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	topology: Parse HW configurations of physical DAI links in text conf file
Users can configure the runtime supported HW configurations of a physical link by SectionHWConfig. A physical link can refer multiple HW config sections in SectionLink. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									6b4d775b97
								
							
						
					
					
						commit
						f7bf8b0cc8
					
				
					 5 changed files with 236 additions and 0 deletions
				
			
		|  | @ -631,10 +631,31 @@ extern "C" { | |||
|  * | ||||
|  *	id "0"				# used for binding to the link | ||||
|  * | ||||
|  *	hw_configs [	# runtime supported HW configurations, optional | ||||
|  *		"config1" | ||||
|  *		"config2" | ||||
|  *		... | ||||
|  *	] | ||||
|  * | ||||
|  *	default_hw_conf_id "1"		#default HW config ID for init | ||||
|  * | ||||
|  *	data "name"			# optional private data | ||||
|  * } | ||||
|  * </pre> | ||||
|  * | ||||
|  * A physical link can refer to multiple runtime supported hardware | ||||
|  * configurations, which is defined by SectionHWConfig. | ||||
|  * | ||||
|  * <pre> | ||||
|  * SectionHWConfig."name" { | ||||
|  * | ||||
|  *	id "1"				# used for binding to the config | ||||
|  *	format "I2S"			# physical audio format. | ||||
|  *	bclk   "master"			# Platform is master of bit clock | ||||
|  *	fsync  "slave"			# Platform is slave of fsync | ||||
|  * } | ||||
|  * </pre> | ||||
|  * | ||||
|  * <h4>Manifest Private Data</h4> | ||||
|  * Manfiest may have private data. Users need to define a manifest section | ||||
|  * and add the references to 1 or multiple data sections. Please refer to | ||||
|  | @ -706,6 +727,7 @@ enum snd_tplg_type { | |||
| 	SND_TPLG_TYPE_TOKEN,		/*!< Vendor tokens */ | ||||
| 	SND_TPLG_TYPE_TUPLE,		/*!< Vendor tuples */ | ||||
| 	SND_TPLG_TYPE_LINK,		/*!< Physical DAI link */ | ||||
| 	SND_TPLG_TYPE_HW_CONFIG,	/*!< Link HW config */ | ||||
| }; | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mengdong Lin
						Mengdong Lin