]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ASoC: cs4265: Add a S/PDIF enable switch
authorMatt Flax <flatmax@flatmax.org>
Wed, 29 Aug 2018 23:38:02 +0000 (09:38 +1000)
committerMark Brown <broonie@kernel.org>
Fri, 31 Aug 2018 14:57:24 +0000 (15:57 +0100)
This patch adds a S/PDIF enable switch as a SOC_SINGLE.

Signed-off-by: Matt Flax <flatmax@flatmax.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4265.c

index 17d7e6f0dcdb3cd3b9b5cf3c68299ac42c5fb268..d9eebf6af7a8c1f49cb46a96ee49c35d4352bb9e 100644 (file)
@@ -154,6 +154,7 @@ static const struct snd_kcontrol_new cs4265_snd_controls[] = {
        SOC_SINGLE("E to F Buffer Disable Switch", CS4265_SPDIF_CTL1,
                                6, 1, 0),
        SOC_ENUM("C Data Access", cam_mode_enum),
+       SOC_SINGLE("SPDIF Switch", CS4265_SPDIF_CTL2, 5, 1, 1),
        SOC_SINGLE("Validity Bit Control Switch", CS4265_SPDIF_CTL2,
                                3, 1, 0),
        SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),