/sound/usb/6fire/ |
D | midi.c | 24 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local 28 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler() 30 if (rt->out) { in usb6fire_midi_out_handler() 31 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler() 34 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler() 35 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler() 44 rt->out = NULL; in usb6fire_midi_out_handler() 46 spin_unlock_irqrestore(&rt->out_lock, flags); in usb6fire_midi_out_handler() 50 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 54 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received() [all …]
|
D | pcm.c | 70 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument 73 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate() 78 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 80 rates[rt->rate]); in usb6fire_pcm_set_rate() 84 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate() 86 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 88 rates[rt->rate]); in usb6fire_pcm_set_rate() 95 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 97 rates[rt->rate]); in usb6fire_pcm_set_rate() 104 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() [all …]
|
D | control.c | 60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument 62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update() 67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update() 69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update() 70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update() 74 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument 76 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update() 79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update() 82 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument 84 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_input_vol_update() [all …]
|
D | comm.c | 21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument 26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb() 30 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb() 35 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local 36 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler() 39 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler() 42 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler() 43 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler() 46 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler() 106 static int usb6fire_comm_write8(struct comm_runtime *rt, u8 request, in usb6fire_comm_write8() argument [all …]
|
D | comm.h | 27 void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer, 30 int (*write8)(struct comm_runtime *rt, u8 request, u8 reg, u8 value); 31 int (*write16)(struct comm_runtime *rt, u8 request, u8 reg,
|
D | control.h | 30 int (*update_streaming)(struct control_runtime *rt); 31 int (*set_rate)(struct control_runtime *rt, int rate); 32 int (*set_channels)(struct control_runtime *rt, int n_analog_out,
|
D | midi.h | 30 void (*in_received)(struct midi_runtime *rt, u8 *data, int length);
|
/sound/aoa/core/ |
D | gpio-pmf.c | 14 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\ 19 if (unlikely(!rt)) return; \ 20 rc = pmf_call_function(rt->node, #name "-mute", &args); \ 24 rt->implementation_private &= ~(1<<bit); \ 25 rt->implementation_private |= (!!on << bit); \ 27 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \ 29 if (unlikely(!rt)) return 0; \ 30 return (rt->implementation_private>>bit)&1; \ 37 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument 42 if (unlikely(!rt)) return; in pmf_gpio_set_hw_reset() [all …]
|
D | gpio-feature.c | 133 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\ 137 if (unlikely(!rt)) return; \ 152 rt->implementation_private &= ~(1<<bit); \ 153 rt->implementation_private |= (!!on << bit); \ 155 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \ 157 if (unlikely(!rt)) return 0; \ 158 return (rt->implementation_private>>bit)&1; \ 166 static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in ftr_gpio_set_hw_reset() argument 170 if (unlikely(!rt)) return; in ftr_gpio_set_hw_reset() 183 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) in ftr_gpio_all_amps_off() argument [all …]
|
/sound/usb/hiface/ |
D | pcm.c | 112 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument 114 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() 172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local 173 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() 176 return &rt->playback; in hiface_pcm_get_substream() 183 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument 187 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop() 188 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop() 192 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop() 195 &rt->out_urbs[i].submitted); in hiface_pcm_stream_stop() [all …]
|
/sound/aoa/ |
D | aoa-gpio.h | 25 void (*init)(struct gpio_runtime *rt); 26 void (*exit)(struct gpio_runtime *rt); 29 void (*all_amps_off)(struct gpio_runtime *rt); 31 void (*all_amps_restore)(struct gpio_runtime *rt); 33 void (*set_headphone)(struct gpio_runtime *rt, int on); 34 void (*set_speakers)(struct gpio_runtime *rt, int on); 35 void (*set_lineout)(struct gpio_runtime *rt, int on); 36 void (*set_master)(struct gpio_runtime *rt, int on); 38 int (*get_headphone)(struct gpio_runtime *rt); 39 int (*get_speakers)(struct gpio_runtime *rt); [all …]
|
/sound/parisc/ |
D | harmony.c | 398 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() local 409 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_playback_prepare() 410 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_playback_prepare() 412 if (rt->channels == 2) in snd_harmony_playback_prepare() 419 h->pbuf.addr = rt->dma_addr; in snd_harmony_playback_prepare() 428 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_prepare() local 439 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_capture_prepare() 440 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_capture_prepare() 442 if (rt->channels == 2) in snd_harmony_capture_prepare() 449 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare() [all …]
|
/sound/usb/caiaq/ |
D | audio.c | 368 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode0() local 369 char *audio_buf = rt->dma_area; in read_in_urb_mode0() 370 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0() 415 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode2() local 416 char *audio_buf = rt->dma_area; in read_in_urb_mode2() 417 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2() 447 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode3() local 448 audio_buf = rt->dma_area; in read_in_urb_mode3() 449 sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode3() 528 struct snd_pcm_runtime *rt = sub->runtime; in fill_out_urb_mode_0() local [all …]
|
/sound/soc/sh/ |
D | siu_pcm.c | 207 struct snd_pcm_runtime *rt = substream->runtime; in siu_io_work() local 221 buff = (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_work() 230 (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_work() 362 struct snd_pcm_runtime *rt; in siu_pcm_prepare() local 371 rt = siu_stream->substream->runtime; in siu_pcm_prepare() 377 info->port_id, rt->channels, siu_stream->period_bytes); in siu_pcm_prepare() 387 xfer_cnt = bytes_to_frames(rt, siu_stream->period_bytes); in siu_pcm_prepare() 391 siu_stream->format = rt->format; in siu_pcm_prepare() 396 (unsigned long)rt->dma_addr, siu_stream->buf_bytes, in siu_pcm_prepare() 398 siu_stream->format, rt->channels, (int)xfer_cnt); in siu_pcm_prepare() [all …]
|
D | siu_dai.c | 497 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_startup() local 506 ret = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in siu_dai_startup() 544 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_prepare() local 551 __func__, info->port_id, port_info->play_cap, rt->channels); in siu_dai_prepare()
|
/sound/pci/ |
D | ad1889.c | 297 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_open() local 300 rt->hw = snd_ad1889_playback_hw; in snd_ad1889_playback_open() 309 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_capture_open() local 312 rt->hw = snd_ad1889_capture_hw; in snd_ad1889_capture_open() 337 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_prepare() local 349 if (snd_pcm_format_width(rt->format) == 16) in snd_ad1889_playback_prepare() 352 if (rt->channels > 1) in snd_ad1889_playback_prepare() 360 chip->wave.addr = rt->dma_addr; in snd_ad1889_playback_prepare() 365 ad1889_writew(chip, AD_DS_WAS, rt->rate); in snd_ad1889_playback_prepare() 379 chip->wave.addr, count, size, reg, rt->rate); in snd_ad1889_playback_prepare() [all …]
|
/sound/soc/qcom/ |
D | lpass-platform.c | 192 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_hw_params() local 193 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_hw_params() 350 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_hw_free() local 351 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_hw_free() 379 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_prepare() local 380 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_prepare() 446 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_trigger() local 447 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_trigger() 597 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_pointer() local 598 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_pointer()
|
/sound/soc/fsl/ |
D | fsl_xcvr.c | 506 struct snd_pcm_runtime *rt = substream->runtime; in fsl_xcvr_constr() local 509 ret = snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in fsl_xcvr_constr() 514 ret = snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_RATE, in fsl_xcvr_constr()
|
/sound/soc/codecs/ |
D | tscs42xx.c | 952 #define PLL_CTL(f, rt, rd, r1b_l, r9, ra, rb, \ argument 957 {R_TIMEBASE, rt, 0xFF}, \
|