diff options
| -rw-r--r-- | include/sound/soc-dai.h | 2 | ||||
| -rw-r--r-- | sound/soc/soc-utils.c | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 800c101bb096..c42864b34581 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
| @@ -123,6 +123,8 @@ int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); | |||
| 123 | int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, | 123 | int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, |
| 124 | int direction); | 124 | int direction); |
| 125 | 125 | ||
| 126 | int snd_soc_dai_is_dummy(struct snd_soc_dai *dai); | ||
| 127 | |||
| 126 | struct snd_soc_dai_ops { | 128 | struct snd_soc_dai_ops { |
| 127 | /* | 129 | /* |
| 128 | * DAI clocking configuration, all optional. | 130 | * DAI clocking configuration, all optional. |
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 5e633659c1b3..d14bdb3c52df 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c | |||
| @@ -123,6 +123,13 @@ static struct snd_soc_dai_driver dummy_dai = { | |||
| 123 | }, | 123 | }, |
| 124 | }; | 124 | }; |
| 125 | 125 | ||
| 126 | int snd_soc_dai_is_dummy(struct snd_soc_dai *dai) | ||
| 127 | { | ||
| 128 | if (dai->driver == &dummy_dai) | ||
| 129 | return 1; | ||
| 130 | return 0; | ||
| 131 | } | ||
| 132 | |||
| 126 | static int snd_soc_dummy_probe(struct platform_device *pdev) | 133 | static int snd_soc_dummy_probe(struct platform_device *pdev) |
| 127 | { | 134 | { |
| 128 | int ret; | 135 | int ret; |
