diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-utils.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index fe4541df498c..4b3be6c3c91e 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c | |||
@@ -90,8 +90,33 @@ static struct snd_soc_platform_driver dummy_platform = { | |||
90 | }; | 90 | }; |
91 | 91 | ||
92 | static struct snd_soc_codec_driver dummy_codec; | 92 | static struct snd_soc_codec_driver dummy_codec; |
93 | |||
94 | #define STUB_RATES SNDRV_PCM_RATE_8000_192000 | ||
95 | #define STUB_FORMATS (SNDRV_PCM_FMTBIT_S8 | \ | ||
96 | SNDRV_PCM_FMTBIT_U8 | \ | ||
97 | SNDRV_PCM_FMTBIT_S16_LE | \ | ||
98 | SNDRV_PCM_FMTBIT_U16_LE | \ | ||
99 | SNDRV_PCM_FMTBIT_S24_LE | \ | ||
100 | SNDRV_PCM_FMTBIT_U24_LE | \ | ||
101 | SNDRV_PCM_FMTBIT_S32_LE | \ | ||
102 | SNDRV_PCM_FMTBIT_U32_LE | \ | ||
103 | SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE) | ||
93 | static struct snd_soc_dai_driver dummy_dai = { | 104 | static struct snd_soc_dai_driver dummy_dai = { |
94 | .name = "snd-soc-dummy-dai", | 105 | .name = "snd-soc-dummy-dai", |
106 | .playback = { | ||
107 | .stream_name = "Playback", | ||
108 | .channels_min = 1, | ||
109 | .channels_max = 384, | ||
110 | .rates = STUB_RATES, | ||
111 | .formats = STUB_FORMATS, | ||
112 | }, | ||
113 | .capture = { | ||
114 | .stream_name = "Capture", | ||
115 | .channels_min = 1, | ||
116 | .channels_max = 384, | ||
117 | .rates = STUB_RATES, | ||
118 | .formats = STUB_FORMATS, | ||
119 | }, | ||
95 | }; | 120 | }; |
96 | 121 | ||
97 | static int snd_soc_dummy_probe(struct platform_device *pdev) | 122 | static int snd_soc_dummy_probe(struct platform_device *pdev) |