提交 e0236f54 编写于 作者: J Jacob Siverskog 提交者: Mark Brown

ASoC: pcm179x: Support continuous rates

According to the PCM179x data sheets sampling frequencies between 10
kHz and 200 kHz are supported. Specify support in the driver.

Tested with PCM1791A.

References:
http://www.ti.com/lit/ds/symlink/pcm1791a.pdf
http://www.ti.com/lit/ds/symlink/pcm1792a.pdf
http://www.ti.com/lit/ds/symlink/pcm1795.pdf
http://www.ti.com/lit/ds/symlink/pcm1796.pdfSigned-off-by: NJacob Siverskog <jacob@teenage.engineering>
Reviewed-by: NJohan Hovold <johan@kernel.org>
Acked-by: NMichael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 70e3e56e
...@@ -187,7 +187,9 @@ static struct snd_soc_dai_driver pcm179x_dai = { ...@@ -187,7 +187,9 @@ static struct snd_soc_dai_driver pcm179x_dai = {
.stream_name = "Playback", .stream_name = "Playback",
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = PCM1792A_RATES, .rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 10000,
.rate_max = 200000,
.formats = PCM1792A_FORMATS, }, .formats = PCM1792A_FORMATS, },
.ops = &pcm179x_dai_ops, .ops = &pcm179x_dai_ops,
}; };
......
...@@ -17,10 +17,6 @@ ...@@ -17,10 +17,6 @@
#ifndef __PCM179X_H__ #ifndef __PCM179X_H__
#define __PCM179X_H__ #define __PCM179X_H__
#define PCM1792A_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_8000_48000 | \
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_192000)
#define PCM1792A_FORMATS (SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE | \ #define PCM1792A_FORMATS (SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S16_LE) SNDRV_PCM_FMTBIT_S16_LE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册