Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 19 of 19) sorted by relevance

/sound/hda/
Dhdac_stream.c317 int ofs, int size, int with_ioc) in setup_bdle() argument
328 addr = snd_sgbuf_get_addr(dmab, ofs); in setup_bdle()
333 chunk = snd_sgbuf_get_chunk_size(dmab, ofs, size); in setup_bdle()
336 u32 remain = 0x1000 - (ofs & 0xfff); in setup_bdle()
349 ofs += chunk; in setup_bdle()
352 return ofs; in setup_bdle()
368 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
380 ofs = 0; in snd_hdac_stream_setup_periods()
398 ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), in snd_hdac_stream_setup_periods()
400 &bdl, ofs, pos_adj, true); in snd_hdac_stream_setup_periods()
[all …]
/sound/pci/ice1712/
Dphase.c494 int i, ofs, voices; in wm_vol_get() local
497 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
500 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
509 int i, idx, ofs, voices; in wm_vol_put() local
513 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
520 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
521 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
522 spec->vol[ofs+i] = vol; in wm_vol_put()
523 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
524 wm_set_vol(ice, idx, spec->vol[ofs+i], in wm_vol_put()
[all …]
Daureon.c810 int i, ofs, voices; in wm_vol_get() local
813 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
816 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
824 int i, idx, ofs, voices; in wm_vol_put() local
828 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
834 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
835 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
836 spec->vol[ofs+i] = vol; in wm_vol_put()
837 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
838 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
[all …]
Dprodigy_hifi.c446 int i, ofs, voices; in wm8766_vol_get() local
449 ofs = kcontrol->private_value & 0xff; in wm8766_vol_get()
451 ucontrol->value.integer.value[i] = spec->vol[ofs + i]; in wm8766_vol_get()
459 int i, idx, ofs, voices; in wm8766_vol_put() local
463 ofs = kcontrol->private_value & 0xff; in wm8766_vol_put()
466 if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) { in wm8766_vol_put()
467 idx = WM8766_LDA1 + ofs + i; in wm8766_vol_put()
468 spec->vol[ofs + i] &= WM_VOL_MUTE; in wm8766_vol_put()
469 spec->vol[ofs + i] |= ucontrol->value.integer.value[i]; in wm8766_vol_put()
471 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put()
/sound/core/
Dsgbuf.c144 unsigned int ofs, unsigned int size) in snd_sgbuf_get_chunk_size() argument
149 start = ofs >> PAGE_SHIFT; in snd_sgbuf_get_chunk_size()
150 end = (ofs + size - 1) >> PAGE_SHIFT; in snd_sgbuf_get_chunk_size()
159 return (start << PAGE_SHIFT) - ofs; in snd_sgbuf_get_chunk_size()
Dpcm_lib.c56 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
88 ofs = runtime->status->hw_ptr; in snd_pcm_playback_silence()
89 frames = new_hw_ptr - ofs; in snd_pcm_playback_silence()
97 runtime->silence_start = ofs; in snd_pcm_playback_silence()
106 ofs = runtime->silence_start % runtime->buffer_size; in snd_pcm_playback_silence()
108 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
113 err = substream->ops->silence(substream, -1, ofs, transfer); in snd_pcm_playback_silence()
116 char *hwbuf = runtime->dma_area + frames_to_bytes(runtime, ofs); in snd_pcm_playback_silence()
125 err = substream->ops->silence(substream, c, ofs, transfer); in snd_pcm_playback_silence()
131 char *hwbuf = runtime->dma_area + (c * dma_csize) + samples_to_bytes(runtime, ofs); in snd_pcm_playback_silence()
[all …]
Dpcm_native.c3356 snd_pcm_default_page_ops(struct snd_pcm_substream *substream, unsigned long ofs) in snd_pcm_default_page_ops() argument
3358 void *vaddr = substream->runtime->dma_area + ofs; in snd_pcm_default_page_ops()
/sound/pci/lola/
Dlola_pcm.c320 int ofs, int size) in setup_bdle() argument
331 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in setup_bdle()
336 chunk = snd_pcm_sgbuf_get_chunk_size(substream, ofs, size); in setup_bdle()
345 ofs += chunk; in setup_bdle()
348 return ofs; in setup_bdle()
359 int i, ofs, periods, period_bytes; in lola_setup_periods() local
366 ofs = 0; in lola_setup_periods()
369 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); in lola_setup_periods()
370 if (ofs < 0) in lola_setup_periods()
Dlola_mixer.c688 unsigned int ofs = kcontrol->private_value & 0xff; in lola_src_gain_get() local
694 unsigned int idx = ofs + i; in lola_src_gain_get()
711 unsigned int ofs = kcontrol->private_value & 0xff; in lola_src_gain_put() local
716 unsigned int idx = ofs + i; in lola_src_gain_put()
741 int num, int ofs, char *name) in create_src_gain_mixer() argument
744 lola_src_gain_mixer.private_value = ofs + (num << 8); in create_src_gain_mixer()
829 int num, int ofs, char *name)
834 src_ofs + (src_num << 8) + (ofs << 16) + (num << 24);
/sound/pci/trident/
Dtrident_memory.c217 unsigned long ofs = idx << PAGE_SHIFT; in snd_trident_alloc_sg_pages() local
218 dma_addr_t addr = snd_pcm_sgbuf_get_addr(substream, ofs); in snd_trident_alloc_sg_pages()
220 snd_pcm_sgbuf_get_ptr(substream, ofs); in snd_trident_alloc_sg_pages()
/sound/pci/
Dvia82xx_modem.c282 unsigned int i, idx, ofs, rest; in build_via_table() local
302 ofs = 0; in build_via_table()
318 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in build_via_table()
320 r = PAGE_SIZE - (ofs % PAGE_SIZE); in build_via_table()
337 dev->idx_table[idx].offset = ofs; in build_via_table()
339 ofs += r; in build_via_table()
Dvia82xx.c429 unsigned int i, idx, ofs, rest; in build_via_table() local
449 ofs = 0; in build_via_table()
465 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in build_via_table()
467 r = snd_pcm_sgbuf_get_chunk_size(substream, ofs, rest); in build_via_table()
482 dev->idx_table[idx].offset = ofs; in build_via_table()
484 ofs += r; in build_via_table()
/sound/pci/hda/
Dhda_codec.c1283 unsigned int ofs) in get_amp_max_value() argument
1288 if (ofs < caps) in get_amp_max_value()
1289 caps -= ofs; in get_amp_max_value()
1308 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_info() local
1313 uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); in snd_hda_mixer_amp_volume_info()
1327 int ch, int dir, int idx, unsigned int ofs) in read_amp_value() argument
1332 if (val >= ofs) in read_amp_value()
1333 val -= ofs; in read_amp_value()
1341 int ch, int dir, int idx, unsigned int ofs, in update_amp_value() argument
1347 val += ofs; in update_amp_value()
[all …]
Dhda_local.h39 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument
40 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23))
/sound/pci/emu10k1/
Dmemory.c330 unsigned long ofs = idx << PAGE_SHIFT; in snd_emu10k1_alloc_pages() local
332 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
335 addr = snd_pcm_sgbuf_get_addr(substream, ofs); in snd_emu10k1_alloc_pages()
/sound/pci/rme9652/
Dhdsp.c4586 int i, j, channels, ofs; in hdsp_9652_get_peak() local
4594 ofs = HDSP_9652_peakBase - j * 4; in hdsp_9652_get_peak()
4595 if (copy_u32_le(&peak_rms->input_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4597 ofs -= channels * 4; in hdsp_9652_get_peak()
4598 if (copy_u32_le(&peak_rms->playback_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4600 ofs -= channels * 4; in hdsp_9652_get_peak()
4601 if (copy_u32_le(&peak_rms->output_peaks[i], hdsp->iobase + ofs)) in hdsp_9652_get_peak()
4603 ofs = HDSP_9652_rmsBase + j * 8; in hdsp_9652_get_peak()
4604 if (copy_u48_le(&peak_rms->input_rms[i], hdsp->iobase + ofs, in hdsp_9652_get_peak()
4605 hdsp->iobase + ofs + 4)) in hdsp_9652_get_peak()
[all …]
/sound/drivers/
Ddummy.c952 #define get_dummy_int_ptr(dummy, ofs) \ argument
953 (unsigned int *)((char *)&((dummy)->pcm_hw) + (ofs))
954 #define get_dummy_ll_ptr(dummy, ofs) \ argument
955 (unsigned long long *)((char *)&((dummy)->pcm_hw) + (ofs))
/sound/ppc/
Dtumbler.c830 #define DEFINE_SNAPPER_MIX(xname,idx,ofs) { \ argument
837 .private_value = ofs, \
/sound/pci/riptide/
Driptide.c1508 unsigned int ofs, addr; in snd_riptide_prepare() local
1516 ofs = j << PAGE_SHIFT; in snd_riptide_prepare()
1517 addr = snd_pcm_sgbuf_get_addr(substream, ofs) + pt; in snd_riptide_prepare()