Commit 5195ca4902fe0b2ae01eb43ce522b89163672804
1 parent
b9dff9c3d2
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
ASoC: bt-sco: Provide stub DAPM integration
Ensure continued operation with DAPM being mandatory. Signed-off-by: Mark Brown <broonie@linaro.org>
Showing 1 changed file with 18 additions and 1 deletions Side-by-side Diff
sound/soc/codecs/bt-sco.c
... | ... | @@ -15,15 +15,27 @@ |
15 | 15 | |
16 | 16 | #include <sound/soc.h> |
17 | 17 | |
18 | +static const struct snd_soc_dapm_widget bt_sco_widgets[] = { | |
19 | + SND_SOC_DAPM_INPUT("RX"), | |
20 | + SND_SOC_DAPM_OUTPUT("TX"), | |
21 | +}; | |
22 | + | |
23 | +static const struct snd_soc_dapm_route bt_sco_routes[] = { | |
24 | + { "Capture", NULL, "RX" }, | |
25 | + { "TX", NULL, "Playback" }, | |
26 | +}; | |
27 | + | |
18 | 28 | static struct snd_soc_dai_driver bt_sco_dai = { |
19 | 29 | .name = "bt-sco-pcm", |
20 | 30 | .playback = { |
31 | + .stream_name = "Playback", | |
21 | 32 | .channels_min = 1, |
22 | 33 | .channels_max = 1, |
23 | 34 | .rates = SNDRV_PCM_RATE_8000, |
24 | 35 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
25 | 36 | }, |
26 | 37 | .capture = { |
38 | + .stream_name = "Capture", | |
27 | 39 | .channels_min = 1, |
28 | 40 | .channels_max = 1, |
29 | 41 | .rates = SNDRV_PCM_RATE_8000, |
... | ... | @@ -31,7 +43,12 @@ |
31 | 43 | }, |
32 | 44 | }; |
33 | 45 | |
34 | -static struct snd_soc_codec_driver soc_codec_dev_bt_sco; | |
46 | +static 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 | |
36 | 53 | static int bt_sco_probe(struct platform_device *pdev) |
37 | 54 | { |