diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-12-20 11:46:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-26 06:22:09 -0500 |
commit | ebd8146bba4d1716e2e47cbd5583f6836eeafb48 (patch) | |
tree | 162be3a799b5186d4e8f12ce7228ba5e6eb88645 /sound/pci/ice1712 | |
parent | d6795827bd79b28fef1abdaf7e525fcca506b831 (diff) |
ALSA: ice1712: wm8776.c: Remove some unused functions
Removes some functions that are not used anywhere:
snd_wm8776_set_master_mode() snd_wm8776_set_adc_if() snd_wm8776_set_dac_if()
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>
Diffstat (limited to 'sound/pci/ice1712')
-rw-r--r-- | sound/pci/ice1712/wm8776.c | 15 | ||||
-rw-r--r-- | sound/pci/ice1712/wm8776.h | 3 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sound/pci/ice1712/wm8776.c b/sound/pci/ice1712/wm8776.c index e66c0da62014..ebd2fe4b4a57 100644 --- a/sound/pci/ice1712/wm8776.c +++ b/sound/pci/ice1712/wm8776.c | |||
@@ -452,21 +452,6 @@ void snd_wm8776_resume(struct snd_wm8776 *wm) | |||
452 | snd_wm8776_write(wm, i, wm->regs[i]); | 452 | snd_wm8776_write(wm, i, wm->regs[i]); |
453 | } | 453 | } |
454 | 454 | ||
455 | void snd_wm8776_set_dac_if(struct snd_wm8776 *wm, u16 dac) | ||
456 | { | ||
457 | snd_wm8776_write(wm, WM8776_REG_DACIFCTRL, dac); | ||
458 | } | ||
459 | |||
460 | void snd_wm8776_set_adc_if(struct snd_wm8776 *wm, u16 adc) | ||
461 | { | ||
462 | snd_wm8776_write(wm, WM8776_REG_ADCIFCTRL, adc); | ||
463 | } | ||
464 | |||
465 | void snd_wm8776_set_master_mode(struct snd_wm8776 *wm, u16 mode) | ||
466 | { | ||
467 | snd_wm8776_write(wm, WM8776_REG_MSTRCTRL, mode); | ||
468 | } | ||
469 | |||
470 | void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power) | 455 | void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power) |
471 | { | 456 | { |
472 | snd_wm8776_write(wm, WM8776_REG_PWRDOWN, power); | 457 | snd_wm8776_write(wm, WM8776_REG_PWRDOWN, power); |
diff --git a/sound/pci/ice1712/wm8776.h b/sound/pci/ice1712/wm8776.h index 93a2d6971154..42acef05540c 100644 --- a/sound/pci/ice1712/wm8776.h +++ b/sound/pci/ice1712/wm8776.h | |||
@@ -216,9 +216,6 @@ struct snd_wm8776 { | |||
216 | 216 | ||
217 | void snd_wm8776_init(struct snd_wm8776 *wm); | 217 | void snd_wm8776_init(struct snd_wm8776 *wm); |
218 | void snd_wm8776_resume(struct snd_wm8776 *wm); | 218 | void snd_wm8776_resume(struct snd_wm8776 *wm); |
219 | void snd_wm8776_set_dac_if(struct snd_wm8776 *wm, u16 dac); | ||
220 | void snd_wm8776_set_adc_if(struct snd_wm8776 *wm, u16 adc); | ||
221 | void snd_wm8776_set_master_mode(struct snd_wm8776 *wm, u16 mode); | ||
222 | void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power); | 219 | void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power); |
223 | void snd_wm8776_volume_restore(struct snd_wm8776 *wm); | 220 | void snd_wm8776_volume_restore(struct snd_wm8776 *wm); |
224 | int snd_wm8776_build_controls(struct snd_wm8776 *wm); | 221 | int snd_wm8776_build_controls(struct snd_wm8776 *wm); |