ASoC: dapm: Fix kcontrol creation for output driver widget
authorChen-Yu Tsai <wens@csie.org>
Sat, 27 Aug 2016 11:28:00 +0000 (19:28 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 20:05:24 +0000 (21:05 +0100)
commita3930ed060df4ccf2a06cf0b68738dec3e6ff89a
treed23174110d2ffc5270cce199a8afef8bf9243b5e
parent071133a209354f39d4e5785d5a6a390e03241841
ASoC: dapm: Fix kcontrol creation for output driver widget

Commit d88429a695a4 ("ASoC: dapm: Add output driver widget") added
the snd_soc_dapm_out_drv ID for the output driver widget, which is
the same as the PGA widget, with a later power sequence number.

Commit 19a2557b76d6 ("ASoC: dapm: Add kcontrol support for PGAs")
then added kcontrol support for PGA widgets, but failed to account
for output driver widgets. Attempts to use kcontrols with output
driver widgets result in silent failures, with the developer having
little idea about what went on.

Add snd_soc_dapm_out_drv to the switch/case block under snd_soc_dapm_pga
in dapm_create_or_share_kcontrol, since they are essentially the same.

Fixes: 19a2557b76d6 (ASoC: dapm: Add kcontrol support for PGAs)
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c