Searched refs:sub (Results 1 – 9 of 9) sorted by relevance
/sound/usb/hiface/ |
D | pcm.c | 261 static bool hiface_pcm_playback(struct pcm_substream *sub, struct pcm_urb *urb) in hiface_pcm_playback() argument 263 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in hiface_pcm_playback() 270 pcm_buffer_size = snd_pcm_lib_buffer_bytes(sub->instance); in hiface_pcm_playback() 272 if (sub->dma_off + PCM_PACKET_SIZE <= pcm_buffer_size) { in hiface_pcm_playback() 275 (unsigned int) sub->dma_off); in hiface_pcm_playback() 277 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback() 285 (unsigned int) sub->dma_off); in hiface_pcm_playback() 287 len = pcm_buffer_size - sub->dma_off; in hiface_pcm_playback() 289 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback() 296 sub->dma_off += PCM_PACKET_SIZE; in hiface_pcm_playback() [all …]
|
/sound/usb/6fire/ |
D | pcm.c | 196 static void usb6fire_pcm_capture(struct pcm_substream *sub, struct pcm_urb *urb) in usb6fire_pcm_capture() argument 202 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); in usb6fire_pcm_capture() 203 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in usb6fire_pcm_capture() 205 u32 *dest = (u32 *) (alsa_rt->dma_area + sub->dma_off in usb6fire_pcm_capture() 232 sub->dma_off++; in usb6fire_pcm_capture() 233 sub->period_off++; in usb6fire_pcm_capture() 235 sub->dma_off = 0; in usb6fire_pcm_capture() 243 static void usb6fire_pcm_playback(struct pcm_substream *sub, in usb6fire_pcm_playback() argument 249 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); in usb6fire_pcm_playback() 250 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in usb6fire_pcm_playback() [all …]
|
/sound/usb/caiaq/ |
D | audio.c | 65 struct snd_pcm_substream *sub) in activate_substream() argument 69 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream() 70 cdev->sub_playback[sub->number] = sub; in activate_substream() 72 cdev->sub_capture[sub->number] = sub; in activate_substream() 79 struct snd_pcm_substream *sub) in deactivate_substream() argument 84 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in deactivate_substream() 85 cdev->sub_playback[sub->number] = NULL; in deactivate_substream() 87 cdev->sub_capture[sub->number] = NULL; in deactivate_substream() 183 static int snd_usb_caiaq_pcm_hw_params(struct snd_pcm_substream *sub, in snd_usb_caiaq_pcm_hw_params() argument 186 return snd_pcm_lib_alloc_vmalloc_buffer(sub, in snd_usb_caiaq_pcm_hw_params() [all …]
|
/sound/soc/fsl/ |
D | fsl_esai.c | 128 u32 psr, pm = 999, maxfp, prod, sub, savesub, i, j; in fsl_esai_divisor_cal() local 165 sub = 0; in fsl_esai_divisor_cal() 167 sub = prod - ratio; in fsl_esai_divisor_cal() 169 sub = ratio - prod; in fsl_esai_divisor_cal() 174 sub = sub * 1000 / ratio; in fsl_esai_divisor_cal() 175 if (sub < savesub) { in fsl_esai_divisor_cal() 176 savesub = sub; in fsl_esai_divisor_cal() 316 u32 sub, ratio = hck_rate / freq; in fsl_esai_set_bclk() local 324 sub = ratio * freq - hck_rate; in fsl_esai_set_bclk() 326 sub = hck_rate - ratio * freq; in fsl_esai_set_bclk() [all …]
|
D | fsl_spdif.c | 1100 u64 rate_ideal, rate_actual, sub; in fsl_spdif_txclk_caldiv() local 1128 sub = (u64)(arate - rate[index]) * 100000; in fsl_spdif_txclk_caldiv() 1129 do_div(sub, rate[index]); in fsl_spdif_txclk_caldiv() 1130 if (sub >= savesub) in fsl_spdif_txclk_caldiv() 1132 savesub = sub; in fsl_spdif_txclk_caldiv() 1138 sub = (u64)(rate[index] - arate) * 100000; in fsl_spdif_txclk_caldiv() 1139 do_div(sub, rate[index]); in fsl_spdif_txclk_caldiv() 1140 if (sub >= savesub) in fsl_spdif_txclk_caldiv() 1142 savesub = sub; in fsl_spdif_txclk_caldiv()
|
D | fsl_ssi.c | 652 u64 sub, savesub = 100000; in fsl_ssi_set_bclk() local 693 sub = 0; in fsl_ssi_set_bclk() 695 sub = freq - afreq; in fsl_ssi_set_bclk() 697 sub = afreq - freq; in fsl_ssi_set_bclk() 702 sub *= 100000; in fsl_ssi_set_bclk() 703 do_div(sub, freq); in fsl_ssi_set_bclk() 705 if (sub < savesub && !(i == 0 && psr == 0 && div2 == 0)) { in fsl_ssi_set_bclk() 707 savesub = sub; in fsl_ssi_set_bclk()
|
/sound/drivers/ |
D | aloop.c | 1122 int sub, in print_substream_info() argument 1125 struct loopback_cable *cable = loopback->cables[sub][num]; in print_substream_info() 1127 snd_iprintf(buffer, "Cable %i substream %i:\n", num, sub); in print_substream_info() 1143 int sub, num; in print_cable_info() local 1148 for (sub = 0; sub < MAX_PCM_SUBSTREAMS; sub++) in print_cable_info() 1149 print_substream_info(buffer, loopback, sub, num); in print_cable_info()
|
/sound/hda/ |
D | Kconfig | 29 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
|
/sound/oss/ |
D | vidc_fill.S | 155 sub r1, r1, r0 @ Remaining length 163 sub r2, r2, #16
|