MLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 19 Jan 2018 07:43:52 +0000 (15:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:53:18 +0000 (14:53 -0500)
commit39b3de0b9fa6ac8e04fce589ae77c527236856e3
treeb47b1488a17290fc3b9318b3874f5e2e71015623
parenta38cc400a806c548c2f1b3c2c1536999e4ec6037
MLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/codecs/ak4497.c
sound/soc/codecs/ak4497.h