aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-dapm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 89eae93445cf..5be4f9a2edb8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -321,11 +321,10 @@ static void dapm_set_path_status(struct snd_soc_dapm_widget *w,
321 321
322 val = soc_widget_read(w, reg); 322 val = soc_widget_read(w, reg);
323 val = (val >> shift) & mask; 323 val = (val >> shift) & mask;
324 if (invert)
325 val = max - val;
324 326
325 if ((invert && !val) || (!invert && val)) 327 p->connect = !!val;
326 p->connect = 1;
327 else
328 p->connect = 0;
329 } 328 }
330 break; 329 break;
331 case snd_soc_dapm_mux: { 330 case snd_soc_dapm_mux: {