struct snd_tplg_widget_template

Overview

Template type for DAPM widget objects. Moreā€¦

#include <topology.h>

struct snd_tplg_widget_template {
    // fields

    int id;
    const char* name;
    const char* sname;
    int reg;
    int shift;
    int mask;
    int subseq;
    unsigned int invert;
    unsigned int ignore_suspend;
    unsigned short event_flags;
    unsigned short event_type;
    struct snd_soc_tplg_private* priv;
    int num_ctls;
    struct snd_tplg_ctl_template* ctl[0];
};

Detailed Documentation

Template type for DAPM widget objects.

Fields

int id

SND_SOC_DAPM_CTL

const char* name

widget name

const char* sname

stream name (certain widgets only)

int reg

negative reg = no direct dapm

int shift

bits to shift

int mask

non-shifted mask

int subseq

sort within widget type

unsigned int invert

invert the power bit

unsigned int ignore_suspend

kept enabled over suspend

unsigned short event_flags

PM event sequence flags

unsigned short event_type

PM event sequence type

struct snd_soc_tplg_private* priv

widget private data

int num_ctls

Number of controls used by widget

struct snd_tplg_ctl_template* ctl[0]

array of widget controls