summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm179x.c
diff options
context:
space:
mode:
authorJacob Siverskog <jacob@teenage.engineering>2016-01-22 15:39:55 +0300
committerMark Brown <broonie@kernel.org>2016-01-29 02:36:26 +0300
commite0236f541e68aa2187a9a402bf74bec6f007eb84 (patch)
tree32202f93a0fc444768019d23c3b93b705e6dfb28 /sound/soc/codecs/pcm179x.c
parent70e3e56e6c3d499be47322037ed4a42314a8e509 (diff)
downloadlinux-e0236f541e68aa2187a9a402bf74bec6f007eb84.tar.xz
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.pdf Signed-off-by: Jacob Siverskog <jacob@teenage.engineering> Reviewed-by: Johan Hovold <johan@kernel.org> Acked-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm179x.c')
-rw-r--r--sound/soc/codecs/pcm179x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
index 8f20f70af23e..06a66579ca6d 100644
--- a/sound/soc/codecs/pcm179x.c
+++ b/sound/soc/codecs/pcm179x.c
@@ -187,7 +187,9 @@ static struct snd_soc_dai_driver pcm179x_dai = {
.stream_name = "Playback",
.channels_min = 2,
.channels_max = 2,
- .rates = PCM1792A_RATES,
+ .rates = SNDRV_PCM_RATE_CONTINUOUS,
+ .rate_min = 10000,
+ .rate_max = 200000,
.formats = PCM1792A_FORMATS, },
.ops = &pcm179x_dai_ops,
};