21 #ifndef __ALSA_TOPOLOGY_H
22 #define __ALSA_TOPOLOGY_H
491 #define SND_TPLG_MAX_CHAN 8
534 const char *outfile);
616 struct snd_soc_tplg_private *
priv;
629 struct snd_soc_tplg_private *
priv;
642 struct snd_soc_tplg_private *
priv;
677 struct snd_soc_tplg_private *
priv;
Definition: topology.h:501
struct snd_soc_tplg_private * priv
Definition: topology.h:642
const char * ctl
Definition: topology.h:650
const char * name
Definition: topology.h:698
int rate
Definition: topology.h:688
uint64_t formats
Definition: topology.h:699
int items
Definition: topology.h:625
struct snd_tplg_channel_elem channel[SND_TPLG_MAX_CHAN]
Definition: topology.h:575
const int ** values
Definition: topology.h:628
Template type for enumerated control objects.
Definition: topology.h:622
Definition: topology.h:563
unsigned int rate_min
Definition: topology.h:701
Template type for array of DAPM graph elements.
Definition: topology.h:657
Definition: topology.h:510
Definition: topology.h:511
snd_tplg_type
Definition: topology.h:497
struct snd_tplg_pcm_template * pcm
Definition: topology.h:753
int mask
Definition: topology.h:626
struct snd_tplg_enum_template * enum_ctl
Definition: topology.h:751
struct snd_tplg_bytes_template * bytes_ctl
Definition: topology.h:750
Definition: topology.h:507
struct snd_soc_tplg_private * priv
Definition: topology.h:616
struct snd_tplg_channel_map_template * map
Definition: topology.h:624
Definition: topology.h:506
int access
Definition: topology.h:601
struct snd_tplg_io_ops_template ops
Definition: topology.h:602
struct snd_tplg_tlv_template hdr
Definition: topology.h:554
struct snd_tplg_stream_template stream[0]
Definition: topology.h:726
int snd_tplg_add_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t)
Register topology template object.
Definition: parser.c:302
Definition: topology.h:499
snd_tplg_t * snd_tplg_new(void)
Create a new topology parser instance.
Definition: parser.c:384
struct snd_tplg_widget_template * widget
Definition: topology.h:748
Template type for control objects.
Definition: topology.h:598
int platform_max
Definition: topology.h:614
struct snd_tplg_io_ops_template ext_ops
Definition: topology.h:641
unsigned int length
Definition: topology.h:582
Definition: topology.h:742
const char * name
Definition: topology.h:733
unsigned int buffer_size_max
Definition: topology.h:710
struct snd_soc_tplg_private * priv
Definition: topology.h:629
unsigned int rate_max
Definition: topology.h:702
int count
Definition: topology.h:658
const char * dai_name
Definition: topology.h:718
struct snd_tplg_stream_template stream[0]
Definition: topology.h:736
int format
Definition: topology.h:687
struct snd_tplg_ctl_template hdr
Definition: topology.h:623
struct snd_tplg snd_tplg_t
Definition: topology.h:494
int reg
Definition: topology.h:565
Template type for TLV Scale objects.
Definition: topology.h:553
int vendor_type
Definition: topology.h:746
Stream configurations.
Definition: topology.h:685
struct snd_tplg_ctl_template hdr
Definition: topology.h:636
void snd_tplg_free(snd_tplg_t *tplg)
Free a topology parser instance.
Definition: parser.c:414
int max
Definition: topology.h:637
unsigned int capture
Definition: topology.h:722
int max
Definition: topology.h:613
int buffer_bytes
Definition: topology.h:690
int mute
Definition: topology.h:557
struct snd_tplg_graph_elem elem[0]
Definition: topology.h:659
int num_regs
Definition: topology.h:640
struct snd_tplg_mixer_template * mixer
Definition: topology.h:749
Definition: topology.h:502
#define SND_TPLG_MAX_CHAN
Definition: topology.h:491
Template type for PCM (FE DAI & DAI links).
Definition: topology.h:716
const char ** texts
Definition: topology.h:627
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:256
int snd_tplg_set_version(snd_tplg_t *tplg, unsigned int version)
Set an optional vendor specific version number.
Definition: parser.c:362
unsigned int buffer_size_min
Definition: topology.h:709
const char * src
Definition: topology.h:649
Template type for single DAPM graph element.
Definition: topology.h:648
Definition: topology.h:504
int min
Definition: topology.h:555
void snd_tplg_verbose(snd_tplg_t *tplg, int verbose)
Enable verbose reporting of binary file output.
Definition: parser.c:369
struct snd_tplg_stream_caps_template * caps[2]
Definition: topology.h:724
const char * sink
Definition: topology.h:651
Template type for TLV Scale objects.
Definition: topology.h:635
Template type for object operations mapping.
Definition: topology.h:589
struct snd_tplg_ctl_template hdr
Definition: topology.h:610
int put
Definition: topology.h:591
struct snd_tplg_channel_map_template * map
Definition: topology.h:611
int mask
Definition: topology.h:638
unsigned int pcm_id
Definition: topology.h:719
Template type for all TLV objects.
Definition: topology.h:546
unsigned int len
Definition: seq_event.h:198
unsigned int periods_max
Definition: topology.h:706
const char * name
Definition: topology.h:600
int id
Definition: topology.h:734
Definition: topology.h:505
unsigned int periods_min
Definition: topology.h:705
Definition: topology.h:508
Definition: topology.h:509
Definition: topology.h:498
int shift
Definition: topology.h:566
const void * data
Definition: topology.h:583
int invert
Definition: topology.h:615
int num_streams
Definition: topology.h:725
int type
Definition: topology.h:547
int size
Definition: topology.h:564
struct snd_tplg_graph_template * graph
Definition: topology.h:752
Template type for BE and CC DAI Links.
Definition: topology.h:732
Template type for mixer control objects.
Definition: topology.h:609
int num_streams
Definition: topology.h:735
struct snd_tplg_link_template * link
Definition: topology.h:754
unsigned int channels_min
Definition: topology.h:703
const char * name
Definition: topology.h:686
unsigned int dai_id
Definition: topology.h:720
int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len)
Attach private data to topology manifest.
Definition: parser.c:355
unsigned int playback
Definition: topology.h:721
int type
Definition: topology.h:599
int channels
Definition: topology.h:691
int num_channels
Definition: topology.h:574
unsigned int period_size_min
Definition: topology.h:707
Template type for channel mapping.
Definition: topology.h:573
unsigned int period_size_max
Definition: topology.h:708
unsigned int compress
Definition: topology.h:723
int min
Definition: topology.h:612
unsigned int channels_max
Definition: topology.h:704
struct snd_tplg_tlv_template * tlv
Definition: topology.h:603
int base
Definition: topology.h:639
int info
Definition: topology.h:592
int snd_tplg_build(snd_tplg_t *tplg, const char *outfile)
Build all registered topology data into binary file.
Definition: parser.c:326
int step
Definition: topology.h:556
Definition: topology.h:503
unsigned int rates
Definition: topology.h:700
int index
Definition: topology.h:744
Template type for private data objects.
Definition: topology.h:581
int id
Definition: topology.h:567
Stream Capabilities.
Definition: topology.h:697
int period_bytes
Definition: topology.h:689
int version
Definition: topology.h:745
Definition: topology.h:500
const char * pcm_name
Definition: topology.h:717