mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
ASoC: rt5651: fix boolean assignments
Reported by Coccinelle: sound/soc/codecs/rt5651.c:750:2-17: WARNING: Assignment of bool to 0/1 sound/soc/codecs/rt5651.c:754:2-17: WARNING: Assignment of bool to 0/1 sound/soc/codecs/rt5651.c:2192:1-16: WARNING: Assignment of bool to 0/1 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
091cd877d8
commit
577dc32f9a
@ -747,11 +747,11 @@ static int rt5651_hp_event(struct snd_soc_dapm_widget *w,
|
||||
RT5651_HP_CP_PD | RT5651_HP_SG_EN);
|
||||
regmap_update_bits(rt5651->regmap, RT5651_PR_BASE +
|
||||
RT5651_CHPUMP_INT_REG1, 0x0700, 0x0400);
|
||||
rt5651->hp_mute = 0;
|
||||
rt5651->hp_mute = false;
|
||||
break;
|
||||
|
||||
case SND_SOC_DAPM_PRE_PMD:
|
||||
rt5651->hp_mute = 1;
|
||||
rt5651->hp_mute = true;
|
||||
usleep_range(70000, 75000);
|
||||
break;
|
||||
|
||||
@ -2189,7 +2189,7 @@ static int rt5651_i2c_probe(struct i2c_client *i2c,
|
||||
dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret);
|
||||
|
||||
rt5651->irq = i2c->irq;
|
||||
rt5651->hp_mute = 1;
|
||||
rt5651->hp_mute = true;
|
||||
|
||||
INIT_DELAYED_WORK(&rt5651->bp_work, rt5651_button_press_work);
|
||||
INIT_WORK(&rt5651->jack_detect_work, rt5651_jack_detect_work);
|
||||
|
Loading…
Reference in New Issue
Block a user