bcm27xx: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0630-ASoC-ma120x0p-Add-96KHz-rate-support.patch
1 From 9554903fc8c15828d8f6cc9bd8c5444433c56cae Mon Sep 17 00:00:00 2001
2 From: AMuszkat <ariel.muszkat@gmail.com>
3 Date: Wed, 8 Apr 2020 10:04:49 +0200
4 Subject: [PATCH] ASoC: ma120x0p: Add 96KHz rate support
5
6 Add 96KHz rate support to MA120X0P codec and make enable and mute gpio
7 pins optional.
8
9 Signed-off-by: AMuszkat <ariel.muszkat@gmail.com>
10 ---
11 sound/soc/codecs/ma120x0p.c | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14 --- a/sound/soc/codecs/ma120x0p.c
15 +++ b/sound/soc/codecs/ma120x0p.c
16 @@ -1002,7 +1002,7 @@ static struct snd_soc_dai_driver ma120x0
17 .channels_max = 2,
18 .rates = SNDRV_PCM_RATE_CONTINUOUS,
19 .rate_min = 44100,
20 - .rate_max = 48000,
21 + .rate_max = 96000,
22 .formats = SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE
23 },
24 .ops = &ma120x0p_dai_ops,
25 @@ -1235,7 +1235,7 @@ static int ma120x0p_i2c_probe(struct i2c
26 //Startup sequence
27
28 //Make sure the device is muted
29 - priv_data->mute_gpio = devm_gpiod_get(&i2c->dev, "mute_gp",
30 + priv_data->mute_gpio = devm_gpiod_get_optional(&i2c->dev, "mute_gp",
31 GPIOD_OUT_LOW);
32 if (IS_ERR(priv_data->mute_gpio)) {
33 ret = PTR_ERR(priv_data->mute_gpio);
34 @@ -1262,7 +1262,7 @@ static int ma120x0p_i2c_probe(struct i2c
35 msleep(200);
36
37 //Enable ma120x0pp
38 - priv_data->enable_gpio = devm_gpiod_get(&i2c->dev,
39 + priv_data->enable_gpio = devm_gpiod_get_optional(&i2c->dev,
40 "enable_gp", GPIOD_OUT_LOW);
41 if (IS_ERR(priv_data->enable_gpio)) {
42 ret = PTR_ERR(priv_data->enable_gpio);