mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
ASoC: soc-core.c: use helper function
Current ASoC has many helper function. This patch use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/87k013ea2u.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2abde57fb8
commit
9024bae4bb
@ -553,7 +553,7 @@ int snd_soc_suspend(struct device *dev)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* If the card is not initialized yet there is nothing to do */
|
/* If the card is not initialized yet there is nothing to do */
|
||||||
if (!card->instantiated)
|
if (!snd_soc_card_is_instantiated(card))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -695,7 +695,7 @@ int snd_soc_resume(struct device *dev)
|
|||||||
struct snd_soc_component *component;
|
struct snd_soc_component *component;
|
||||||
|
|
||||||
/* If the card is not initialized yet there is nothing to do */
|
/* If the card is not initialized yet there is nothing to do */
|
||||||
if (!card->instantiated)
|
if (!snd_soc_card_is_instantiated(card))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* activate pins from sleep state */
|
/* activate pins from sleep state */
|
||||||
@ -1915,7 +1915,7 @@ static void soc_cleanup_card_resources(struct snd_soc_card *card)
|
|||||||
|
|
||||||
static void snd_soc_unbind_card(struct snd_soc_card *card, bool unregister)
|
static void snd_soc_unbind_card(struct snd_soc_card *card, bool unregister)
|
||||||
{
|
{
|
||||||
if (card->instantiated) {
|
if (snd_soc_card_is_instantiated(card)) {
|
||||||
card->instantiated = false;
|
card->instantiated = false;
|
||||||
snd_soc_flush_all_delayed_work(card);
|
snd_soc_flush_all_delayed_work(card);
|
||||||
|
|
||||||
@ -2126,7 +2126,7 @@ int snd_soc_poweroff(struct device *dev)
|
|||||||
struct snd_soc_card *card = dev_get_drvdata(dev);
|
struct snd_soc_card *card = dev_get_drvdata(dev);
|
||||||
struct snd_soc_component *component;
|
struct snd_soc_component *component;
|
||||||
|
|
||||||
if (!card->instantiated)
|
if (!snd_soc_card_is_instantiated(card))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user