ALSA: ice1712: wm8766: Remove some unused functions
Removes some functions that are not used anywhere: snd_wm8766_set_power() snd_wm8766_set_master_mode() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Родитель
12c243b833
Коммит
ace79a3592
|
@ -183,22 +183,6 @@ void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac)
|
|||
snd_wm8766_write(wm, WM8766_REG_IFCTRL, val | dac);
|
||||
}
|
||||
|
||||
void snd_wm8766_set_master_mode(struct snd_wm8766 *wm, u16 mode)
|
||||
{
|
||||
u16 val = wm->regs[WM8766_REG_DACCTRL3] & ~WM8766_DAC3_MSTR_MASK;
|
||||
|
||||
mode &= WM8766_DAC3_MSTR_MASK;
|
||||
snd_wm8766_write(wm, WM8766_REG_DACCTRL3, val | mode);
|
||||
}
|
||||
|
||||
void snd_wm8766_set_power(struct snd_wm8766 *wm, u16 power)
|
||||
{
|
||||
u16 val = wm->regs[WM8766_REG_DACCTRL3] & ~WM8766_DAC3_POWER_MASK;
|
||||
|
||||
power &= WM8766_DAC3_POWER_MASK;
|
||||
snd_wm8766_write(wm, WM8766_REG_DACCTRL3, val | power);
|
||||
}
|
||||
|
||||
void snd_wm8766_volume_restore(struct snd_wm8766 *wm)
|
||||
{
|
||||
u16 val = wm->regs[WM8766_REG_DACR1];
|
||||
|
|
|
@ -155,8 +155,6 @@ struct snd_wm8766 {
|
|||
void snd_wm8766_init(struct snd_wm8766 *wm);
|
||||
void snd_wm8766_resume(struct snd_wm8766 *wm);
|
||||
void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac);
|
||||
void snd_wm8766_set_master_mode(struct snd_wm8766 *wm, u16 mode);
|
||||
void snd_wm8766_set_power(struct snd_wm8766 *wm, u16 power);
|
||||
void snd_wm8766_volume_restore(struct snd_wm8766 *wm);
|
||||
int snd_wm8766_build_controls(struct snd_wm8766 *wm);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче