aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/bt-sco.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-19 07:16:19 -0400
committerMark Brown <broonie@linaro.org>2013-08-19 07:20:26 -0400
commit5195ca4902fe0b2ae01eb43ce522b89163672804 (patch)
tree107a067cb58a47276a4653b89d9b44b9a30067d3 /sound/soc/codecs/bt-sco.c
parentb9dff9c3d2c6c4a9cdb936f263ed293274e2f05a (diff)
ASoC: bt-sco: Provide stub DAPM integration
Ensure continued operation with DAPM being mandatory. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/bt-sco.c')
-rw-r--r--sound/soc/codecs/bt-sco.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index 5c040ce33f1d..c4cf0699e77f 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -15,15 +15,27 @@
15 15
16#include <sound/soc.h> 16#include <sound/soc.h>
17 17
18static const struct snd_soc_dapm_widget bt_sco_widgets[] = {
19 SND_SOC_DAPM_INPUT("RX"),
20 SND_SOC_DAPM_OUTPUT("TX"),
21};
22
23static const struct snd_soc_dapm_route bt_sco_routes[] = {
24 { "Capture", NULL, "RX" },
25 { "TX", NULL, "Playback" },
26};
27
18static struct snd_soc_dai_driver bt_sco_dai = { 28static struct snd_soc_dai_driver bt_sco_dai = {
19 .name = "bt-sco-pcm", 29 .name = "bt-sco-pcm",
20 .playback = { 30 .playback = {
31 .stream_name = "Playback",
21 .channels_min = 1, 32 .channels_min = 1,
22 .channels_max = 1, 33 .channels_max = 1,
23 .rates = SNDRV_PCM_RATE_8000, 34 .rates = SNDRV_PCM_RATE_8000,
24 .formats = SNDRV_PCM_FMTBIT_S16_LE, 35 .formats = SNDRV_PCM_FMTBIT_S16_LE,
25 }, 36 },
26 .capture = { 37 .capture = {
38 .stream_name = "Capture",
27 .channels_min = 1, 39 .channels_min = 1,
28 .channels_max = 1, 40 .channels_max = 1,
29 .rates = SNDRV_PCM_RATE_8000, 41 .rates = SNDRV_PCM_RATE_8000,
@@ -31,7 +43,12 @@ static struct snd_soc_dai_driver bt_sco_dai = {
31 }, 43 },
32}; 44};
33 45
34static struct snd_soc_codec_driver soc_codec_dev_bt_sco; 46static struct snd_soc_codec_driver soc_codec_dev_bt_sco = {
47 .dapm_widgets = bt_sco_widgets,
48 .num_dapm_widgets = ARRAY_SIZE(bt_sco_widgets),
49 .dapm_routes = bt_sco_routes,
50 .num_dapm_routes = ARRAY_SIZE(bt_sco_routes),
51};
35 52
36static int bt_sco_probe(struct platform_device *pdev) 53static int bt_sco_probe(struct platform_device *pdev)
37{ 54{