*参照元 [#r2d15bee] #backlinks *説明 [#b255427f] -パス: [[linux-4.4.1/include/sound/soc.h]] -FIXME: これは何? --説明 **参考 [#z1f8062f] *実装 [#kc5de766] struct snd_soc_component { const char *name; int id; const char *name_prefix; struct device *dev; struct snd_soc_card *card; - --[[linux-4.4.1/device]] --[[linux-4.4.1/snd_soc_card]] unsigned int active; unsigned int ignore_pmdown_time:1; /* pmdown_time is ignored at stop */ unsigned int registered_as_component:1; struct list_head list; - --[[linux-4.4.1/list_head]] struct snd_soc_dai_driver *dai_drv; int num_dai; - --[[linux-4.4.1/snd_soc_dai_driver]] const struct snd_soc_component_driver *driver; - --[[linux-4.4.1/snd_soc_component_driver]] struct list_head dai_list; int (*read)(struct snd_soc_component *, unsigned int, unsigned int *); int (*write)(struct snd_soc_component *, unsigned int, unsigned int); - --[[linux-4.4.1/snd_soc_component]] struct regmap *regmap; int val_bytes; - --[[linux-4.4.1/regmap]] struct mutex io_mutex; - --[[linux-4.4.1/mutex]] /* attached dynamic objects */ struct list_head dobj_list; #ifdef CONFIG_DEBUG_FS - --[[linux-4.4.1/CONFIG_DEBUG_FS]] struct dentry *debugfs_root; - --[[linux-4.4.1/dentry]] #endif /* * DO NOT use any of the fields below in drivers, they are temporary and * are going to be removed again soon. If you use them in driver code the * driver will be marked as BROKEN when these fields are removed. */ /* Don't use these, use snd_soc_component_get_dapm() */ struct snd_soc_dapm_context dapm; - --[[linux-4.4.1/snd_soc_dapm_context]] const struct snd_kcontrol_new *controls; unsigned int num_controls; - --[[linux-4.4.1/snd_kcontrol_new]] const struct snd_soc_dapm_widget *dapm_widgets; unsigned int num_dapm_widgets; - --[[linux-4.4.1/snd_soc_dapm_widget]] const struct snd_soc_dapm_route *dapm_routes; unsigned int num_dapm_routes; - --[[linux-4.4.1/snd_soc_dapm_route]] struct snd_soc_codec *codec; - --[[linux-4.4.1/snd_soc_codec]] int (*probe)(struct snd_soc_component *); void (*remove)(struct snd_soc_component *); #ifdef CONFIG_DEBUG_FS void (*init_debugfs)(struct snd_soc_component *component); const char *debugfs_prefix; #endif }; *コメント [#lc168e45]