soc-utils.c (688d794c4c3f8b08c814381ee2edd3ede5856056) soc-utils.c (60b6f1a1e578a5f8a245d4b7622ebf2bad7798cb)
1/*
2 * soc-util.c -- ALSA SoC Audio Layer utility functions
3 *
4 * Copyright 2009 Wolfson Microelectronics PLC.
5 *
6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7 * Liam Girdwood <lrg@slimlogic.co.uk>
8 *

--- 76 unchanged lines hidden (view full) ---

85 .ioctl = snd_pcm_lib_ioctl,
86};
87
88static struct snd_soc_platform_driver dummy_platform = {
89 .ops = &dummy_dma_ops,
90};
91
92static struct snd_soc_codec_driver dummy_codec;
1/*
2 * soc-util.c -- ALSA SoC Audio Layer utility functions
3 *
4 * Copyright 2009 Wolfson Microelectronics PLC.
5 *
6 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7 * Liam Girdwood <lrg@slimlogic.co.uk>
8 *

--- 76 unchanged lines hidden (view full) ---

85 .ioctl = snd_pcm_lib_ioctl,
86};
87
88static struct snd_soc_platform_driver dummy_platform = {
89 .ops = &dummy_dma_ops,
90};
91
92static 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)
93static struct snd_soc_dai_driver dummy_dai = {
94 .name = "snd-soc-dummy-dai",
104static struct snd_soc_dai_driver 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};
96
97static int snd_soc_dummy_probe(struct platform_device *pdev)
98{
99 int ret;
100
101 ret = snd_soc_register_codec(&pdev->dev, &dummy_codec, &dummy_dai, 1);
102 if (ret < 0)

--- 56 unchanged lines hidden ---
120};
121
122static int snd_soc_dummy_probe(struct platform_device *pdev)
123{
124 int ret;
125
126 ret = snd_soc_register_codec(&pdev->dev, &dummy_codec, &dummy_dai, 1);
127 if (ret < 0)

--- 56 unchanged lines hidden ---