Skip to content

Commit 111bd7b

Browse files
larsclausenbroonie
authored andcommitted
ASoC: ep93xx: Don't set unused struct snd_pcm_hardware fields
The ASoC core assumes that the PCM component of the ASoC card transparently moves data around and does not impose any restrictions on the memory layout or the transfer speed. It ignores all fields from the snd_pcm_hardware struct for the PCM driver that are related to this. Setting these fields in the PCM driver might suggest otherwise though, so rather not set them. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
1 parent a8983d4 commit 111bd7b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎sound/soc/cirrus/ep93xx-pcm.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ static const struct snd_pcm_hardware ep93xx_pcm_hardware = {
3030
SNDRV_PCM_INFO_MMAP_VALID |
3131
SNDRV_PCM_INFO_INTERLEAVED |
3232
SNDRV_PCM_INFO_BLOCK_TRANSFER),
33-
34-
.rates = SNDRV_PCM_RATE_8000_192000,
35-
.rate_min = SNDRV_PCM_RATE_8000,
36-
.rate_max = SNDRV_PCM_RATE_192000,
37-
38-
.formats = (SNDRV_PCM_FMTBIT_S16_LE |
39-
SNDRV_PCM_FMTBIT_S24_LE |
40-
SNDRV_PCM_FMTBIT_S32_LE),
41-
4233
.buffer_bytes_max = 131072,
4334
.period_bytes_min = 32,
4435
.period_bytes_max = 32768,

0 commit comments

Comments
 (0)