sound: soc: pcm: support host-less 24bit formats

Change-Id: Iae31b37ac5e5ad7c0a52208489a28e4a2c7cb57c
This commit is contained in:
Demon000 2019-12-01 15:55:25 +01:00 committed by Giovanni Ricca
parent ae195a0f2f
commit 07e0004ee3
No known key found for this signature in database

View File

@ -38,6 +38,8 @@ static const struct snd_pcm_hardware no_host_hardware = {
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_RESUME, SNDRV_PCM_INFO_RESUME,
.formats = SNDRV_PCM_FMTBIT_S16_LE | .formats = SNDRV_PCM_FMTBIT_S16_LE |
SNDRV_PCM_FMTBIT_S24_LE |
SNDRV_PCM_FMTBIT_S24_3LE |
SNDRV_PCM_FMTBIT_S32_LE, SNDRV_PCM_FMTBIT_S32_LE,
.period_bytes_min = PAGE_SIZE >> 2, .period_bytes_min = PAGE_SIZE >> 2,
.period_bytes_max = PAGE_SIZE >> 1, .period_bytes_max = PAGE_SIZE >> 1,