diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-06-04 16:04:15 +0300 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-07-03 23:02:24 -0400 |
commit | 7fc2eaae419cbf204c00dcbd36bd514d88c094a7 (patch) | |
tree | 7b9043c9167b152f01cdd812a986625da72d9113 /sound | |
parent | 9f62d78bb265b3c927c0d75c43c22932d05ac3c4 (diff) | |
download | lwn-7fc2eaae419cbf204c00dcbd36bd514d88c094a7.tar.gz lwn-7fc2eaae419cbf204c00dcbd36bd514d88c094a7.zip |
ASoC: tas2552: Fix kernel crash caused by wrong kcontrol entry
[ Upstream commit 1cf0f44811b754b64283b11ef0e60cb0de07b29c ]
SOC_DAPM_SINGLE("Playback AMP", ..) should not be under kcontrols. It
causes kernel crash (NULL pointer) when the mixers are listed.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tas2552.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index 8543a061d477..6dbfc4703a3a 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c @@ -338,7 +338,6 @@ static DECLARE_TLV_DB_SCALE(dac_tlv, -7, 100, 24); static const struct snd_kcontrol_new tas2552_snd_controls[] = { SOC_SINGLE_TLV("Speaker Driver Playback Volume", TAS2552_PGA_GAIN, 0, 0x1f, 1, dac_tlv), - SOC_DAPM_SINGLE("Playback AMP", SND_SOC_NOPM, 0, 1, 0), }; static const struct reg_default tas2552_init_regs[] = { |