diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-11 10:31:40 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-11 11:03:52 -0500 |
commit | ace79a3592bee97406c88c3d856e16b7f5720a39 (patch) | |
tree | bf13c0e169b090879dbb3a38bba3911b0cbaf3c2 | |
parent | 12c243b833c2c441f46dc592ab410fdccb5e056b (diff) |
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>
-rw-r--r-- | sound/pci/ice1712/wm8766.c | 16 | ||||
-rw-r--r-- | sound/pci/ice1712/wm8766.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sound/pci/ice1712/wm8766.c b/sound/pci/ice1712/wm8766.c index 21b373b2e260..f7ac8d5e862c 100644 --- a/sound/pci/ice1712/wm8766.c +++ b/sound/pci/ice1712/wm8766.c | |||
@@ -183,22 +183,6 @@ void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac) | |||
183 | snd_wm8766_write(wm, WM8766_REG_IFCTRL, val | dac); | 183 | snd_wm8766_write(wm, WM8766_REG_IFCTRL, val | dac); |
184 | } | 184 | } |
185 | 185 | ||
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 | |||
202 | void snd_wm8766_volume_restore(struct snd_wm8766 *wm) | 186 | void snd_wm8766_volume_restore(struct snd_wm8766 *wm) |
203 | { | 187 | { |
204 | u16 val = wm->regs[WM8766_REG_DACR1]; | 188 | u16 val = wm->regs[WM8766_REG_DACR1]; |
diff --git a/sound/pci/ice1712/wm8766.h b/sound/pci/ice1712/wm8766.h index c119f84bd2c2..18c8d9d47b38 100644 --- a/sound/pci/ice1712/wm8766.h +++ b/sound/pci/ice1712/wm8766.h | |||
@@ -155,8 +155,6 @@ struct snd_wm8766 { | |||
155 | void snd_wm8766_init(struct snd_wm8766 *wm); | 155 | void snd_wm8766_init(struct snd_wm8766 *wm); |
156 | void snd_wm8766_resume(struct snd_wm8766 *wm); | 156 | void snd_wm8766_resume(struct snd_wm8766 *wm); |
157 | void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac); | 157 | 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); | ||
160 | void snd_wm8766_volume_restore(struct snd_wm8766 *wm); | 158 | void snd_wm8766_volume_restore(struct snd_wm8766 *wm); |
161 | int snd_wm8766_build_controls(struct snd_wm8766 *wm); | 159 | int snd_wm8766_build_controls(struct snd_wm8766 *wm); |
162 | 160 | ||