Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/sound/isa/wss/
Dwss_lib.c151 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument
153 outb(val, chip->port + offset); in wss_outb()
156 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument
158 return inb(chip->port + offset); in wss_inb()
161 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument
166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
171 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument
177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
180 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout()
181 wss_outb(chip, CS4231P(REG), value); in snd_wss_dout()
[all …]
/sound/pci/lola/
Dlola.c73 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
80 chip->last_cmd_nid = nid; in corb_send_verb()
81 chip->last_verb = verb; in corb_send_verb()
82 chip->last_data = data; in corb_send_verb()
83 chip->last_extdata = extdata; in corb_send_verb()
86 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
87 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
88 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
90 chip->corb.wp = wp; in corb_send_verb()
91 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb()
[all …]
Dlola_mixer.c18 static int lola_init_pin(struct lola *chip, struct lola_pin *pin, in lola_init_pin() argument
25 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in lola_init_pin()
27 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); in lola_init_pin()
38 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); in lola_init_pin()
48 err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); in lola_init_pin()
50 err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); in lola_init_pin()
52 dev_err(chip->card->dev, "Can't read AMP-caps for 0x%x\n", nid); in lola_init_pin()
66 err = lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, in lola_init_pin()
69 dev_err(chip->card->dev, "Can't get MAX_LEVEL 0x%x\n", nid); in lola_init_pin()
81 int lola_init_pins(struct lola *chip, int dir, int *nidp) in lola_init_pins() argument
[all …]
/sound/pci/oxygen/
Doxygen_lib.c29 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument
31 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready()
34 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument
36 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart()
38 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
42 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
45 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart()
46 chip->uart_input_count = 0; in oxygen_read_uart()
47 chip->uart_input[chip->uart_input_count++] = data; in oxygen_read_uart()
48 } while (oxygen_uart_input_ready(chip)); in oxygen_read_uart()
[all …]
Dxonar_pcm179x.c232 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi() argument
239 oxygen_write_spi(chip, OXYGEN_SPI_TRIGGER | in pcm1796_write_spi()
247 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c() argument
250 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c()
253 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write() argument
256 struct xonar_pcm179x *data = chip->model_data; in pcm1796_write()
258 if ((chip->model.function_flags & OXYGEN_FUNCTION_2WIRE_SPI_MASK) == in pcm1796_write()
260 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write()
262 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write()
268 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached() argument
[all …]
/sound/pci/echoaudio/
Dechoaudio_dsp.c35 static int restore_dsp_rettings(struct echoaudio *chip);
42 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument
50 if (chip->comm_page->handshake) { in wait_handshake()
56 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake()
66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument
74 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector()
76 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector()
83 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector()
91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument
96 status = get_dsp_register(chip, CHI32_STATUS_REG); in write_dsp()
[all …]
Dmidi.c37 static int enable_midi_input(struct echoaudio *chip, char enable) in enable_midi_input() argument
39 dev_dbg(chip->card->dev, "enable_midi_input(%d)\n", enable); in enable_midi_input()
41 if (wait_handshake(chip)) in enable_midi_input()
45 chip->mtc_state = MIDI_IN_STATE_NORMAL; in enable_midi_input()
46 chip->comm_page->flags |= in enable_midi_input()
49 chip->comm_page->flags &= in enable_midi_input()
52 clear_handshake(chip); in enable_midi_input()
53 return send_vector(chip, DSP_VC_UPDATE_FLAGS); in enable_midi_input()
60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
65 if (wait_handshake(chip)) in write_midi()
[all …]
Dechoaudio_3g.c36 static int check_asic_status(struct echoaudio *chip) in check_asic_status() argument
40 if (wait_handshake(chip)) in check_asic_status()
43 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status()
44 chip->asic_loaded = false; in check_asic_status()
45 clear_handshake(chip); in check_asic_status()
46 send_vector(chip, DSP_VC_TEST_ASIC); in check_asic_status()
48 if (wait_handshake(chip)) { in check_asic_status()
49 chip->dsp_code = NULL; in check_asic_status()
53 box_status = le32_to_cpu(chip->comm_page->ext_box_status); in check_asic_status()
54 dev_dbg(chip->card->dev, "box_status=%x\n", box_status); in check_asic_status()
[all …]
/sound/ppc/
Dpmac.c50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free()
84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument
89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index()
92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index()
95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index()
113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
117 return &chip->playback; in snd_pmac_get_stream()
[all …]
/sound/isa/sb/
Dsb16_main.c41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
43 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare()
44 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare()
74 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
82 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare()
89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
91 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_capture_prepare()
92 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_prepare()
112 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare()
120 chip->open = SNDRV_SB_CSP_MODE_DSP_READ; in snd_sb16_csp_capture_prepare()
[all …]
Dsb8_midi.c22 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt() argument
28 if (!chip) in snd_sb8dsp_midi_interrupt()
31 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt()
33 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt()
37 spin_lock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt()
39 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt()
40 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt()
41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt()
42 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); in snd_sb8dsp_midi_interrupt()
46 spin_unlock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt()
[all …]
Dsb8_main.c93 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_playback_prepare() local
101 switch (chip->hardware) { in snd_sb8_playback_prepare()
104 if (chip->mode & SB_MODE_CAPTURE_16) in snd_sb8_playback_prepare()
107 chip->mode |= SB_MODE_PLAYBACK_16; in snd_sb8_playback_prepare()
109 chip->playback_format = SB_DSP_LO_OUTPUT_AUTO; in snd_sb8_playback_prepare()
116 chip->playback_format = SB_DSP_HI_OUTPUT_AUTO; in snd_sb8_playback_prepare()
122 chip->playback_format = SB_DSP_HI_OUTPUT_AUTO; in snd_sb8_playback_prepare()
127 chip->playback_format = SB_DSP_LO_OUTPUT_AUTO; in snd_sb8_playback_prepare()
130 chip->playback_format = SB_DSP_OUTPUT; in snd_sb8_playback_prepare()
135 if (chip->mode & SB_MODE_PLAYBACK_16) { in snd_sb8_playback_prepare()
[all …]
/sound/sh/
Dsh_dac_audio.c53 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument
55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
59 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument
61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
64 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument
66 dac_audio_stop_timer(chip); in dac_audio_reset()
67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset()
68 chip->processed = 0; in dac_audio_reset()
69 chip->empty = 1; in dac_audio_reset()
72 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate() argument
[all …]
/sound/isa/es1688/
Des1688_lib.c24 static int snd_es1688_dsp_command(struct snd_es1688 *chip, unsigned char val) in snd_es1688_dsp_command() argument
29 if ((inb(ES1688P(chip, STATUS)) & 0x80) == 0) { in snd_es1688_dsp_command()
30 outb(val, ES1688P(chip, COMMAND)); in snd_es1688_dsp_command()
39 static int snd_es1688_dsp_get_byte(struct snd_es1688 *chip) in snd_es1688_dsp_get_byte() argument
44 if (inb(ES1688P(chip, DATA_AVAIL)) & 0x80) in snd_es1688_dsp_get_byte()
45 return inb(ES1688P(chip, READ)); in snd_es1688_dsp_get_byte()
46 …rintd("es1688 get byte failed: 0x%lx = 0x%x!!!\n", ES1688P(chip, DATA_AVAIL), inb(ES1688P(chip, DA… in snd_es1688_dsp_get_byte()
50 static int snd_es1688_write(struct snd_es1688 *chip, in snd_es1688_write() argument
53 if (!snd_es1688_dsp_command(chip, reg)) in snd_es1688_write()
55 return snd_es1688_dsp_command(chip, data); in snd_es1688_write()
[all …]
/sound/pci/ymfpci/
Dymfpci_main.c32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
34 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb() argument
36 return readb(chip->reg_area_virt + offset); in snd_ymfpci_readb()
39 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
41 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
44 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
46 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
49 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
51 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
54 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
[all …]
/sound/drivers/vx/
Dvx_core.c39 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time) in snd_vx_check_reg_bit() argument
51 if ((snd_vx_inb(chip, reg) & mask) == bit) in snd_vx_check_reg_bit()
55 …eck_reg_bit: timeout, reg=%s, mask=0x%x, val=0x%x\n", reg_names[reg], mask, snd_vx_inb(chip, reg)); in snd_vx_check_reg_bit()
69 static int vx_send_irq_dsp(struct vx_core *chip, int num) in vx_send_irq_dsp() argument
74 if (snd_vx_check_reg_bit(chip, VX_CVR, CVR_HC, 0, 200) < 0) in vx_send_irq_dsp()
78 if (vx_has_new_dsp(chip)) in vx_send_irq_dsp()
80 vx_outb(chip, CVR, (nirq >> 1) | CVR_HC); in vx_send_irq_dsp()
90 static int vx_reset_chk(struct vx_core *chip) in vx_reset_chk() argument
93 if (vx_send_irq_dsp(chip, IRQ_RESET_CHK) < 0) in vx_reset_chk()
96 if (vx_check_isr(chip, ISR_CHK, 0, 200) < 0) in vx_reset_chk()
[all …]
Dvx_uer.c20 static int vx_modify_board_clock(struct vx_core *chip, int sync) in vx_modify_board_clock() argument
28 return vx_send_msg(chip, &rmh); in vx_modify_board_clock()
34 static int vx_modify_board_inputs(struct vx_core *chip) in vx_modify_board_inputs() argument
40 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs()
48 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit() argument
52 mutex_lock(&chip->lock); in vx_read_one_cbit()
53 if (chip->type >= VX_TYPE_VXPOCKET) { in vx_read_one_cbit()
54 vx_outb(chip, CSUER, 1); /* read */ in vx_read_one_cbit()
55 vx_outb(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit()
56 val = (vx_inb(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit()
[all …]
/sound/sparc/
Dcs4231.c128 #define CS4231U(chip, x) ((chip)->port + ((c_d_c_CS4231##x) << 2)) argument
277 static void snd_cs4231_ready(struct snd_cs4231 *chip) in snd_cs4231_ready() argument
282 int val = __cs4231_readb(chip, CS4231U(chip, REGSEL)); in snd_cs4231_ready()
289 static void snd_cs4231_dout(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_dout() argument
292 snd_cs4231_ready(chip); in snd_cs4231_dout()
294 if (__cs4231_readb(chip, CS4231U(chip, REGSEL)) & CS4231_INIT) in snd_cs4231_dout()
299 __cs4231_writeb(chip, chip->mce_bit | reg, CS4231U(chip, REGSEL)); in snd_cs4231_dout()
301 __cs4231_writeb(chip, value, CS4231U(chip, REG)); in snd_cs4231_dout()
305 static inline void snd_cs4231_outm(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_outm() argument
308 unsigned char tmp = (chip->image[reg] & mask) | value; in snd_cs4231_outm()
[all …]
/sound/pci/nm256/
Dnm256.c104 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument
121 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument
173 struct nm256 *chip; member
262 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb() argument
264 return readb(chip->cport + offset); in snd_nm256_readb()
268 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw() argument
270 return readw(chip->cport + offset); in snd_nm256_readw()
274 snd_nm256_readl(struct nm256 *chip, int offset) in snd_nm256_readl() argument
276 return readl(chip->cport + offset); in snd_nm256_readl()
280 snd_nm256_writeb(struct nm256 *chip, int offset, u8 val) in snd_nm256_writeb() argument
[all …]
/sound/pci/lx6464es/
Dlx_core.c55 static void __iomem *lx_dsp_register(struct lx6464es *chip, int port) in lx_dsp_register() argument
57 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register()
61 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port) in lx_dsp_reg_read() argument
63 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_read()
67 static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data, in lx_dsp_reg_readbuf() argument
70 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_readbuf()
79 void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data) in lx_dsp_reg_write() argument
81 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_write()
85 static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port, in lx_dsp_reg_writebuf() argument
88 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_writebuf()
[all …]
Dlx6464es.c92 static int lx_set_granularity(struct lx6464es *chip, u32 gran);
95 static int lx_hardware_open(struct lx6464es *chip, in lx_hardware_open() argument
105 dev_dbg(chip->card->dev, "allocating pipe for %d channels\n", channels); in lx_hardware_open()
106 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open()
108 dev_err(chip->card->dev, LXP "allocating pipe failed\n"); in lx_hardware_open()
112 err = lx_set_granularity(chip, period_size); in lx_hardware_open()
114 dev_err(chip->card->dev, "setting granularity to %ld failed\n", in lx_hardware_open()
122 static int lx_hardware_start(struct lx6464es *chip, in lx_hardware_start() argument
129 dev_dbg(chip->card->dev, "setting stream format\n"); in lx_hardware_start()
130 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c58 static void amp_voyetra(struct snd_cs46xx *chip, int change);
74 static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, in snd_cs46xx_codec_read() argument
86 chip->active_ctrl(chip, 1); in snd_cs46xx_codec_read()
100 snd_cs46xx_peekBA0(chip, BA0_ACSDA + offset); in snd_cs46xx_codec_read()
102 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL); in snd_cs46xx_codec_read()
104 dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); in snd_cs46xx_codec_read()
105 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, (tmp & (~ACCTL_ESYN)) | ACCTL_VFRM ); in snd_cs46xx_codec_read()
107 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL + offset); in snd_cs46xx_codec_read()
108 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, tmp | ACCTL_ESYN | ACCTL_VFRM ); in snd_cs46xx_codec_read()
125 snd_cs46xx_pokeBA0(chip, BA0_ACCAD, reg); in snd_cs46xx_codec_read()
[all …]
/sound/pcmcia/vx/
Dvxp_ops.c40 struct snd_vxpocket *chip = to_vxpocket(_chip); in vxp_reg_addr() local
41 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr()
48 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument
50 return inb(vxp_reg_addr(chip, offset)); in vxp_inb()
58 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument
60 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb()
67 #define vx_inb(chip,reg) vxp_inb((struct vx_core *)(chip), VX_##reg) argument
69 #define vx_outb(chip,reg,val) vxp_outb((struct vx_core *)(chip), VX_##reg,val) argument
77 static int vx_check_magic(struct vx_core *chip) in vx_check_magic() argument
82 c = vx_inb(chip, CDSP); in vx_check_magic()
[all …]
/sound/pci/
Dad1889.c97 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw() argument
99 return readw(chip->iobase + reg); in ad1889_readw()
103 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew() argument
105 writew(val, chip->iobase + reg); in ad1889_writew()
109 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl() argument
111 return readl(chip->iobase + reg); in ad1889_readl()
115 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel() argument
117 writel(val, chip->iobase + reg); in ad1889_writel()
121 ad1889_unmute(struct snd_ad1889 *chip) in ad1889_unmute() argument
124 st = ad1889_readw(chip, AD_DS_WADA) & in ad1889_unmute()
[all …]
/sound/pcmcia/pdaudiocf/
Dpdaudiocf_core.c20 struct snd_pdacf *chip = private_data; in pdacf_ak4117_read() local
25 spin_lock_irqsave(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
27 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read()
30 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
35 pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8); in pdacf_ak4117_read()
37 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read()
40 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
45 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_read()
46 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
52 struct snd_pdacf *chip = private_data; in pdacf_ak4117_write() local
[all …]

12345678910>>...12