/sound/isa/wss/ |
D | wss_lib.c | 165 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument 167 outb(val, chip->port + offset); in wss_outb() 170 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument 172 return inb(chip->port + offset); in wss_inb() 175 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument 180 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait() 185 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument 191 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout() 194 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout() 195 wss_outb(chip, CS4231P(REG), value); in snd_wss_dout() [all …]
|
/sound/pci/oxygen/ |
D | oxygen_lib.c | 41 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument 43 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready() 46 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument 48 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart() 50 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart() 54 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart() 57 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart() 58 chip->uart_input_count = 0; in oxygen_read_uart() 59 chip->uart_input[chip->uart_input_count++] = data; in oxygen_read_uart() 60 } while (oxygen_uart_input_ready(chip)); in oxygen_read_uart() [all …]
|
D | xonar_pcm179x.c | 243 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi() argument 250 oxygen_write_spi(chip, OXYGEN_SPI_TRIGGER | in pcm1796_write_spi() 258 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c() argument 261 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c() 264 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write() argument 267 struct xonar_pcm179x *data = chip->model_data; in pcm1796_write() 269 if ((chip->model.function_flags & OXYGEN_FUNCTION_2WIRE_SPI_MASK) == in pcm1796_write() 271 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write() 273 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write() 279 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached() argument [all …]
|
/sound/pci/lola/ |
D | lola.c | 87 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument 94 chip->last_cmd_nid = nid; in corb_send_verb() 95 chip->last_verb = verb; in corb_send_verb() 96 chip->last_data = data; in corb_send_verb() 97 chip->last_extdata = extdata; in corb_send_verb() 100 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb() 101 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb() 102 unsigned int wp = chip->corb.wp + 1; in corb_send_verb() 104 chip->corb.wp = wp; in corb_send_verb() 105 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb() [all …]
|
/sound/pci/echoaudio/ |
D | echoaudio_dsp.c | 35 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 …]
|
D | midi.c | 37 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 …]
|
D | echoaudio.c | 44 struct echoaudio *chip, const short fw_index) in get_firmware() argument 50 if (chip->fw_cache[fw_index]) { in get_firmware() 51 dev_dbg(chip->card->dev, in get_firmware() 54 *fw_entry = chip->fw_cache[fw_index]; in get_firmware() 59 dev_dbg(chip->card->dev, in get_firmware() 62 err = request_firmware(fw_entry, name, pci_device(chip)); in get_firmware() 64 dev_err(chip->card->dev, in get_firmware() 68 chip->fw_cache[fw_index] = *fw_entry; in get_firmware() 76 struct echoaudio *chip) in free_firmware() argument 79 dev_dbg(chip->card->dev, "firmware not released (kept in cache)\n"); in free_firmware() [all …]
|
D | echoaudio_3g.c | 36 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/ |
D | pmac.c | 63 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 67 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 79 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument 84 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free() 97 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument 102 if (rate > chip->freq_table[0]) in snd_pmac_rate_index() 105 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index() 108 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index() 144 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument 148 return &chip->playback; in snd_pmac_get_stream() [all …]
|
/sound/isa/sb/ |
D | sb16_main.c | 53 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument 55 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare() 56 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare() 86 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare() 94 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare() 101 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument 103 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_capture_prepare() 104 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_prepare() 124 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare() 132 chip->open = SNDRV_SB_CSP_MODE_DSP_READ; in snd_sb16_csp_capture_prepare() [all …]
|
D | sb8_midi.c | 35 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt() argument 41 if (!chip) in snd_sb8dsp_midi_interrupt() 44 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt() 46 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt() 50 spin_lock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt() 52 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt() 53 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt() 54 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt() 55 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); in snd_sb8dsp_midi_interrupt() 59 spin_unlock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt() [all …]
|
/sound/sh/ |
D | sh_dac_audio.c | 69 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument 71 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer() 75 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument 77 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer() 80 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument 82 dac_audio_stop_timer(chip); in dac_audio_reset() 83 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset() 84 chip->processed = 0; in dac_audio_reset() 85 chip->empty = 1; in dac_audio_reset() 88 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate() argument [all …]
|
/sound/drivers/vx/ |
D | vx_core.c | 52 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 64 if ((snd_vx_inb(chip, reg) & mask) == bit) in snd_vx_check_reg_bit() 68 …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() 82 static int vx_send_irq_dsp(struct vx_core *chip, int num) in vx_send_irq_dsp() argument 87 if (snd_vx_check_reg_bit(chip, VX_CVR, CVR_HC, 0, 200) < 0) in vx_send_irq_dsp() 91 if (vx_has_new_dsp(chip)) in vx_send_irq_dsp() 93 vx_outb(chip, CVR, (nirq >> 1) | CVR_HC); in vx_send_irq_dsp() 103 static int vx_reset_chk(struct vx_core *chip) in vx_reset_chk() argument 106 if (vx_send_irq_dsp(chip, IRQ_RESET_CHK) < 0) in vx_reset_chk() 109 if (vx_check_isr(chip, ISR_CHK, 0, 200) < 0) in vx_reset_chk() [all …]
|
D | vx_uer.c | 33 static int vx_modify_board_clock(struct vx_core *chip, int sync) in vx_modify_board_clock() argument 41 return vx_send_msg(chip, &rmh); in vx_modify_board_clock() 47 static int vx_modify_board_inputs(struct vx_core *chip) in vx_modify_board_inputs() argument 53 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs() 61 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit() argument 65 mutex_lock(&chip->lock); in vx_read_one_cbit() 66 if (chip->type >= VX_TYPE_VXPOCKET) { in vx_read_one_cbit() 67 vx_outb(chip, CSUER, 1); /* read */ in vx_read_one_cbit() 68 vx_outb(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit() 69 val = (vx_inb(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit() [all …]
|
/sound/sparc/ |
D | cs4231.c | 128 #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/cs46xx/ |
D | cs46xx_lib.c | 72 static void amp_voyetra(struct snd_cs46xx *chip, int change); 88 static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, in snd_cs46xx_codec_read() argument 100 chip->active_ctrl(chip, 1); in snd_cs46xx_codec_read() 114 snd_cs46xx_peekBA0(chip, BA0_ACSDA + offset); in snd_cs46xx_codec_read() 116 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL); in snd_cs46xx_codec_read() 118 dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); in snd_cs46xx_codec_read() 119 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, (tmp & (~ACCTL_ESYN)) | ACCTL_VFRM ); in snd_cs46xx_codec_read() 121 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL + offset); in snd_cs46xx_codec_read() 122 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, tmp | ACCTL_ESYN | ACCTL_VFRM ); in snd_cs46xx_codec_read() 139 snd_cs46xx_pokeBA0(chip, BA0_ACCAD, reg); in snd_cs46xx_codec_read() [all …]
|
/sound/pci/ |
D | ad1889.c | 110 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw() argument 112 return readw(chip->iobase + reg); in ad1889_readw() 116 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew() argument 118 writew(val, chip->iobase + reg); in ad1889_writew() 122 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl() argument 124 return readl(chip->iobase + reg); in ad1889_readl() 128 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel() argument 130 writel(val, chip->iobase + reg); in ad1889_writel() 134 ad1889_unmute(struct snd_ad1889 *chip) in ad1889_unmute() argument 137 st = ad1889_readw(chip, AD_DS_WADA) & in ad1889_unmute() [all …]
|
D | fm801.c | 76 #define fm801_writew(chip,reg,value) outw((value), chip->port + FM801_##reg) argument 77 #define fm801_readw(chip,reg) inw(chip->port + FM801_##reg) argument 79 #define fm801_writel(chip,reg,value) outl((value), chip->port + FM801_##reg) argument 219 static inline void fm801_iowrite16(struct fm801 *chip, unsigned short offset, u16 value) in fm801_iowrite16() argument 221 outw(value, chip->port + offset); in fm801_iowrite16() 224 static inline u16 fm801_ioread16(struct fm801 *chip, unsigned short offset) in fm801_ioread16() argument 226 return inw(chip->port + offset); in fm801_ioread16() 241 static bool fm801_ac97_is_ready(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_ready() argument 246 if (!(fm801_readw(chip, AC97_CMD) & FM801_AC97_BUSY)) in fm801_ac97_is_ready() 253 static bool fm801_ac97_is_valid(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_valid() argument [all …]
|
D | es1968.c | 590 static void __maestro_write(struct es1968 *chip, u16 reg, u16 data) in __maestro_write() argument 592 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write() 593 outw(data, chip->io_port + ESM_DATA); in __maestro_write() 594 chip->maestro_map[reg] = data; in __maestro_write() 597 static inline void maestro_write(struct es1968 *chip, u16 reg, u16 data) in maestro_write() argument 600 spin_lock_irqsave(&chip->reg_lock, flags); in maestro_write() 601 __maestro_write(chip, reg, data); in maestro_write() 602 spin_unlock_irqrestore(&chip->reg_lock, flags); in maestro_write() 606 static u16 __maestro_read(struct es1968 *chip, u16 reg) in __maestro_read() argument 609 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read() [all …]
|
/sound/pci/lx6464es/ |
D | lx_core.c | 70 static void __iomem *lx_dsp_register(struct lx6464es *chip, int port) in lx_dsp_register() argument 72 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register() 76 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port) in lx_dsp_reg_read() argument 78 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_read() 82 static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data, in lx_dsp_reg_readbuf() argument 85 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_readbuf() 94 void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data) in lx_dsp_reg_write() argument 96 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_write() 100 static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port, in lx_dsp_reg_writebuf() argument 103 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_writebuf() [all …]
|
/sound/isa/es1688/ |
D | es1688_lib.c | 39 static int snd_es1688_dsp_command(struct snd_es1688 *chip, unsigned char val) in snd_es1688_dsp_command() argument 44 if ((inb(ES1688P(chip, STATUS)) & 0x80) == 0) { in snd_es1688_dsp_command() 45 outb(val, ES1688P(chip, COMMAND)); in snd_es1688_dsp_command() 54 static int snd_es1688_dsp_get_byte(struct snd_es1688 *chip) in snd_es1688_dsp_get_byte() argument 59 if (inb(ES1688P(chip, DATA_AVAIL)) & 0x80) in snd_es1688_dsp_get_byte() 60 return inb(ES1688P(chip, READ)); in snd_es1688_dsp_get_byte() 61 …rintd("es1688 get byte failed: 0x%lx = 0x%x!!!\n", ES1688P(chip, DATA_AVAIL), inb(ES1688P(chip, DA… in snd_es1688_dsp_get_byte() 65 static int snd_es1688_write(struct snd_es1688 *chip, in snd_es1688_write() argument 68 if (!snd_es1688_dsp_command(chip, reg)) in snd_es1688_write() 70 return snd_es1688_dsp_command(chip, data); in snd_es1688_write() [all …]
|
/sound/pci/nm256/ |
D | nm256.c | 120 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument 137 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument 189 struct nm256 *chip; member 280 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb() argument 282 return readb(chip->cport + offset); in snd_nm256_readb() 286 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw() argument 288 return readw(chip->cport + offset); in snd_nm256_readw() 292 snd_nm256_readl(struct nm256 *chip, int offset) in snd_nm256_readl() argument 294 return readl(chip->cport + offset); in snd_nm256_readl() 298 snd_nm256_writeb(struct nm256 *chip, int offset, u8 val) in snd_nm256_writeb() argument [all …]
|
/sound/pcmcia/vx/ |
D | vxp_ops.c | 53 struct snd_vxpocket *chip = to_vxpocket(_chip); in vxp_reg_addr() local 54 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr() 61 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument 63 return inb(vxp_reg_addr(chip, offset)); in vxp_inb() 71 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument 73 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb() 80 #define vx_inb(chip,reg) vxp_inb((struct vx_core *)(chip), VX_##reg) argument 82 #define vx_outb(chip,reg,val) vxp_outb((struct vx_core *)(chip), VX_##reg,val) argument 90 static int vx_check_magic(struct vx_core *chip) in vx_check_magic() argument 95 c = vx_inb(chip, CDSP); in vx_check_magic() [all …]
|
/sound/pci/ymfpci/ |
D | ymfpci_main.c | 46 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip); 48 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb() argument 50 return readb(chip->reg_area_virt + offset); in snd_ymfpci_readb() 53 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument 55 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb() 58 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument 60 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw() 63 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument 65 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew() 68 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument [all …]
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_core.c | 33 struct snd_pdacf *chip = private_data; in pdacf_ak4117_read() local 38 spin_lock_irqsave(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 40 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read() 43 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 48 pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8); in pdacf_ak4117_read() 50 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read() 53 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 58 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_read() 59 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 65 struct snd_pdacf *chip = private_data; in pdacf_ak4117_write() local [all …]
|