ASoC: Rename rt562[1|2]_vol_snd_controls to alc562[1|2]_vol_snd_controls
The module desciption says this is ASoC alc5621/2/3 driver. Make the naming consistent with the reset of the code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
0a1fe66698
commit
6048ef768e
1 changed files with 6 additions and 6 deletions
|
@ -99,7 +99,7 @@ static const unsigned int boost_tlv[] = {
|
||||||
};
|
};
|
||||||
static const DECLARE_TLV_DB_SCALE(dig_tlv, 0, 600, 0);
|
static const DECLARE_TLV_DB_SCALE(dig_tlv, 0, 600, 0);
|
||||||
|
|
||||||
static const struct snd_kcontrol_new rt5621_vol_snd_controls[] = {
|
static const struct snd_kcontrol_new alc5621_vol_snd_controls[] = {
|
||||||
SOC_DOUBLE_TLV("Speaker Playback Volume",
|
SOC_DOUBLE_TLV("Speaker Playback Volume",
|
||||||
ALC5623_SPK_OUT_VOL, 8, 0, 31, 1, hp_tlv),
|
ALC5623_SPK_OUT_VOL, 8, 0, 31, 1, hp_tlv),
|
||||||
SOC_DOUBLE("Speaker Playback Switch",
|
SOC_DOUBLE("Speaker Playback Switch",
|
||||||
|
@ -110,7 +110,7 @@ static const struct snd_kcontrol_new rt5621_vol_snd_controls[] = {
|
||||||
ALC5623_HP_OUT_VOL, 15, 7, 1, 1),
|
ALC5623_HP_OUT_VOL, 15, 7, 1, 1),
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct snd_kcontrol_new rt5622_vol_snd_controls[] = {
|
static const struct snd_kcontrol_new alc5622_vol_snd_controls[] = {
|
||||||
SOC_DOUBLE_TLV("Speaker Playback Volume",
|
SOC_DOUBLE_TLV("Speaker Playback Volume",
|
||||||
ALC5623_SPK_OUT_VOL, 8, 0, 31, 1, hp_tlv),
|
ALC5623_SPK_OUT_VOL, 8, 0, 31, 1, hp_tlv),
|
||||||
SOC_DOUBLE("Speaker Playback Switch",
|
SOC_DOUBLE("Speaker Playback Switch",
|
||||||
|
@ -925,12 +925,12 @@ static int alc5623_probe(struct snd_soc_codec *codec)
|
||||||
|
|
||||||
switch (alc5623->id) {
|
switch (alc5623->id) {
|
||||||
case 0x21:
|
case 0x21:
|
||||||
snd_soc_add_controls(codec, rt5621_vol_snd_controls,
|
snd_soc_add_controls(codec, alc5621_vol_snd_controls,
|
||||||
ARRAY_SIZE(rt5621_vol_snd_controls));
|
ARRAY_SIZE(alc5621_vol_snd_controls));
|
||||||
break;
|
break;
|
||||||
case 0x22:
|
case 0x22:
|
||||||
snd_soc_add_controls(codec, rt5622_vol_snd_controls,
|
snd_soc_add_controls(codec, alc5622_vol_snd_controls,
|
||||||
ARRAY_SIZE(rt5622_vol_snd_controls));
|
ARRAY_SIZE(alc5622_vol_snd_controls));
|
||||||
break;
|
break;
|
||||||
case 0x23:
|
case 0x23:
|
||||||
snd_soc_add_controls(codec, alc5623_vol_snd_controls,
|
snd_soc_add_controls(codec, alc5623_vol_snd_controls,
|
||||||
|
|
Reference in a new issue