Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 86) sorted by relevance

1234

/sound/pci/ctxfi/
Dctsrc.c28 static int src_default_config_memrd(struct src *src);
29 static int src_default_config_memwr(struct src *src);
30 static int src_default_config_arcrw(struct src *src);
32 static int (*src_default_config[3])(struct src *) = {
38 static int src_set_state(struct src *src, unsigned int state) in src_set_state() argument
42 hw = src->rsc.hw; in src_set_state()
43 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state()
48 static int src_set_bm(struct src *src, unsigned int bm) in src_set_bm() argument
52 hw = src->rsc.hw; in src_set_bm()
53 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm()
[all …]
Dctsrc.h47 struct src { struct
49 struct src *intlv; /* Pointer to next interleaved SRC in a series */ argument
57 int (*set_state)(struct src *src, unsigned int state); argument
58 int (*set_bm)(struct src *src, unsigned int bm);
59 int (*set_sf)(struct src *src, unsigned int sf);
60 int (*set_pm)(struct src *src, unsigned int pm);
61 int (*set_rom)(struct src *src, unsigned int rom);
62 int (*set_vo)(struct src *src, unsigned int vo);
63 int (*set_st)(struct src *src, unsigned int st);
64 int (*set_bp)(struct src *src, unsigned int bp);
[all …]
Dctatc.c248 struct src *src; in atc_pcm_playback_prepare() local
262 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare()
268 src = apcm->src; in atc_pcm_playback_prepare()
269 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
270 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
271 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format)); in atc_pcm_playback_prepare()
272 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
297 src = apcm->src; in atc_pcm_playback_prepare()
301 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
304 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
[all …]
/sound/core/
Dpcm_compat.c27 s32 __user *src) in snd_pcm_ioctl_delay_compat() argument
38 if (put_user(delay, src)) in snd_pcm_ioctl_delay_compat()
44 u32 __user *src) in snd_pcm_ioctl_rewind_compat() argument
49 if (get_user(frames, src)) in snd_pcm_ioctl_rewind_compat()
55 if (put_user(err, src)) in snd_pcm_ioctl_rewind_compat()
61 u32 __user *src) in snd_pcm_ioctl_forward_compat() argument
66 if (get_user(frames, src)) in snd_pcm_ioctl_forward_compat()
72 if (put_user(err, src)) in snd_pcm_ioctl_forward_compat()
121 struct snd_pcm_sw_params32 __user *src) in snd_pcm_ioctl_sw_params_compat() argument
128 if (get_user(params.tstamp_mode, &src->tstamp_mode) || in snd_pcm_ioctl_sw_params_compat()
[all …]
Drawmidi_compat.c34 struct snd_rawmidi_params32 __user *src) in snd_rawmidi_ioctl_params_compat() argument
41 if (get_user(params.stream, &src->stream) || in snd_rawmidi_ioctl_params_compat()
42 get_user(params.buffer_size, &src->buffer_size) || in snd_rawmidi_ioctl_params_compat()
43 get_user(params.avail_min, &src->avail_min) || in snd_rawmidi_ioctl_params_compat()
44 get_user(val, &src->no_active_sensing)) in snd_rawmidi_ioctl_params_compat()
65 struct snd_rawmidi_status32 __user *src) in snd_rawmidi_ioctl_status_compat() argument
72 if (get_user(status.stream, &src->stream)) in snd_rawmidi_ioctl_status_compat()
88 if (put_user(status.tstamp.tv_sec, &src->tstamp.tv_sec) || in snd_rawmidi_ioctl_status_compat()
89 put_user(status.tstamp.tv_nsec, &src->tstamp.tv_nsec) || in snd_rawmidi_ioctl_status_compat()
90 put_user(status.avail, &src->avail) || in snd_rawmidi_ioctl_status_compat()
[all …]
Dmemory.c38 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count) in copy_to_user_fromio() argument
41 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio()
48 memcpy_fromio(buf, (void __iomem *)src, c); in copy_to_user_fromio()
53 src += c; in copy_to_user_fromio()
71 int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count) in copy_from_user_toio() argument
74 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio()
81 if (copy_from_user(buf, src, c)) in copy_from_user_toio()
86 src += c; in copy_from_user_toio()
Dhwdep_compat.c34 struct snd_hwdep_dsp_image32 __user *src) in snd_hwdep_dsp_load_compat() argument
43 if (copy_in_user(dst, src, 4 + 64)) in snd_hwdep_dsp_load_compat()
45 if (get_user(ptr, &src->image) || in snd_hwdep_dsp_load_compat()
48 if (get_user(val, &src->length) || in snd_hwdep_dsp_load_compat()
51 if (get_user(val, &src->driver_data) || in snd_hwdep_dsp_load_compat()
Dinfo.c725 const char *snd_info_get_str(char *dest, const char *src, int len) in snd_info_get_str() argument
729 while (*src == ' ' || *src == '\t') in snd_info_get_str()
730 src++; in snd_info_get_str()
731 if (*src == '"' || *src == '\'') { in snd_info_get_str()
732 c = *src++; in snd_info_get_str()
733 while (--len > 0 && *src && *src != c) { in snd_info_get_str()
734 *dest++ = *src++; in snd_info_get_str()
736 if (*src == c) in snd_info_get_str()
737 src++; in snd_info_get_str()
739 while (--len > 0 && *src && *src != ' ' && *src != '\t') { in snd_info_get_str()
[all …]
Dinit.c528 static void copy_valid_id_string(struct snd_card *card, const char *src, in copy_valid_id_string() argument
536 *id++ = isalpha(*src) ? *src : 'D'; in copy_valid_id_string()
548 static void snd_card_set_id_no_lock(struct snd_card *card, const char *src, in snd_card_set_id_no_lock() argument
556 copy_valid_id_string(card, src, nid); in snd_card_set_id_no_lock()
712 const char *src; in snd_card_register() local
713 src = *card->shortname ? card->shortname : card->longname; in snd_card_register()
714 snd_card_set_id_no_lock(card, src, in snd_card_register()
715 retrieve_id_from_card_name(src)); in snd_card_register()
/sound/core/seq/
Dseq_ports.c499 struct snd_seq_port_subs_info *src = &src_port->c_src; in snd_seq_port_connect() local
513 down_write(&src->list_mutex); in snd_seq_port_connect()
519 if (! list_empty(&src->list_head) || ! list_empty(&dest->list_head)) in snd_seq_port_connect()
522 if (src->exclusive || dest->exclusive) in snd_seq_port_connect()
525 list_for_each_entry(s, &src->list_head, src_list) { in snd_seq_port_connect()
535 if ((err = subscribe_port(src_client, src_port, src, info, in snd_seq_port_connect()
545 write_lock_irqsave(&src->list_lock, flags); in snd_seq_port_connect()
547 list_add_tail(&subs->src_list, &src->list_head); in snd_seq_port_connect()
550 write_unlock_irqrestore(&src->list_lock, flags); in snd_seq_port_connect()
552 src->exclusive = dest->exclusive = exclusive; in snd_seq_port_connect()
[all …]
Dseq_memory.c129 static int seq_copy_in_kernel(char **bufptr, const void *src, int size) in seq_copy_in_kernel() argument
131 memcpy(*bufptr, src, size); in seq_copy_in_kernel()
136 static int seq_copy_in_user(char __user **bufptr, const void *src, int size) in seq_copy_in_user() argument
138 if (copy_to_user(*bufptr, src, size)) in seq_copy_in_user()
320 struct snd_seq_event_cell *src, *tmp, *tail; in snd_seq_event_dup() local
326 src = (struct snd_seq_event_cell *)event->data.ext.ptr; in snd_seq_event_dup()
343 if (is_chained && src) { in snd_seq_event_dup()
344 tmp->event = src->event; in snd_seq_event_dup()
345 src = src->next; in snd_seq_event_dup()
/sound/soc/blackfin/
Dbf5xx-ac97.c46 void bf5xx_pcm_to_ac97(struct ac97_frame *dst, const __u16 *src, in bf5xx_pcm_to_ac97() argument
52 dst->ac97_pcm_r = *src++; in bf5xx_pcm_to_ac97()
56 dst->ac97_pcm_l = *src++; in bf5xx_pcm_to_ac97()
62 dst->ac97_sl = *src++; in bf5xx_pcm_to_ac97()
66 dst->ac97_sr = *src++; in bf5xx_pcm_to_ac97()
70 dst->ac97_lfe = *src++; in bf5xx_pcm_to_ac97()
74 dst->ac97_center = *src++; in bf5xx_pcm_to_ac97()
83 void bf5xx_ac97_to_pcm(const struct ac97_frame *src, __u16 *dst, in bf5xx_ac97_to_pcm() argument
87 *(dst++) = src->ac97_pcm_l; in bf5xx_ac97_to_pcm()
88 *(dst++) = src->ac97_pcm_r; in bf5xx_ac97_to_pcm()
[all …]
Dbf5xx-tdm-pcm.c193 unsigned int *src; in bf5xx_pcm_copy() local
198 src = buf; in bf5xx_pcm_copy()
204 *(dst + tdm_port->tx_map[i]) = *src++; in bf5xx_pcm_copy()
208 src = (unsigned int *)substream->runtime->dma_area; in bf5xx_pcm_copy()
211 src += pos * 8; in bf5xx_pcm_copy()
214 *dst++ = *(src + tdm_port->rx_map[i]); in bf5xx_pcm_copy()
215 src += 8; in bf5xx_pcm_copy()
Dbf5xx-ac97.h53 void bf5xx_pcm_to_ac97(struct ac97_frame *dst, const __u16 *src, \
56 void bf5xx_ac97_to_pcm(const struct ac97_frame *src, __u16 *dst, \
/sound/pci/au88x0/
Dau88x0_core.c455 static void vortex_src_flushbuffers(vortex_t * vortex, unsigned char src) in vortex_src_flushbuffers() argument
461 VORTEX_SRC_DATA0 + (src << 7) + (i << 2), 0); in vortex_src_flushbuffers()
462 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3), 0); in vortex_src_flushbuffers()
463 hwwrite(vortex->mmio, VORTEX_SRC_DATA + (src << 3) + 4, 0); in vortex_src_flushbuffers()
466 static void vortex_src_cleardrift(vortex_t * vortex, unsigned char src) in vortex_src_cleardrift() argument
468 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT0 + (src << 2), 0); in vortex_src_cleardrift()
469 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT1 + (src << 2), 0); in vortex_src_cleardrift()
470 hwwrite(vortex->mmio, VORTEX_SRC_DRIFT2 + (src << 2), 1); in vortex_src_cleardrift()
474 vortex_src_set_throttlesource(vortex_t * vortex, unsigned char src, int en) in vortex_src_set_throttlesource() argument
480 temp |= 1 << src; in vortex_src_set_throttlesource()
[all …]
/sound/core/oss/
Dmulaw.c177 char *src; in mulaw_decode() local
188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode()
194 signed short sample = ulaw2linear(*src); in mulaw_decode()
196 src += src_step; in mulaw_decode()
203 unsigned char *src) in cvt_native_to_s16() argument
206 memcpy((char *)&sample + data->copy_ofs, src + data->native_ofs, in cvt_native_to_s16()
223 char *src; in mulaw_encode() local
234 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_encode()
240 signed short sample = cvt_native_to_s16(data, src); in mulaw_encode()
242 src += src_step; in mulaw_encode()
Dlinear.c43 unsigned char *dst, unsigned char *src) in do_convert() argument
48 memcpy(p + data->copy_ofs, src + data->src_ofs, data->copy_bytes); in do_convert()
64 char *src; in convert() local
75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert()
81 do_convert(data, dst, src); in convert()
82 src += src_step; in convert()
Drate.c72 signed short *src, *dst; in resample_expand() local
90 src = (signed short *)src_channels[channel].area.addr + in resample_expand()
103 S2 = *src; in resample_expand()
104 src += src_step; in resample_expand()
131 signed short *src, *dst; in resample_shrink() local
149 src = (signed short *)src_channels[channel].area.addr + in resample_shrink()
160 S2 = *src; in resample_shrink()
161 src += src_step; in resample_shrink()
/sound/firewire/
Damdtp.c267 const u32 *src; in amdtp_write_s32() local
270 src = (void *)runtime->dma_area + in amdtp_write_s32()
277 *buffer = cpu_to_be32((*src >> 8) | 0x40000000); in amdtp_write_s32()
278 src++; in amdtp_write_s32()
283 src = (void *)runtime->dma_area; in amdtp_write_s32()
293 const u16 *src; in amdtp_write_s16() local
296 src = (void *)runtime->dma_area + in amdtp_write_s16()
303 *buffer = cpu_to_be32((*src << 8) | 0x40000000); in amdtp_write_s16()
304 src++; in amdtp_write_s16()
309 src = (void *)runtime->dma_area; in amdtp_write_s16()
/sound/usb/6fire/
Dpcm.c201 u32 *src = NULL; in usb6fire_pcm_capture() local
218 src = (u32 *) (urb->buffer + total_length); in usb6fire_pcm_capture()
220 src = (u32 *) (urb->buffer - 1 + total_length); in usb6fire_pcm_capture()
223 src++; /* skip leading 4 bytes of every packet */ in usb6fire_pcm_capture()
226 memcpy(dest, src, bytes_per_frame); in usb6fire_pcm_capture()
228 src += rt->in_n_analog; in usb6fire_pcm_capture()
248 u32 *src = (u32 *) (alsa_rt->dma_area + sub->dma_off in usb6fire_pcm_playback() local
274 memcpy(dest, src, bytes_per_frame); in usb6fire_pcm_playback()
275 src += alsa_rt->channels; in usb6fire_pcm_playback()
279 if (src == src_end) { in usb6fire_pcm_playback()
[all …]
/sound/soc/nuc900/
Dnuc900-pcm.c231 dma_addr_t *src, dma_addr_t *dst) in nuc900_dma_getposition() argument
236 if (src != NULL) in nuc900_dma_getposition()
237 *src = AUDIO_READ(nuc900_audio->mmio + ACTL_PDSTC); in nuc900_dma_getposition()
248 dma_addr_t src, dst; in nuc900_dma_pointer() local
251 nuc900_dma_getposition(substream, &src, &dst); in nuc900_dma_pointer()
256 res = src - runtime->dma_addr; in nuc900_dma_pointer()
/sound/pci/lola/
Dlola_mixer.c282 unsigned int src, unsigned int dest, in lola_mixer_set_mapping_gain() argument
287 if (!(chip->mixer.src_mask & (1 << src)) || in lola_mixer_set_mapping_gain()
291 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
294 val |= (1 << src); in lola_mixer_set_mapping_gain()
296 val &= ~(1 << src); in lola_mixer_set_mapping_gain()
300 src, dest); in lola_mixer_set_mapping_gain()
492 int src = i % chip->mixer.src_phys_ins; in init_mixer_values() local
493 lola_mixer_set_mapping_gain(chip, src, i, 336, true); in init_mixer_values()
500 int src = chip->mixer.src_stream_out_ofs + i; in init_mixer_values() local
503 lola_mixer_set_mapping_gain(chip, src, dst, 336, true); in init_mixer_values()
[all …]
/sound/oss/
Dsb_common.c128 unsigned char src = 0xff; in sb_intr() local
132 src = sb_getmixer(devc, IRQ_STAT); /* Interrupt source register */ in sb_intr()
134 if (src & 4) /* MPU401 interrupt */ in sb_intr()
138 if (!(src & 3)) in sb_intr()
141 if (devc->intr_active && (!devc->fullduplex || (src & 0x01))) in sb_intr()
165 else if (devc->intr_active_16 && (src & 0x02)) in sb_intr()
189 if (src & 0x01) in sb_intr()
192 if (devc->model == MDL_SB16 && src & 0x02) in sb_intr()
198 int src = inb(devc->pcibase+0x1A); in pci_intr() local
199 src&=3; in pci_intr()
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c529 munge_int32 (unsigned int src, in munge_int32() argument
536 *dst = src & 0x7F; /* Mask high bit of LSB */ in munge_int32()
537 src = src >> 7; /* Rotate Right 7 bits */ in munge_int32()
546 demunge_int32 (unsigned char* src, int src_size) in demunge_int32() argument
553 outval=(outval<<7)+src[i]; in demunge_int32()
561 munge_buf (unsigned char *src, unsigned char *dst, unsigned int dst_size) in munge_buf() argument
568 *dst++ = src[i] & 0x7f; in munge_buf()
569 *dst++ = src[i] >> 7; in munge_buf()
576 demunge_buf (unsigned char *src, unsigned char *dst, unsigned int src_bytes) in demunge_buf() argument
580 unsigned char *end = src + src_bytes; in demunge_buf()
[all …]
/sound/soc/codecs/
Dadav80x.c53 #define ADAV80X_ICLK_CTRL1_DAC_SRC(src) ((src) << 5) argument
54 #define ADAV80X_ICLK_CTRL1_ADC_SRC(src) ((src) << 2) argument
55 #define ADAV80X_ICLK_CTRL1_ICLK2_SRC(src) (src) argument
56 #define ADAV80X_ICLK_CTRL2_ICLK1_SRC(src) ((src) << 3) argument

1234