sound: soc: support host-less 24bit formats
This commit is contained in:
parent
077707ce4b
commit
d3e43a11f0
@ -3,6 +3,7 @@
|
|||||||
// soc-pcm.c -- ALSA SoC PCM
|
// soc-pcm.c -- ALSA SoC PCM
|
||||||
//
|
//
|
||||||
// Copyright 2005 Wolfson Microelectronics PLC.
|
// Copyright 2005 Wolfson Microelectronics PLC.
|
||||||
|
// Copyright (C) 2021 XiaoMi, Inc.
|
||||||
// Copyright 2005 Openedhand Ltd.
|
// Copyright 2005 Openedhand Ltd.
|
||||||
// Copyright (C) 2010 Slimlogic Ltd.
|
// Copyright (C) 2010 Slimlogic Ltd.
|
||||||
// Copyright (C) 2010 Texas Instruments Inc.
|
// 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_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,
|
||||||
|
Loading…
Reference in New Issue
Block a user