- 
                Notifications
    
You must be signed in to change notification settings  - Fork 348
 
topology2: add google rtc aec support #7237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            4 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
  
    
      
          
            139 changes: 139 additions & 0 deletions
          
          139 
        
  tools/topology/topology2/include/components/google-rtc-aec.conf
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| # | ||
| # Common widget google-rtc-aec | ||
| # | ||
| # A generic google-rtc-aec widget. All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.google-rtc-aec.N.attribute_name" | ||
| # | ||
| # Usage: this component can be used by instantiating it in the parent object. i.e. | ||
| # | ||
| # Object.Widget.google-rtc-aec."N" { | ||
| # index 1 | ||
| # type "effect" | ||
| # } | ||
| # | ||
| # Where N is the unique instance number for the google-rtc-aec object within the same alsaconf node. | ||
| Define { | ||
| AEC_UUID "a6:a0:80:b7:9f:26:6f:46:b4:77:23:df:a0:5a:f7:58" | ||
| } | ||
| 
     | 
||
| Class.Widget."google-rtc-aec" { | ||
| # | ||
| # Pipeline ID for the google-rtc-aec widget object | ||
| # | ||
| DefineAttribute."index" {} | ||
| 
     | 
||
| # | ||
| # google-rtc-aec object instance | ||
| # | ||
| DefineAttribute."instance" {} | ||
| 
     | 
||
| #include common component definition | ||
| <include/components/widget-common.conf> | ||
| 
     | 
||
| DefineAttribute."num_audio_formats" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
                
      
                  cujomalainey marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| } | ||
| 
     | 
||
| # | ||
| # google-rtc-aec widget UUID | ||
| # | ||
| DefineAttribute."uuid" { | ||
| type "string" | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.uuid" | ||
| } | ||
| 
     | 
||
| DefineAttribute."cpc" { | ||
                
      
                  RanderWang marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
| 
     | 
||
| DefineAttribute."is_pages" { | ||
                
      
                  RanderWang marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
| 
     | 
||
| # Attribute categories | ||
| attributes { | ||
| # | ||
| # The google-rtc-aec widget name would be constructed using the index and instance attributes. | ||
| # For ex: "google-rtc-aec.1.1" or "google-rtc-aec.10.2" etc. | ||
| # | ||
| !constructor [ | ||
| "index" | ||
| "instance" | ||
| ] | ||
| 
     | 
||
| # | ||
| # mandatory attributes that must be provided when the class is instantiated | ||
| # | ||
| !mandatory [ | ||
| "no_pm" | ||
| "uuid" | ||
| "process_type" | ||
| ] | ||
| 
     | 
||
| # | ||
| # immutable attributes cannot be modified in the object instance | ||
| # | ||
| !immutable [ | ||
| "uuid" | ||
| "type" | ||
| ] | ||
| 
     | 
||
| # | ||
| # deprecated attributes should not be added in the object instance | ||
| # | ||
| !deprecated [ | ||
| "preload_count" | ||
| ] | ||
| 
     | 
||
| # | ||
| # google-rtc-aec widget objects instantiated within the same alsaconf node must have unique | ||
| # instance attribute | ||
| # | ||
| unique "instance" | ||
| } | ||
| 
     | 
||
| num_audio_formats 2 | ||
| num_input_audio_formats 2 | ||
| num_output_audio_formats 1 | ||
| # pin0 is the data captured by DMIC and pin1 is the ref data from playback stream | ||
| Object.Base.input_audio_format { | ||
| 1 { | ||
                
      
                  RanderWang marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| pin_index 0 | ||
| in_bit_depth 16 | ||
| in_valid_bit_depth 16 | ||
| out_bit_depth 16 | ||
| out_valid_bit_depth 16 | ||
| } | ||
| 2 { | ||
| pin_index 1 | ||
| in_bit_depth 16 | ||
| in_valid_bit_depth 16 | ||
| out_bit_depth 16 | ||
| out_valid_bit_depth 16 | ||
| } | ||
| } | ||
| 
     | 
||
| Object.Base.output_audio_format { | ||
| 1 { | ||
| in_bit_depth 16 | ||
| in_valid_bit_depth 16 | ||
| out_bit_depth 16 | ||
| out_valid_bit_depth 16 | ||
| } | ||
                
      
                  RanderWang marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| } | ||
| 
     | 
||
| # Default attribute values for google-rtc-aec widget | ||
| # UUID: B780A0A6-269F-466F-B477-23DFA05AF758 | ||
| uuid $AEC_UUID | ||
| type "effect" | ||
| no_pm "true" | ||
| core_id 0 | ||
| cpc 5000 | ||
| is_pages 1 | ||
| num_input_pins 2 | ||
| num_output_pins 1 | ||
| } | ||
        
          
  
    
      
          
            19 changes: 19 additions & 0 deletions
          
          19 
        
  tools/topology/topology2/include/components/google-rtc-aec/rtc-aec-blob.conf
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # aec blob data | ||
| 
     | 
||
| Object.Base.data."google-rtc-aec_blob" { | ||
| bytes " | ||
| 0x53, 0x4f, 0x46, 0x34, 0x00, 0x00, 0x00, 0x00, | ||
| 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 
     | 
||
| 0x80, 0xbb, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, | ||
| 0x10, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, | ||
| 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, | ||
| 
     | 
||
| 0x80, 0xbb, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, | ||
| 0x10, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, | ||
| 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, | ||
| 
     | 
||
| 0x00, 0x00, 0x00, 0x00" | ||
| } | 
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.