]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: SOF: enable dual control for pga
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Tue, 8 Oct 2019 16:44:41 +0000 (11:44 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 10 Oct 2019 14:14:24 +0000 (15:14 +0100)
commita68c6b6cc77b841dc37c17a5d9a7074e26801af5
tree735f36000535088eefc116b5fef62f5cb60d8b41
parentf3416e7144f5d4ba0fc5dcef6ebfff891266c46a
ASoC: SOF: enable dual control for pga

Currently sof pga element supports only 1 kcontrol and you can't create
for example a mixer element with combined volume slider and mute switch.
So enable sof pga to have more than 1 kcontrol associated with it. Also
check for possible NULL tlv pointer as switch element might not have it.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191008164443.1358-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c