Skip to content

Commit 02db17f

Browse files
committed
Merge remote-tracking branches 'asoc/fix/wm8985', 'asoc/fix/wm8994', 'asoc/fix/wm8996', 'asoc/fix/wm9081' and 'asoc/fix/wm9713' into asoc-linus
6 parents b23229e + 251d604 + 8019c0b + 8293004 + 39a79fe + da9b930 commit 02db17f

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

sound/soc/codecs/wm8985.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ static int eqmode_get(struct snd_kcontrol *kcontrol,
531531

532532
reg = snd_soc_read(codec, WM8985_EQ1_LOW_SHELF);
533533
if (reg & WM8985_EQ3DMODE)
534-
ucontrol->value.integer.value[0] = 1;
534+
ucontrol->value.enumerated.item[0] = 1;
535535
else
536-
ucontrol->value.integer.value[0] = 0;
536+
ucontrol->value.enumerated.item[0] = 0;
537537

538538
return 0;
539539
}
@@ -545,18 +545,18 @@ static int eqmode_put(struct snd_kcontrol *kcontrol,
545545
unsigned int regpwr2, regpwr3;
546546
unsigned int reg_eq;
547547

548-
if (ucontrol->value.integer.value[0] != 0
549-
&& ucontrol->value.integer.value[0] != 1)
548+
if (ucontrol->value.enumerated.item[0] != 0
549+
&& ucontrol->value.enumerated.item[0] != 1)
550550
return -EINVAL;
551551

552552
reg_eq = snd_soc_read(codec, WM8985_EQ1_LOW_SHELF);
553553
switch ((reg_eq & WM8985_EQ3DMODE) >> WM8985_EQ3DMODE_SHIFT) {
554554
case 0:
555-
if (!ucontrol->value.integer.value[0])
555+
if (!ucontrol->value.enumerated.item[0])
556556
return 0;
557557
break;
558558
case 1:
559-
if (ucontrol->value.integer.value[0])
559+
if (ucontrol->value.enumerated.item[0])
560560
return 0;
561561
break;
562562
}
@@ -573,7 +573,7 @@ static int eqmode_put(struct snd_kcontrol *kcontrol,
573573
/* set the desired eqmode */
574574
snd_soc_update_bits(codec, WM8985_EQ1_LOW_SHELF,
575575
WM8985_EQ3DMODE_MASK,
576-
ucontrol->value.integer.value[0]
576+
ucontrol->value.enumerated.item[0]
577577
<< WM8985_EQ3DMODE_SHIFT);
578578
/* restore DAC/ADC configuration */
579579
snd_soc_write(codec, WM8985_POWER_MANAGEMENT_2, regpwr2);

sound/soc/codecs/wm8994.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static int wm8994_put_drc_enum(struct snd_kcontrol *kcontrol,
362362
struct wm8994 *control = wm8994->wm8994;
363363
struct wm8994_pdata *pdata = &control->pdata;
364364
int drc = wm8994_get_drc(kcontrol->id.name);
365-
int value = ucontrol->value.integer.value[0];
365+
int value = ucontrol->value.enumerated.item[0];
366366

367367
if (drc < 0)
368368
return drc;
@@ -469,7 +469,7 @@ static int wm8994_put_retune_mobile_enum(struct snd_kcontrol *kcontrol,
469469
struct wm8994 *control = wm8994->wm8994;
470470
struct wm8994_pdata *pdata = &control->pdata;
471471
int block = wm8994_get_retune_mobile_block(kcontrol->id.name);
472-
int value = ucontrol->value.integer.value[0];
472+
int value = ucontrol->value.enumerated.item[0];
473473

474474
if (block < 0)
475475
return block;

sound/soc/codecs/wm8996.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static int wm8996_put_retune_mobile_enum(struct snd_kcontrol *kcontrol,
416416
struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec);
417417
struct wm8996_pdata *pdata = &wm8996->pdata;
418418
int block = wm8996_get_retune_mobile_block(kcontrol->id.name);
419-
int value = ucontrol->value.integer.value[0];
419+
int value = ucontrol->value.enumerated.item[0];
420420

421421
if (block < 0)
422422
return block;

sound/soc/codecs/wm9081.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ static int speaker_mode_get(struct snd_kcontrol *kcontrol,
344344

345345
reg = snd_soc_read(codec, WM9081_ANALOGUE_SPEAKER_2);
346346
if (reg & WM9081_SPK_MODE)
347-
ucontrol->value.integer.value[0] = 1;
347+
ucontrol->value.enumerated.item[0] = 1;
348348
else
349-
ucontrol->value.integer.value[0] = 0;
349+
ucontrol->value.enumerated.item[0] = 0;
350350

351351
return 0;
352352
}
@@ -365,15 +365,15 @@ static int speaker_mode_put(struct snd_kcontrol *kcontrol,
365365
unsigned int reg2 = snd_soc_read(codec, WM9081_ANALOGUE_SPEAKER_2);
366366

367367
/* Are we changing anything? */
368-
if (ucontrol->value.integer.value[0] ==
368+
if (ucontrol->value.enumerated.item[0] ==
369369
((reg2 & WM9081_SPK_MODE) != 0))
370370
return 0;
371371

372372
/* Don't try to change modes while enabled */
373373
if (reg_pwr & WM9081_SPK_ENA)
374374
return -EINVAL;
375375

376-
if (ucontrol->value.integer.value[0]) {
376+
if (ucontrol->value.enumerated.item[0]) {
377377
/* Class AB */
378378
reg2 &= ~(WM9081_SPK_INV_MUTE | WM9081_OUT_SPK_CTRL);
379379
reg2 |= WM9081_SPK_MODE;

sound/soc/codecs/wm9713.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ static int wm9713_soc_probe(struct snd_soc_codec *codec)
12121212
if (IS_ERR(wm9713->ac97))
12131213
return PTR_ERR(wm9713->ac97);
12141214

1215-
regmap = devm_regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config);
1215+
regmap = regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config);
12161216
if (IS_ERR(regmap)) {
12171217
snd_soc_free_ac97_codec(wm9713->ac97);
12181218
return PTR_ERR(regmap);

0 commit comments

Comments
 (0)