Skip to content
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

tplgtool2: print all supported formats of PCM and adjust alignment #1105

Merged
merged 2 commits into from
Sep 19, 2023

Commits on Sep 18, 2023

  1. tplgtool2: show all supported formats of pcm

    Make print_pcm_info() show all supported formats of a PCM, not only
    the first format.
    
    And show the formats after other attributes, thus other attributes may
    have better alignment.
    
    Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
    mengdonglin committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    d9b8d0c View commit details
    Browse the repository at this point in the history
  2. tplgtool2: adjust print order and alignment of PCM attributes

    print_pcm_info() will show pcm ID before its name.
    
    Also adjust alignment:
    - id: 2 characters, right alignment.
    - name: left alignment to the longest PCM name.
    - type (playback/capture/duplex): 8 characters, left alignment.
    - rate: 6 characters, right alignment, for highest rate '192000'.
    
    Strings longer than the alignment won't be cut.
    
    Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
    mengdonglin committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    50656c1 View commit details
    Browse the repository at this point in the history