ALSA project - the C library reference
|
21 #ifndef __ALSA_TOPOLOGY_H
22 #define __ALSA_TOPOLOGY_H
743 #define SND_TPLG_MAX_CHAN 8
772 #define SND_TPLG_INDEX_ALL 0
794 const char *outfile);
876 struct snd_soc_tplg_private *
priv;
889 struct snd_soc_tplg_private *
priv;
902 struct snd_soc_tplg_private *
priv;
937 struct snd_soc_tplg_private *
priv;
988 struct snd_soc_tplg_private *
priv;
1000 unsigned char clock_gated;
1001 unsigned char invert_bclk;
1002 unsigned char invert_fsync;
1003 unsigned char bclk_master;
1004 unsigned char fsync_master;
1005 unsigned char mclk_direction;
1006 unsigned short reserved;
1007 unsigned int mclk_rate;
1008 unsigned int bclk_rate;
1009 unsigned int fsync_rate;
1010 unsigned int tdm_slots;
1011 unsigned int tdm_slot_width;
1012 unsigned int tx_slots;
1013 unsigned int rx_slots;
1014 unsigned int tx_channels;
1015 unsigned int *tx_chanmap;
1016 unsigned int rx_channels;
1017 unsigned int *rx_chanmap;
1049 int default_hw_config_id;
1051 unsigned int flag_mask;
int reg
Definition: topology.h:825
unsigned int sig_bits
Definition: topology.h:971
Stream Capabilities.
Definition: topology.h:957
struct snd_soc_tplg_private * priv
Definition: topology.h:1053
struct snd_soc_tplg_private * priv
Definition: topology.h:937
const char * name
Definition: topology.h:927
int num_streams
Definition: topology.h:989
int invert
Definition: topology.h:875
const char * dai_name
Definition: topology.h:979
Template type for array of DAPM graph elements.
Definition: topology.h:917
Definition: topology.h:757
Definition: topology.h:823
unsigned int channels_min
Definition: topology.h:963
struct snd_tplg_enum_template * enum_ctl
Definition: topology.h:1068
const char * name
Definition: topology.h:860
unsigned int playback
Definition: topology.h:1027
const char * ctl
Definition: topology.h:910
unsigned int pcm_id
Definition: topology.h:980
Template type for TLV Scale objects.
Definition: topology.h:813
Definition: topology.h:765
Definition: topology.h:766
Definition: topology.h:756
Template type for object operations mapping.
Definition: topology.h:849
int max
Definition: topology.h:897
struct snd_soc_tplg_private * priv
Definition: topology.h:1032
int mask
Definition: topology.h:886
Template type for enumerated control objects.
Definition: topology.h:882
unsigned int len
Definition: seq_event.h:198
struct snd_tplg_ctl_template hdr
Definition: topology.h:870
int period_bytes
Definition: topology.h:949
unsigned short event_flags
Definition: topology.h:935
struct snd_tplg_channel_map_template * map
Definition: topology.h:884
struct snd_tplg_channel_elem channel[SND_TPLG_MAX_CHAN]
Definition: topology.h:835
Definition: topology.h:752
int max
Definition: topology.h:873
unsigned int channels_max
Definition: topology.h:964
const char * name
Definition: topology.h:1040
Template type for single DAPM graph element.
Definition: topology.h:908
Definition: topology.h:753
unsigned int dai_id
Definition: topology.h:981
struct snd_tplg_io_ops_template ops
Definition: topology.h:862
Definition: topology.h:750
struct snd_tplg_graph_elem elem[0]
Definition: topology.h:919
struct snd_tplg_ctl_template * ctl[0]
Definition: topology.h:939
unsigned short event_type
Definition: topology.h:936
int base
Definition: topology.h:899
int mute
Definition: topology.h:817
Definition: topology.h:764
struct snd_tplg_dai_template * dai
Definition: topology.h:1072
snd_tplg_type
Definition: topology.h:749
unsigned int buffer_size_min
Definition: topology.h:969
unsigned int capture
Definition: topology.h:1028
int items
Definition: topology.h:885
int info
Definition: topology.h:852
struct snd_tplg_link_template * link
Definition: topology.h:1071
int snd_tplg_add_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
Register topology template object.
Definition: parser.c:361
Template type for PCM (FE DAI & DAI links).
Definition: topology.h:977
int count
Definition: topology.h:918
const char * src
Definition: topology.h:909
Template type for mixer control objects.
Definition: topology.h:869
unsigned int periods_min
Definition: topology.h:965
unsigned int length
Definition: topology.h:842
unsigned int flags
Definition: topology.h:987
struct snd_tplg_stream_template stream[0]
Definition: topology.h:990
Definition: topology.h:755
int format
Definition: topology.h:947
Definition: topology.h:751
uint64_t formats
Definition: topology.h:959
struct snd_tplg snd_tplg_t
Definition: topology.h:746
int rate
Definition: topology.h:948
unsigned int capture
Definition: topology.h:983
struct snd_soc_tplg_private * priv
Definition: topology.h:902
int num_regs
Definition: topology.h:900
int min
Definition: topology.h:815
int num_channels
Definition: topology.h:834
#define SND_TPLG_MAX_CHAN
Definition: topology.h:743
Template type for control objects.
Definition: topology.h:858
unsigned int dai_id
Definition: topology.h:1026
struct snd_soc_tplg_private * priv
Definition: topology.h:889
int mask
Definition: topology.h:898
struct snd_tplg_stream_caps_template * caps[2]
Definition: topology.h:985
const char * name
Definition: topology.h:946
unsigned int rates
Definition: topology.h:960
Definition: topology.h:761
const int ** values
Definition: topology.h:888
struct snd_tplg_ctl_template hdr
Definition: topology.h:896
int snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version)
Set an optional vendor specific version number.
Definition: parser.c:432
int version
Definition: topology.h:1062
snd_tplg_t * snd_tplg_new(void)
Create a new topology parser instance.
Definition: parser.c:454
struct snd_tplg_hw_config_template * hw_config
Definition: topology.h:1047
int id
Definition: topology.h:926
Definition: topology.h:759
struct snd_tplg_io_ops_template ext_ops
Definition: topology.h:901
int index
Definition: topology.h:1061
int num_ctls
Definition: topology.h:938
const char * stream_name
Definition: topology.h:1042
const char * sink
Definition: topology.h:911
struct snd_soc_tplg_private * priv
Definition: topology.h:988
int buffer_bytes
Definition: topology.h:950
int channels
Definition: topology.h:951
unsigned int buffer_size_max
Definition: topology.h:970
Template type to describe a physical link runtime supported hardware config, i.e. hardware audio form...
Definition: topology.h:997
int shift
Definition: topology.h:930
Template type for physical DAI Links.
Definition: topology.h:1039
Definition: topology.h:754
struct snd_tplg_bytes_template * bytes_ctl
Definition: topology.h:1067
unsigned int flag_mask
Definition: topology.h:1030
int reg
Definition: topology.h:929
void snd_tplg_free(snd_tplg_t *tplg)
Free a topology parser instance.
Definition: parser.c:491
struct snd_tplg_tlv_template * tlv
Definition: topology.h:863
Definition: topology.h:763
Template type for TLV Scale objects.
Definition: topology.h:895
unsigned int playback
Definition: topology.h:982
struct snd_tplg_stream_caps_template * caps[2]
Definition: topology.h:1029
Template type for channel mapping.
Definition: topology.h:833
unsigned int flags
Definition: topology.h:1031
int snd_tplg_build_file(snd_tplg_t *tplg, const char *infile, const char *outfile)
Parse and build topology text file into binary file.
Definition: parser.c:315
Definition: topology.h:760
unsigned int compress
Definition: topology.h:984
Definition: topology.h:767
Stream configurations.
Definition: topology.h:945
struct snd_tplg_graph_template * graph
Definition: topology.h:1069
int min
Definition: topology.h:872
int vendor_type
Definition: topology.h:1063
struct snd_tplg_channel_map_template * map
Definition: topology.h:871
const char * dai_name
Definition: topology.h:1025
int type
Definition: topology.h:807
void snd_tplg_verbose(snd_tplg_t *tplg, int verbose)
Enable verbose reporting of binary file output.
Definition: parser.c:439
Definition: topology.h:1059
int platform_max
Definition: topology.h:874
const char * name
Definition: topology.h:958
Template type for all TLV objects.
Definition: topology.h:806
struct snd_tplg_tlv_template hdr
Definition: topology.h:814
const char * sname
Definition: topology.h:928
int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len)
Attach private data to topology manifest.
Definition: parser.c:417
struct snd_tplg_pcm_template * pcm
Definition: topology.h:1070
unsigned int rate_max
Definition: topology.h:962
int id
Definition: topology.h:1041
int access
Definition: topology.h:861
const void * data
Definition: topology.h:843
unsigned int period_size_min
Definition: topology.h:967
struct snd_tplg_widget_template * widget
Definition: topology.h:1065
int snd_tplg_build(snd_tplg_t *tplg, const char *outfile)
Build all registered topology data into binary file.
Definition: parser.c:388
const char * pcm_name
Definition: topology.h:978
Template type for private data objects.
Definition: topology.h:841
Template type for physical DAI. It can be used to configure backend DAIs for DPCM.
Definition: topology.h:1024
int size
Definition: topology.h:824
int get
Definition: topology.h:850
struct snd_tplg_stream_template * stream
Definition: topology.h:1045
int id
Definition: topology.h:827
int put
Definition: topology.h:851
int mask
Definition: topology.h:931
Definition: topology.h:768
int num_streams
Definition: topology.h:1044
unsigned int invert
Definition: topology.h:933
unsigned int ignore_suspend
Definition: topology.h:934
struct snd_soc_tplg_private * priv
Definition: topology.h:876
unsigned int rate_min
Definition: topology.h:961
const char ** texts
Definition: topology.h:887
Definition: topology.h:762
struct snd_tplg_mixer_template * mixer
Definition: topology.h:1066
unsigned int period_size_max
Definition: topology.h:968
struct snd_tplg_ctl_template hdr
Definition: topology.h:883
int type
Definition: topology.h:859
unsigned int periods_max
Definition: topology.h:966
int subseq
Definition: topology.h:932
int step
Definition: topology.h:816
unsigned int flag_mask
Definition: topology.h:986
Definition: topology.h:758
int shift
Definition: topology.h:826