ath79/mikrotik: use routerbootpart partitions
[oweals/openwrt.git] / target / linux / layerscape / patches-5.4 / 801-audio-0041-MLK-17485-ASoC-fsl_sai-Specify-supported-rate_min-an.patch
1 From 4859edfca7fb2408b8b9f90bf03c62e484dadc79 Mon Sep 17 00:00:00 2001
2 From: Daniel Baluta <daniel.baluta@nxp.com>
3 Date: Fri, 2 Feb 2018 11:02:27 +0200
4 Subject: [PATCH] MLK-17485: ASoC: fsl_sai: Specify supported rate_min and
5  rate_max
6
7 Because fsl_sai_dai rates doesn't have a specific set of
8 rate values (.rates = SNDRV_PCM_RATE_KNOT) we need to provide
9 rate_min and rate_max otherwise functions trying to get
10 supported parameters will get confused and return an error.
11
12 Fixes:  1b6f0496e013 ("MLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate")
13 Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
14 Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
15 ---
16  sound/soc/fsl/fsl_sai.c | 4 ++++
17  1 file changed, 4 insertions(+)
18
19 --- a/sound/soc/fsl/fsl_sai.c
20 +++ b/sound/soc/fsl/fsl_sai.c
21 @@ -917,6 +917,8 @@ static struct snd_soc_dai_driver fsl_sai
22                 .stream_name = "CPU-Playback",
23                 .channels_min = 1,
24                 .channels_max = 32,
25 +               .rate_min = 8000,
26 +               .rate_max = 2822400,
27                 .rates = SNDRV_PCM_RATE_KNOT,
28                 .formats = FSL_SAI_FORMATS,
29         },
30 @@ -924,6 +926,8 @@ static struct snd_soc_dai_driver fsl_sai
31                 .stream_name = "CPU-Capture",
32                 .channels_min = 1,
33                 .channels_max = 32,
34 +               .rate_min = 8000,
35 +               .rate_max = 2822400,
36                 .rates = SNDRV_PCM_RATE_KNOT,
37                 .formats = FSL_SAI_FORMATS,
38         },