File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,7 @@ static int wm5110_put_dre(struct snd_kcontrol *kcontrol,
413
413
unsigned int rnew = (!!ucontrol -> value .integer .value [1 ]) << mc -> rshift ;
414
414
unsigned int lold , rold ;
415
415
unsigned int lena , rena ;
416
+ bool change = false;
416
417
int ret ;
417
418
418
419
snd_soc_dapm_mutex_lock (dapm );
@@ -440,8 +441,8 @@ static int wm5110_put_dre(struct snd_kcontrol *kcontrol,
440
441
goto err ;
441
442
}
442
443
443
- ret = regmap_update_bits (arizona -> regmap , ARIZONA_DRE_ENABLE ,
444
- mask , lnew | rnew );
444
+ ret = regmap_update_bits_check (arizona -> regmap , ARIZONA_DRE_ENABLE ,
445
+ mask , lnew | rnew , & change );
445
446
if (ret ) {
446
447
dev_err (arizona -> dev , "Failed to set DRE: %d\n" , ret );
447
448
goto err ;
@@ -454,6 +455,9 @@ static int wm5110_put_dre(struct snd_kcontrol *kcontrol,
454
455
if (!rnew && rold )
455
456
wm5110_clear_pga_volume (arizona , mc -> rshift );
456
457
458
+ if (change )
459
+ ret = 1 ;
460
+
457
461
err :
458
462
snd_soc_dapm_mutex_unlock (dapm );
459
463
You can’t perform that action at this time.
0 commit comments