#ifndef XONAR_H_INCLUDED #define XONAR_H_INCLUDED #include "oxygen.h" struct xonar_generic { unsigned int anti_pop_delay; u16 output_enable_bit; u8 ext_power_reg; u8 ext_power_int_reg; u8 ext_power_bit; u8 has_power; }; struct xonar_hdmi { u8 params[5]; }; /* generic helper functions */ void xonar_enable_output(struct oxygen *chip); void xonar_disable_output(struct oxygen *chip); void xonar_init_ext_power(struct oxygen *chip); void xonar_init_cs53x1(struct oxygen *chip); void xonar_set_cs53x1_params(struct oxygen *chip, struct snd_pcm_hw_params *params); #define XONAR_GPIO_BIT_INVERT (1 << 16) int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value); int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value); /* model-specific card drivers */ int get_xonar_pcm179x_model(struct oxygen *chip, const struct pci_device_id *id); int get_xonar_cs43xx_model(struct oxygen *chip, const struct pci_device_id *id); int get_xonar_wm87x6_model(struct oxygen *chip, const struct pci_device_id *id); /* HDMI helper functions */ void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *data); void xonar_hdmi_cleanup(struct oxygen *chip); void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi); void xonar_hdmi_pcm_hardware_filter(unsigned int channel, struct snd_pcm_hardware *hardware); void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, struct snd_pcm_hw_params *params); void xonar_hdmi_uart_input(struct oxygen *chip); #endif /?h=nds-private-remove&id=e2160156bf2a7d5018e99a9993fbcdda0abac09b'>refslogtreecommitdiff
path: root/sound/usb/helper.h
ue='20'>20
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2017-01-29 12:40:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:08:52 +0200
commit33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /tools/build/Makefile
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/build/Makefile')