Skip to content

Commit 328089a

Browse files
larsclausenbroonie
authored andcommitted
ASoC: samsung: 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 61c66c6 commit 328089a

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎sound/soc/samsung/dma.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ static const struct snd_pcm_hardware dma_hardware = {
3535
SNDRV_PCM_INFO_BLOCK_TRANSFER |
3636
SNDRV_PCM_INFO_MMAP |
3737
SNDRV_PCM_INFO_MMAP_VALID,
38-
.formats = SNDRV_PCM_FMTBIT_S16_LE |
39-
SNDRV_PCM_FMTBIT_U16_LE |
40-
SNDRV_PCM_FMTBIT_U8 |
41-
SNDRV_PCM_FMTBIT_S8,
42-
.channels_min = 2,
43-
.channels_max = 2,
4438
.buffer_bytes_max = 128*1024,
4539
.period_bytes_min = PAGE_SIZE,
4640
.period_bytes_max = PAGE_SIZE*2,

‎sound/soc/samsung/idma.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ static const struct snd_pcm_hardware idma_hardware = {
3535
SNDRV_PCM_INFO_MMAP_VALID |
3636
SNDRV_PCM_INFO_PAUSE |
3737
SNDRV_PCM_INFO_RESUME,
38-
.formats = SNDRV_PCM_FMTBIT_S16_LE |
39-
SNDRV_PCM_FMTBIT_U16_LE |
40-
SNDRV_PCM_FMTBIT_S24_LE |
41-
SNDRV_PCM_FMTBIT_U24_LE |
42-
SNDRV_PCM_FMTBIT_U8 |
43-
SNDRV_PCM_FMTBIT_S8,
44-
.channels_min = 2,
45-
.channels_max = 2,
4638
.buffer_bytes_max = MAX_IDMA_BUFFER,
4739
.period_bytes_min = 128,
4840
.period_bytes_max = MAX_IDMA_PERIOD,

0 commit comments

Comments
 (0)