mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-05 22:37:51 +00:00
ENGR00124852 sgtl5000: support nonstandard sample rates
Supporting more sample rates that are not listed in pcm.h (12KHz and 24KHz). Signed-off-by: Alan Tull <r80115@freescale.com>
This commit is contained in:
@@ -596,6 +596,10 @@ static int sgtl5000_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
case 22050:
|
||||
sys_fs = 44100;
|
||||
break;
|
||||
case 12000:
|
||||
case 24000:
|
||||
sys_fs = 48000;
|
||||
break;
|
||||
default:
|
||||
sys_fs = sgtl5000->lrclk;
|
||||
break;
|
||||
@@ -846,7 +850,8 @@ static int sgtl5000_set_bias_level(struct snd_soc_codec *codec,
|
||||
SNDRV_PCM_RATE_32000 |\
|
||||
SNDRV_PCM_RATE_44100 |\
|
||||
SNDRV_PCM_RATE_48000 |\
|
||||
SNDRV_PCM_RATE_96000)
|
||||
SNDRV_PCM_RATE_96000 |\
|
||||
SNDRV_PCM_RATE_KNOT)
|
||||
|
||||
#define SGTL5000_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\
|
||||
SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||
|
||||
@@ -627,7 +627,7 @@ static void imx_ssi_remove(struct platform_device *pdev,
|
||||
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \
|
||||
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
|
||||
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | \
|
||||
SNDRV_PCM_RATE_96000)
|
||||
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_KNOT)
|
||||
|
||||
#define IMX_SSI_FORMATS \
|
||||
(SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
|
||||
|
||||
Reference in New Issue
Block a user