21 #ifndef __ALSA_TOPOLOGY_H 22 #define __ALSA_TOPOLOGY_H 727 #define SND_TPLG_MAX_CHAN 8 775 const char *outfile);
857 struct snd_soc_tplg_private *
priv;
870 struct snd_soc_tplg_private *
priv;
883 struct snd_soc_tplg_private *
priv;
918 struct snd_soc_tplg_private *
priv;
969 struct snd_soc_tplg_private *
priv;
981 unsigned char clock_gated;
982 unsigned char invert_bclk;
983 unsigned char invert_fsync;
984 unsigned char bclk_master;
985 unsigned char fsync_master;
986 unsigned char mclk_direction;
987 unsigned short reserved;
988 unsigned int mclk_rate;
989 unsigned int bclk_rate;
990 unsigned int fsync_rate;
991 unsigned int tdm_slots;
992 unsigned int tdm_slot_width;
993 unsigned int tx_slots;
994 unsigned int rx_slots;
995 unsigned int tx_channels;
996 unsigned int *tx_chanmap;
997 unsigned int rx_channels;
998 unsigned int *rx_chanmap;
1030 int default_hw_config_id;
1032 unsigned int flag_mask;
Definition: topology.h:737
struct snd_soc_tplg_private * priv
Definition: topology.h:883
const char * ctl
Definition: topology.h:891
const char * name
Definition: topology.h:939
int rate
Definition: topology.h:929
uint64_t formats
Definition: topology.h:940
int items
Definition: topology.h:866
unsigned int flags
Definition: topology.h:1012
const int ** values
Definition: topology.h:869
Template type to describe a physical link runtime supported hardware config, i.e. hardware audio form...
Definition: topology.h:978
unsigned int flag_mask
Definition: topology.h:1011
Template type for enumerated control objects.
Definition: topology.h:863
Definition: topology.h:804
unsigned int rate_min
Definition: topology.h:942
Template type for array of DAPM graph elements.
Definition: topology.h:898
Definition: topology.h:750
struct snd_tplg_stream_template * stream
Definition: topology.h:1026
Definition: topology.h:746
Definition: topology.h:747
snd_tplg_type
Definition: topology.h:733
struct snd_tplg_pcm_template * pcm
Definition: topology.h:1051
int mask
Definition: topology.h:867
struct snd_tplg_enum_template * enum_ctl
Definition: topology.h:1049
struct snd_tplg_bytes_template * bytes_ctl
Definition: topology.h:1048
Definition: topology.h:743
struct snd_soc_tplg_private * priv
Definition: topology.h:857
struct snd_tplg_channel_map_template * map
Definition: topology.h:865
Definition: topology.h:742
int access
Definition: topology.h:842
Definition: topology.h:752
unsigned int dai_id
Definition: topology.h:1007
int snd_tplg_add_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
Register topology template object.
Definition: parser.c:357
Definition: topology.h:735
snd_tplg_t * snd_tplg_new(void)
Create a new topology parser instance.
Definition: parser.c:450
struct snd_tplg_widget_template * widget
Definition: topology.h:1046
Template type for control objects.
Definition: topology.h:839
int platform_max
Definition: topology.h:855
unsigned int length
Definition: topology.h:823
Definition: topology.h:1040
const char * name
Definition: topology.h:1021
unsigned int buffer_size_max
Definition: topology.h:951
struct snd_soc_tplg_private * priv
Definition: topology.h:870
unsigned int rate_max
Definition: topology.h:943
int count
Definition: topology.h:899
const char * dai_name
Definition: topology.h:960
int format
Definition: topology.h:928
Definition: topology.h:748
struct snd_tplg snd_tplg_t
Definition: topology.h:730
int reg
Definition: topology.h:806
Template type for TLV Scale objects.
Definition: topology.h:794
int vendor_type
Definition: topology.h:1044
Stream configurations.
Definition: topology.h:926
void snd_tplg_free(snd_tplg_t *tplg)
Free a topology parser instance.
Definition: parser.c:487
const char * stream_name
Definition: topology.h:1023
int max
Definition: topology.h:878
unsigned int capture
Definition: topology.h:964
int max
Definition: topology.h:854
int buffer_bytes
Definition: topology.h:931
int mute
Definition: topology.h:798
int num_regs
Definition: topology.h:881
struct snd_tplg_mixer_template * mixer
Definition: topology.h:1047
Definition: topology.h:738
#define SND_TPLG_MAX_CHAN
Definition: topology.h:727
struct snd_tplg_hw_config_template * hw_config
Definition: topology.h:1028
Template type for PCM (FE DAI & DAI links).
Definition: topology.h:958
const char ** texts
Definition: topology.h:868
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:311
int snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version)
Set an optional vendor specific version number.
Definition: parser.c:428
struct snd_soc_tplg_private * priv
Definition: topology.h:969
unsigned int buffer_size_min
Definition: topology.h:950
const char * src
Definition: topology.h:890
struct snd_tplg_dai_template * dai
Definition: topology.h:1053
Template type for single DAPM graph element.
Definition: topology.h:889
Definition: topology.h:740
int min
Definition: topology.h:796
void snd_tplg_verbose(snd_tplg_t *tplg, int verbose)
Enable verbose reporting of binary file output.
Definition: parser.c:435
const char * sink
Definition: topology.h:892
Template type for TLV Scale objects.
Definition: topology.h:876
Template type for object operations mapping.
Definition: topology.h:830
int put
Definition: topology.h:832
unsigned int capture
Definition: topology.h:1009
struct snd_tplg_channel_map_template * map
Definition: topology.h:852
int mask
Definition: topology.h:879
unsigned int flag_mask
Definition: topology.h:967
Definition: topology.h:751
unsigned int pcm_id
Definition: topology.h:961
Template type for all TLV objects.
Definition: topology.h:787
unsigned int len
Definition: seq_event.h:198
unsigned int periods_max
Definition: topology.h:947
const char * name
Definition: topology.h:841
int id
Definition: topology.h:1022
Template type for physical DAI. It can be used to configure backend DAIs for DPCM.
Definition: topology.h:1005
Definition: topology.h:741
Definition: topology.h:749
unsigned int periods_min
Definition: topology.h:946
unsigned int sig_bits
Definition: topology.h:952
Definition: topology.h:744
Definition: topology.h:745
Definition: topology.h:734
int shift
Definition: topology.h:807
const void * data
Definition: topology.h:824
int invert
Definition: topology.h:856
int num_streams
Definition: topology.h:970
int type
Definition: topology.h:788
int size
Definition: topology.h:805
struct snd_tplg_graph_template * graph
Definition: topology.h:1050
Template type for physical DAI Links.
Definition: topology.h:1020
Template type for mixer control objects.
Definition: topology.h:850
int num_streams
Definition: topology.h:1025
struct snd_soc_tplg_private * priv
Definition: topology.h:1013
struct snd_tplg_link_template * link
Definition: topology.h:1052
unsigned int channels_min
Definition: topology.h:944
const char * name
Definition: topology.h:927
unsigned int dai_id
Definition: topology.h:962
int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len)
Attach private data to topology manifest.
Definition: parser.c:413
unsigned int playback
Definition: topology.h:963
int type
Definition: topology.h:840
int channels
Definition: topology.h:932
int num_channels
Definition: topology.h:815
unsigned int period_size_min
Definition: topology.h:948
Template type for channel mapping.
Definition: topology.h:814
struct snd_soc_tplg_private * priv
Definition: topology.h:1034
unsigned int period_size_max
Definition: topology.h:949
unsigned int compress
Definition: topology.h:965
int min
Definition: topology.h:853
unsigned int playback
Definition: topology.h:1008
unsigned int channels_max
Definition: topology.h:945
struct snd_tplg_tlv_template * tlv
Definition: topology.h:844
int base
Definition: topology.h:880
int info
Definition: topology.h:833
unsigned int flags
Definition: topology.h:968
int snd_tplg_build(snd_tplg_t *tplg, const char *outfile)
Build all registered topology data into binary file.
Definition: parser.c:384
int step
Definition: topology.h:797
Definition: topology.h:739
unsigned int rates
Definition: topology.h:941
int index
Definition: topology.h:1042
const char * dai_name
Definition: topology.h:1006
Template type for private data objects.
Definition: topology.h:822
int id
Definition: topology.h:808
Stream Capabilities.
Definition: topology.h:938
int period_bytes
Definition: topology.h:930
int version
Definition: topology.h:1043
Definition: topology.h:736
const char * pcm_name
Definition: topology.h:959