Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 34) sorted by relevance

12

/sound/usb/usx2y/
Dusb_stream.c40 int l = usb_stream_next_packet_size(sk); in playback_prep_freqn() local
41 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn()
46 urb->iso_frame_desc[pack].length = l; in playback_prep_freqn()
47 lb += l; in playback_prep_freqn()
281 int p = 0, lb = 0, l = 0; in usb_stream_prepare_playback() local
290 l = id->actual_length; in usb_stream_prepare_playback()
292 od[p].length = l; in usb_stream_prepare_playback()
294 lb += l; in usb_stream_prepare_playback()
300 l = inurb->iso_frame_desc[s->sync_packet].actual_length; in usb_stream_prepare_playback()
302 if (s->idle_outsize + lb + l > s->period_size) in usb_stream_prepare_playback()
[all …]
/sound/pci/asihpi/
Dhpios.h108 static inline void cond_lock(struct hpios_spinlock *l) in cond_lock() argument
114 spin_lock(&((l)->lock)); in cond_lock()
115 l->lock_context = IN_LOCK_IRQ; in cond_lock()
117 spin_lock_bh(&((l)->lock)); in cond_lock()
118 l->lock_context = IN_LOCK_BH; in cond_lock()
122 static inline void cond_unlock(struct hpios_spinlock *l) in cond_unlock() argument
124 if (l->lock_context == IN_LOCK_BH) in cond_unlock()
125 spin_unlock_bh(&((l)->lock)); in cond_unlock()
127 spin_unlock(&((l)->lock)); in cond_unlock()
Dhpi_internal.h1028 struct hpi_gpio_msg l; /* digital i/o */ member
1089 struct hpi_gpio_res l; /* digital i/o */ member
1197 struct hpi_gpio_msg l; member
1216 struct hpi_gpio_res l; member
/sound/oss/
Dhex2hex.c17 int l=0, c, i; in loadhex() local
51 if (addr > l) in loadhex()
52 l = addr; in loadhex()
65 return l; in loadhex()
71 int i,l; in main() local
86 l = loadhex(stdin, buf); in main()
89 printf("static int %s_len = %d;\n", varline, l); in main()
92 for (i=0;i<l;i++) in main()
Daudio.c138 int l; in sync_output() local
147 if ((l = dmap->user_counter % dmap->fragment_size) > 0) in sync_output()
152 len = dmap->fragment_size - l; in sync_output()
224 int c, p, l, buf_size, used, returned; in audio_write() local
259 l = c; in audio_write()
261 if (l > buf_size) in audio_write()
262 l = buf_size; in audio_write()
264 returned = l; in audio_write()
265 used = l; in audio_write()
268 if ((dma_buf + l) > in audio_write()
[all …]
Dswarm_cs4297a.c1187 unsigned char l, r, rl, rr, vidx; in mixer_ioctl() local
1344 l = val & 0xff; in mixer_ioctl()
1345 if (l > 100) in mixer_ioctl()
1346 l = 100; // Max soundcard.h vol is 100. in mixer_ioctl()
1347 if (l < 6) { in mixer_ioctl()
1349 l = 0; in mixer_ioctl()
1351 rl = attentbl[(10 * l) / 100]; // Convert 0-100 vol to 63-0 atten. in mixer_ioctl()
1373 s->mix.vol[8] = ((unsigned int) r << 8) | l; in mixer_ioctl()
1382 l = val & 0xff; in mixer_ioctl()
1383 if (l > 100) in mixer_ioctl()
[all …]
Dmsnd.h143 #define HIWORD(l) ((WORD)((((DWORD)(l)) >> 16) & 0xFFFF)) argument
144 #define LOWORD(l) ((WORD)(DWORD)(l)) argument
Dsound_calls.h10 int DMAbuf_start_output(int dev, int buff_no, int l);
11 int DMAbuf_move_wrpointer(int dev, int l);
Dsequencer.c712 int i, l = 0; in seq_sysex_message() local
722 l = 0; in seq_sysex_message()
724 l = i + 1; in seq_sysex_message()
728 if (l > 0) in seq_sysex_message()
729 synth_devs[dev]->send_sysex(dev, buf, l); in seq_sysex_message()
/sound/core/
Dpcm_timer.c34 unsigned long rate, mult, fsize, l, post; in snd_pcm_timer_resolution_change() local
41 l = gcd(mult, rate); in snd_pcm_timer_resolution_change()
42 mult /= l; in snd_pcm_timer_resolution_change()
43 rate /= l; in snd_pcm_timer_resolution_change()
47 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
48 rate /= l; in snd_pcm_timer_resolution_change()
49 fsize /= l; in snd_pcm_timer_resolution_change()
/sound/core/seq/oss/
Dseq_oss_event.c210 if (q->l.chn >= 32) in chn_common_event()
212 switch (q->l.cmd) { in chn_common_event()
214 return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_PGMCHANGE, in chn_common_event()
215 q->l.chn, 0, q->l.p1, ev); in chn_common_event()
218 return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_CONTROLLER, in chn_common_event()
219 q->l.chn, q->l.p1, q->l.val, ev); in chn_common_event()
223 return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_PITCHBEND, in chn_common_event()
224 q->l.chn, 0, q->l.val - 8192, ev); in chn_common_event()
227 return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_CHANPRESS, in chn_common_event()
228 q->l.chn, 0, q->l.val, ev); in chn_common_event()
Dseq_oss_midi.c559 ossev.l.cmd = MIDI_CTL_CHANGE; break; in send_synth_event()
561 ossev.l.cmd = MIDI_PGM_CHANGE; break; in send_synth_event()
563 ossev.l.cmd = MIDI_CHN_PRESSURE; break; in send_synth_event()
565 ossev.l.cmd = MIDI_PITCH_BEND; break; in send_synth_event()
584 ossev.l.code = EV_CHN_COMMON; in send_synth_event()
585 ossev.l.p1 = ev->data.control.param; in send_synth_event()
586 ossev.l.val = ev->data.control.value; in send_synth_event()
587 ossev.l.chn = ev->data.control.channel; in send_synth_event()
590 ossev.l.code = EV_CHN_COMMON; in send_synth_event()
591 ossev.l.val = ev->data.control.value + 8192; in send_synth_event()
[all …]
Dseq_oss_event.h95 struct evrec_long l; member
/sound/aoa/fabrics/
Dlayout.c566 struct layout *l; in find_layout_by_id() local
568 l = layouts; in find_layout_by_id()
569 while (l->codecs[0].name) { in find_layout_by_id()
570 if (l->layout_id == id) in find_layout_by_id()
571 return l; in find_layout_by_id()
572 l++; in find_layout_by_id()
579 struct layout *l; in find_layout_by_device() local
581 l = layouts; in find_layout_by_device()
582 while (l->codecs[0].name) { in find_layout_by_device()
583 if (l->device_id == id) in find_layout_by_device()
[all …]
/sound/soc/codecs/
Dsgtl5000.c301 int l; in dac_get_volsw() local
307 l = (reg & SGTL5000_DAC_VOL_LEFT_MASK) >> SGTL5000_DAC_VOL_LEFT_SHIFT; in dac_get_volsw()
313 l = clamp(l, 0x3c, 0xfc); in dac_get_volsw()
317 l = 0xfc - l; in dac_get_volsw()
320 ucontrol->value.integer.value[0] = l; in dac_get_volsw()
354 int l; in dac_put_volsw() local
357 l = ucontrol->value.integer.value[0]; in dac_put_volsw()
361 l = clamp(l, 0, 0xfc - 0x3c); in dac_put_volsw()
365 l = 0xfc - l; in dac_put_volsw()
369 reg = l << SGTL5000_DAC_VOL_LEFT_SHIFT | in dac_put_volsw()
/sound/isa/gus/
Dgus_main.c237 int l, idx, local; in snd_gus_detect_memory() local
260 for (l = 0, local = gus->gf1.memory; l < 4; l++, local -= 256 * 1024) { in snd_gus_detect_memory()
261 gus->gf1.mem_alloc.banks_8[l].address = in snd_gus_detect_memory()
262 gus->gf1.mem_alloc.banks_8[l].size = 0; in snd_gus_detect_memory()
263 gus->gf1.mem_alloc.banks_16[l].address = l << 18; in snd_gus_detect_memory()
264 gus->gf1.mem_alloc.banks_16[l].size = local > 0 ? 256 * 1024 : 0; in snd_gus_detect_memory()
/sound/hda/ext/
Dhdac_ext_controller.c132 struct hdac_ext_link *l; in snd_hdac_link_free_all() local
135 l = list_first_entry(&ebus->hlink_list, struct hdac_ext_link, list); in snd_hdac_link_free_all()
136 list_del(&l->list); in snd_hdac_link_free_all()
137 kfree(l); in snd_hdac_link_free_all()
/sound/isa/msnd/
Dmsnd.h182 #define HIWORD(l) ((u16)((((u32)(l)) >> 16) & 0xFFFF)) argument
183 #define LOWORD(l) ((u16)(u32)(l)) argument
/sound/mips/
Dhal2.c204 int l, r; in hal2_gain_get() local
210 l = 0; in hal2_gain_get()
213 l = 31 - ((tmp >> H2I_C2_L_ATT_SHIFT) & 31); in hal2_gain_get()
219 l = (tmp >> H2I_C2_L_GAIN_SHIFT) & 15; in hal2_gain_get()
223 ucontrol->value.integer.value[0] = l; in hal2_gain_get()
234 int l, r; in hal2_gain_put() local
236 l = ucontrol->value.integer.value[0]; in hal2_gain_put()
243 if (l | r) { in hal2_gain_put()
244 l = 31 - l; in hal2_gain_put()
246 new |= (l << H2I_C2_L_ATT_SHIFT); in hal2_gain_put()
[all …]
/sound/pci/emu10k1/
Demufx.c1482 int j, k, l, d; in _snd_emu10k1_audigy_init_efx() local
1485 l = 0xe0 + (z * 8) + (j * 4); in _snd_emu10k1_audigy_init_efx()
1496 A_OP(icode, &ptr, iMACMV, A_GPR(l+1), A_GPR(l), A_GPR(l+1), A_GPR(TREBLE_GPR + 4 + j)); in _snd_emu10k1_audigy_init_efx()
1497 A_OP(icode, &ptr, iMACMV, A_GPR(l), A_GPR(k+2), A_GPR(l), A_GPR(TREBLE_GPR + 2 + j)); in _snd_emu10k1_audigy_init_efx()
1498 A_OP(icode, &ptr, iMACMV, A_GPR(l+3), A_GPR(l+2), A_GPR(l+3), A_GPR(TREBLE_GPR + 8 + j)); in _snd_emu10k1_audigy_init_efx()
1499 A_OP(icode, &ptr, iMAC0, A_GPR(l+2), A_GPR_ACCU, A_GPR(l+2), A_GPR(TREBLE_GPR + 6 + j)); in _snd_emu10k1_audigy_init_efx()
1500 A_OP(icode, &ptr, iMACINT0, A_GPR(l+2), A_C_00000000, A_GPR(l+2), A_C_00000010); in _snd_emu10k1_audigy_init_efx()
1502 A_OP(icode, &ptr, iACC3, A_GPR(d), A_GPR(l+2), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
2207 int j, k, l, d; in _snd_emu10k1_init_efx() local
2210 l = 0xd0 + (z * 8) + (j * 4); in _snd_emu10k1_init_efx()
[all …]
/sound/aoa/codecs/
Donyx.c123 s8 l, r; in onyx_snd_vol_get() local
126 onyx_read_register(onyx, ONYX_REG_DAC_ATTEN_LEFT, &l); in onyx_snd_vol_get()
130 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
140 s8 l, r; in onyx_snd_vol_put() local
150 onyx_read_register(onyx, ONYX_REG_DAC_ATTEN_LEFT, &l); in onyx_snd_vol_put()
153 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && in onyx_snd_vol_put()
/sound/ppc/
Dpmac.c936 unsigned int l; in snd_pmac_detect() local
1081 prop = of_get_property(sound, "sample-rates", &l); in snd_pmac_detect()
1083 prop = of_get_property(sound, "output-frame-rates", &l); in snd_pmac_detect()
1087 for (l /= sizeof(int); l > 0; --l) { in snd_pmac_detect()
/sound/isa/wavefront/
Dwavefront_synth.c738 int i, x, l, cnt; in wavefront_get_program_status() local
751 for (l = 0; l < WF_NUM_LAYERS; l++) { in wavefront_get_program_status()
752 if (prog.layer[l].mute) { in wavefront_get_program_status()
754 [prog.layer[l].patch_number] |= in wavefront_get_program_status()
/sound/pci/au88x0/
Dau88x0_a3d.c817 int l, r; in snd_vortex_a3d_ild_put() local
819 l = ucontrol->value.integer.value[0]; in snd_vortex_a3d_ild_put()
821 vortex_a3d_coord2ild(a->ild, l, r); in snd_vortex_a3d_ild_put()
823 a3dsrc_SetGainTarget(a, l, r); in snd_vortex_a3d_ild_put()
824 a3dsrc_SetGainCurrent(a, l, r); in snd_vortex_a3d_ild_put()
/sound/drivers/vx/
Dvx_mixer.c50 u32 l; member
54 u16 l; member
64 u16 l; member
79 #define SET_CDC_DATA_INIT(di) ((di).l = 0L, SET_CDC_DATA_SEL(di,XX_CODEC_SELECTOR))
94 vx_write_codec_reg(chip, codec, data.l); in vx_set_codec_reg()

12