/sound/usb/6fire/ |
D | midi.c | 28 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local 32 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler() 34 if (rt->out) { in usb6fire_midi_out_handler() 35 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler() 38 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler() 39 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler() 48 rt->out = NULL; in usb6fire_midi_out_handler() 50 spin_unlock_irqrestore(&rt->out_lock, flags); in usb6fire_midi_out_handler() 54 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 58 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received() [all …]
|
D | pcm.c | 74 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument 77 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate() 82 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 84 rates[rt->rate]); in usb6fire_pcm_set_rate() 88 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate() 90 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 92 rates[rt->rate]); in usb6fire_pcm_set_rate() 99 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() 101 rates[rt->rate]); in usb6fire_pcm_set_rate() 108 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate() [all …]
|
D | control.c | 64 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument 66 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update() 71 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update() 73 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update() 74 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update() 78 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument 80 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update() 83 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update() 86 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument 88 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_input_vol_update() [all …]
|
D | comm.c | 25 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument 30 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb() 34 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb() 39 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local 40 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler() 43 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler() 46 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler() 47 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler() 50 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler() 110 static int usb6fire_comm_write8(struct comm_runtime *rt, u8 request, in usb6fire_comm_write8() argument [all …]
|
D | control.h | 34 int (*update_streaming)(struct control_runtime *rt); 35 int (*set_rate)(struct control_runtime *rt, int rate); 36 int (*set_channels)(struct control_runtime *rt, int n_analog_out,
|
D | comm.h | 31 void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer, 34 int (*write8)(struct comm_runtime *rt, u8 request, u8 reg, u8 value); 35 int (*write16)(struct comm_runtime *rt, u8 request, u8 reg,
|
D | midi.h | 34 void (*in_received)(struct midi_runtime *rt, u8 *data, int length);
|
/sound/aoa/core/ |
D | gpio-pmf.c | 15 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\ 20 if (unlikely(!rt)) return; \ 21 rc = pmf_call_function(rt->node, #name "-mute", &args); \ 25 rt->implementation_private &= ~(1<<bit); \ 26 rt->implementation_private |= (!!on << bit); \ 28 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \ 30 if (unlikely(!rt)) return 0; \ 31 return (rt->implementation_private>>bit)&1; \ 38 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument 43 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 | 116 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument 118 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate() 178 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local 179 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream() 182 return &rt->playback; in hiface_pcm_get_substream() 189 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument 193 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop() 194 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop() 198 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop() 201 &rt->out_urbs[i].submitted); in hiface_pcm_stream_stop() [all …]
|
/sound/aoa/ |
D | aoa-gpio.h | 26 void (*init)(struct gpio_runtime *rt); 27 void (*exit)(struct gpio_runtime *rt); 30 void (*all_amps_off)(struct gpio_runtime *rt); 32 void (*all_amps_restore)(struct gpio_runtime *rt); 34 void (*set_headphone)(struct gpio_runtime *rt, int on); 35 void (*set_speakers)(struct gpio_runtime *rt, int on); 36 void (*set_lineout)(struct gpio_runtime *rt, int on); 37 void (*set_master)(struct gpio_runtime *rt, int on); 39 int (*get_headphone)(struct gpio_runtime *rt); 40 int (*get_speakers)(struct gpio_runtime *rt); [all …]
|
/sound/parisc/ |
D | harmony.c | 411 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() local 422 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_playback_prepare() 423 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_playback_prepare() 425 if (rt->channels == 2) in snd_harmony_playback_prepare() 432 h->pbuf.addr = rt->dma_addr; in snd_harmony_playback_prepare() 441 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_prepare() local 452 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_capture_prepare() 453 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_capture_prepare() 455 if (rt->channels == 2) in snd_harmony_capture_prepare() 462 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare() [all …]
|
/sound/usb/caiaq/ |
D | audio.c | 392 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode0() local 393 char *audio_buf = rt->dma_area; in read_in_urb_mode0() 394 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0() 439 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode2() local 440 char *audio_buf = rt->dma_area; in read_in_urb_mode2() 441 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2() 471 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode3() local 472 audio_buf = rt->dma_area; in read_in_urb_mode3() 473 sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode3() 552 struct snd_pcm_runtime *rt = sub->runtime; in fill_out_urb_mode_0() local [all …]
|
/sound/soc/sh/ |
D | siu_pcm.c | 218 struct snd_pcm_runtime *rt = substream->runtime; in siu_io_tasklet() local 233 buff = (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_tasklet() 236 virt = PERIOD_OFFSET(rt->dma_area, in siu_io_tasklet() 245 (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_tasklet() 408 struct snd_pcm_runtime *rt = ss->runtime; in siu_pcm_prepare() local 417 rt = siu_stream->substream->runtime; in siu_pcm_prepare() 423 info->port_id, rt->channels, siu_stream->period_bytes); in siu_pcm_prepare() 433 xfer_cnt = bytes_to_frames(rt, siu_stream->period_bytes); in siu_pcm_prepare() 437 siu_stream->format = rt->format; in siu_pcm_prepare() 442 (unsigned long)rt->dma_addr, siu_stream->buf_bytes, in siu_pcm_prepare() [all …]
|
D | siu_dai.c | 511 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_startup() local 520 ret = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in siu_dai_startup() 558 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_prepare() local 565 __func__, info->port_id, port_info->play_cap, rt->channels); in siu_dai_prepare()
|
/sound/pci/ |
D | ad1889.c | 324 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_open() local 327 rt->hw = snd_ad1889_playback_hw; in snd_ad1889_playback_open() 336 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_capture_open() local 339 rt->hw = snd_ad1889_capture_hw; in snd_ad1889_capture_open() 364 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_prepare() local 376 if (snd_pcm_format_width(rt->format) == 16) in snd_ad1889_playback_prepare() 379 if (rt->channels > 1) in snd_ad1889_playback_prepare() 387 chip->wave.addr = rt->dma_addr; in snd_ad1889_playback_prepare() 392 ad1889_writew(chip, AD_DS_WAS, rt->rate); in snd_ad1889_playback_prepare() 406 chip->wave.addr, count, size, reg, rt->rate); in snd_ad1889_playback_prepare() [all …]
|
/sound/soc/qcom/ |
D | lpass-platform.c | 139 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_hw_params() local 140 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_hw_params() 232 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_hw_free() local 233 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_hw_free() 253 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_prepare() local 254 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_prepare() 305 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_trigger() local 306 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_trigger() 379 struct snd_pcm_runtime *rt = substream->runtime; in lpass_platform_pcmops_pointer() local 380 struct lpass_pcm_data *pcm_data = rt->private_data; in lpass_platform_pcmops_pointer()
|