sound: soc: support host-less 24bit formats

This commit is contained in:
spakkkk 2021-02-04 22:08:03 +00:00
parent 077707ce4b
commit d3e43a11f0

View File

@ -3,6 +3,7 @@
// soc-pcm.c -- ALSA SoC PCM
//
// Copyright 2005 Wolfson Microelectronics PLC.
// Copyright (C) 2021 XiaoMi, Inc.
// Copyright 2005 Openedhand Ltd.
// Copyright (C) 2010 Slimlogic Ltd.
// Copyright (C) 2010 Texas Instruments Inc.
@ -40,6 +41,8 @@ static const struct snd_pcm_hardware no_host_hardware = {
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_RESUME,
.formats = SNDRV_PCM_FMTBIT_S16_LE |
SNDRV_PCM_FMTBIT_S24_LE |
SNDRV_PCM_FMTBIT_S24_3LE |
SNDRV_PCM_FMTBIT_S32_LE,
.period_bytes_min = PAGE_SIZE >> 2,
.period_bytes_max = PAGE_SIZE >> 1,