Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1494818 > unrolled thread

[PATCH] ASoC: wm_adsp: Remove duplicate set of kcontrol->iface

Started byRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
First post2016-10-03 12:50 +0200
Last post2016-10-03 12:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] ASoC: wm_adsp: Remove duplicate set of kcontrol->iface Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2016-10-03 12:50 +0200

#1494818 — [PATCH] ASoC: wm_adsp: Remove duplicate set of kcontrol->iface

FromRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Date2016-10-03 12:50 +0200
Subject[PATCH] ASoC: wm_adsp: Remove duplicate set of kcontrol->iface
Message-ID<so8YN-3N9-9@gated-at.bofh.it>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm_adsp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index b943dde..7320fca 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -962,17 +962,16 @@ static int wmfw_add_ctl(struct wm_adsp *dsp, struct wm_coeff_ctl *ctl)
 	int ret;
 
 	if (!ctl || !ctl->name)
 		return -EINVAL;
 
 	kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL);
 	if (!kcontrol)
 		return -ENOMEM;
-	kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
 
 	kcontrol->name = ctl->name;
 	kcontrol->info = wm_coeff_info;
 	kcontrol->get = wm_coeff_get;
 	kcontrol->put = wm_coeff_put;
 	kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
 	kcontrol->tlv.c = snd_soc_bytes_tlv_callback;
 	kcontrol->private_value = (unsigned long)&ctl->bytes_ext;
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web