608ab2b5f3d208a4681be421ea0dea12f8a4c26a
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0164-ASoC-cs4265-Add-a-S-PDIF-enable-switch.patch
1 From 42d8389b1b8b22be93aefd995f8a1b818bf1dac5 Mon Sep 17 00:00:00 2001
2 From: Matt Flax <flatmax@flatmax.org>
3 Date: Thu, 30 Aug 2018 09:38:02 +1000
4 Subject: [PATCH 164/703] ASoC: cs4265: Add a S/PDIF enable switch
5
6 commit f853d6b3ba345297974d877d8ed0f4a91eaca739 upstream.
7
8 This patch adds a S/PDIF enable switch as a SOC_SINGLE.
9
10 Signed-off-by: Matt Flax <flatmax@flatmax.org>
11 Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
12 Signed-off-by: Mark Brown <broonie@kernel.org>
13 ---
14 sound/soc/codecs/cs4265.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/sound/soc/codecs/cs4265.c
18 +++ b/sound/soc/codecs/cs4265.c
19 @@ -154,6 +154,7 @@ static const struct snd_kcontrol_new cs4
20 SOC_SINGLE("E to F Buffer Disable Switch", CS4265_SPDIF_CTL1,
21 6, 1, 0),
22 SOC_ENUM("C Data Access", cam_mode_enum),
23 + SOC_SINGLE("SPDIF Switch", CS4265_SPDIF_CTL2, 5, 1, 1),
24 SOC_SINGLE("Validity Bit Control Switch", CS4265_SPDIF_CTL2,
25 3, 1, 0),
26 SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),