Commit 317ec675 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: soc.h: convert bool to bit field for snd_soc_card

snd_soc_card has many bool, but it can be bit field.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/87d06o25l2.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6e28a0c3
...@@ -820,7 +820,7 @@ struct snd_soc_dai_link { ...@@ -820,7 +820,7 @@ struct snd_soc_dai_link {
const struct snd_soc_compr_ops *compr_ops; const struct snd_soc_compr_ops *compr_ops;
/* Mark this pcm with non atomic ops */ /* Mark this pcm with non atomic ops */
bool nonatomic; unsigned int nonatomic:1;
/* For unidirectional dai links */ /* For unidirectional dai links */
unsigned int playback_only:1; unsigned int playback_only:1;
...@@ -1016,9 +1016,6 @@ struct snd_soc_card { ...@@ -1016,9 +1016,6 @@ struct snd_soc_card {
spinlock_t dpcm_lock; spinlock_t dpcm_lock;
bool instantiated;
bool topology_shortname_created;
int (*probe)(struct snd_soc_card *card); int (*probe)(struct snd_soc_card *card);
int (*late_probe)(struct snd_soc_card *card); int (*late_probe)(struct snd_soc_card *card);
int (*remove)(struct snd_soc_card *card); int (*remove)(struct snd_soc_card *card);
...@@ -1079,8 +1076,6 @@ struct snd_soc_card { ...@@ -1079,8 +1076,6 @@ struct snd_soc_card {
int num_of_dapm_widgets; int num_of_dapm_widgets;
const struct snd_soc_dapm_route *of_dapm_routes; const struct snd_soc_dapm_route *of_dapm_routes;
int num_of_dapm_routes; int num_of_dapm_routes;
bool fully_routed;
bool disable_route_checks;
/* lists of probed devices belonging to this card */ /* lists of probed devices belonging to this card */
struct list_head component_dev_list; struct list_head component_dev_list;
...@@ -1107,6 +1102,12 @@ struct snd_soc_card { ...@@ -1107,6 +1102,12 @@ struct snd_soc_card {
#endif #endif
u32 pop_time; u32 pop_time;
/* bit field */
unsigned int instantiated:1;
unsigned int topology_shortname_created:1;
unsigned int fully_routed:1;
unsigned int disable_route_checks:1;
void *drvdata; void *drvdata;
}; };
#define for_each_card_prelinks(card, i, link) \ #define for_each_card_prelinks(card, i, link) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment