Skip to content

Commit 323702b

Browse files
larsclausenbroonie
authored andcommitted
ASoC: mmp: 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 48b752a commit 323702b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎sound/soc/pxa/mmp-pcm.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,9 @@ struct mmp_dma_data {
3636
SNDRV_PCM_INFO_PAUSE | \
3737
SNDRV_PCM_INFO_RESUME)
3838

39-
#define MMP_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
40-
SNDRV_PCM_FMTBIT_S24_LE | \
41-
SNDRV_PCM_FMTBIT_S32_LE)
42-
4339
static struct snd_pcm_hardware mmp_pcm_hardware[] = {
4440
{
4541
.info = MMP_PCM_INFO,
46-
.formats = MMP_PCM_FORMATS,
4742
.period_bytes_min = 1024,
4843
.period_bytes_max = 2048,
4944
.periods_min = 2,
@@ -53,7 +48,6 @@ static struct snd_pcm_hardware mmp_pcm_hardware[] = {
5348
},
5449
{
5550
.info = MMP_PCM_INFO,
56-
.formats = MMP_PCM_FORMATS,
5751
.period_bytes_min = 1024,
5852
.period_bytes_max = 2048,
5953
.periods_min = 2,

0 commit comments

Comments
 (0)