Skip to content

Commit ace79a3

Browse files
Rickard Strandqvisttiwai
authored andcommitted
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 12c243b commit ace79a3

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

sound/pci/ice1712/wm8766.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,6 @@ void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac)
183183
snd_wm8766_write(wm, WM8766_REG_IFCTRL, val | dac);
184184
}
185185

186-
void snd_wm8766_set_master_mode(struct snd_wm8766 *wm, u16 mode)
187-
{
188-
u16 val = wm->regs[WM8766_REG_DACCTRL3] & ~WM8766_DAC3_MSTR_MASK;
189-
190-
mode &= WM8766_DAC3_MSTR_MASK;
191-
snd_wm8766_write(wm, WM8766_REG_DACCTRL3, val | mode);
192-
}
193-
194-
void snd_wm8766_set_power(struct snd_wm8766 *wm, u16 power)
195-
{
196-
u16 val = wm->regs[WM8766_REG_DACCTRL3] & ~WM8766_DAC3_POWER_MASK;
197-
198-
power &= WM8766_DAC3_POWER_MASK;
199-
snd_wm8766_write(wm, WM8766_REG_DACCTRL3, val | power);
200-
}
201-
202186
void snd_wm8766_volume_restore(struct snd_wm8766 *wm)
203187
{
204188
u16 val = wm->regs[WM8766_REG_DACR1];

sound/pci/ice1712/wm8766.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ struct snd_wm8766 {
155155
void snd_wm8766_init(struct snd_wm8766 *wm);
156156
void snd_wm8766_resume(struct snd_wm8766 *wm);
157157
void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac);
158-
void snd_wm8766_set_master_mode(struct snd_wm8766 *wm, u16 mode);
159-
void snd_wm8766_set_power(struct snd_wm8766 *wm, u16 power);
160158
void snd_wm8766_volume_restore(struct snd_wm8766 *wm);
161159
int snd_wm8766_build_controls(struct snd_wm8766 *wm);
162160

0 commit comments

Comments
 (0)