Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 143) sorted by relevance

123456

/sound/hda/
Dhdac_bus.c69 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb() argument
74 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb()
89 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb_unlocked() argument
97 if (res) in snd_hdac_bus_exec_verb_unlocked()
98 *res = -1; in snd_hdac_bus_exec_verb_unlocked()
100 res = &tmp; in snd_hdac_bus_exec_verb_unlocked()
111 if (!err && res) { in snd_hdac_bus_exec_verb_unlocked()
112 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked()
113 trace_hda_get_response(bus, addr, *res); in snd_hdac_bus_exec_verb_unlocked()
129 void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex) in snd_hdac_bus_queue_event() argument
[all …]
Dtrace.h31 TP_PROTO(struct hdac_bus *bus, unsigned int addr, unsigned int res),
32 TP_ARGS(bus, addr, res),
37 dev_name((bus)->dev), addr, res);
43 TP_PROTO(struct hdac_bus *bus, u32 res, u32 res_ex),
44 TP_ARGS(bus, res, res_ex),
49 dev_name((bus)->dev), res_ex & 0x0f, res, res_ex);
Dhdac_controller.c184 u32 res, res_ex; in snd_hdac_bus_update_rirb() local
202 res = le32_to_cpu(bus->rirb.buf[rp]); in snd_hdac_bus_update_rirb()
207 res, res_ex, bus->rirb.rp, wp); in snd_hdac_bus_update_rirb()
210 snd_hdac_bus_queue_event(bus, res, res_ex); in snd_hdac_bus_update_rirb()
212 bus->rirb.res[addr] = res; in snd_hdac_bus_update_rirb()
217 res, res_ex, bus->last_cmd[addr]); in snd_hdac_bus_update_rirb()
232 unsigned int *res) in snd_hdac_bus_get_response() argument
242 if (res) in snd_hdac_bus_get_response()
243 *res = bus->rirb.res[addr]; /* the last value */ in snd_hdac_bus_get_response()
Dhdac_stream.c241 struct hdac_stream *res = NULL; in snd_hdac_stream_assign() local
253 res = azx_dev; in snd_hdac_stream_assign()
256 if (!res || bus->reverse_assign) in snd_hdac_stream_assign()
257 res = azx_dev; in snd_hdac_stream_assign()
259 if (res) { in snd_hdac_stream_assign()
261 res->opened = 1; in snd_hdac_stream_assign()
262 res->running = 0; in snd_hdac_stream_assign()
263 res->assigned_key = key; in snd_hdac_stream_assign()
264 res->substream = substream; in snd_hdac_stream_assign()
267 return res; in snd_hdac_stream_assign()
/sound/pci/lola/
Dlola.h339 unsigned int res, res_ex; /* last read values */ member
460 #define LOLA_AFG_MIXER_WIDGET_PRESENT(res) ((res & (1 << 21)) != 0) argument
461 #define LOLA_AFG_CLOCK_WIDGET_PRESENT(res) ((res & (1 << 20)) != 0) argument
462 #define LOLA_AFG_INPUT_PIN_COUNT(res) ((res >> 10) & 0x2ff) argument
463 #define LOLA_AFG_OUTPUT_PIN_COUNT(res) ((res) & 0x2ff) argument
466 #define LOLA_AMP_MUTE_CAPABLE(res) ((res & (1 << 31)) != 0) argument
467 #define LOLA_AMP_STEP_SIZE(res) ((res >> 24) & 0x7f) argument
468 #define LOLA_AMP_NUM_STEPS(res) ((res >> 12) & 0x3ff) argument
469 #define LOLA_AMP_OFFSET(res) ((res) & 0x3ff) argument
482 #define LOLA_MIXER_SRC_INPUT_PLAY_SEPARATION(res) ((res >> 2) & 0x1f) argument
[all …]
Dlola_clock.c216 unsigned int res; in lola_enable_clock_events() local
222 0, &res, NULL); in lola_enable_clock_events()
225 if (res) { in lola_enable_clock_events()
227 res); in lola_enable_clock_events()
235 unsigned int res; in lola_set_clock_index() local
241 0, &res, NULL); in lola_set_clock_index()
244 if (res) { in lola_set_clock_index()
245 dev_warn(chip->card->dev, "error in set_clock %d\n", res); in lola_set_clock_index()
/sound/soc/blackfin/
Dbf6xx-sport.c271 struct resource *res; in sport_get_resource() local
279 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sport_get_resource()
280 if (!res) { in sport_get_resource()
284 sport->tx_regs = (struct sport_register *)res->start; in sport_get_resource()
286 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in sport_get_resource()
287 if (!res) { in sport_get_resource()
291 sport->rx_regs = (struct sport_register *)res->start; in sport_get_resource()
293 res = platform_get_resource(pdev, IORESOURCE_DMA, 0); in sport_get_resource()
294 if (!res) { in sport_get_resource()
298 sport->tx_dma_chan = res->start; in sport_get_resource()
[all …]
/sound/soc/
Dsoc-devres.c17 static void devm_component_release(struct device *dev, void *res) in devm_component_release() argument
19 snd_soc_unregister_component(*(struct device **)res); in devm_component_release()
55 static void devm_platform_release(struct device *dev, void *res) in devm_platform_release() argument
57 snd_soc_unregister_platform(*(struct device **)res); in devm_platform_release()
90 static void devm_card_release(struct device *dev, void *res) in devm_card_release() argument
92 snd_soc_unregister_card(*(struct snd_soc_card **)res); in devm_card_release()
126 static void devm_dmaengine_pcm_release(struct device *dev, void *res) in devm_dmaengine_pcm_release() argument
128 snd_dmaengine_pcm_unregister(*(struct device **)res); in devm_dmaengine_pcm_release()
/sound/pci/hda/
Dhda_hwdep.c36 u32 verb, res; in verb_write_ioctl() local
40 res = snd_hda_codec_read(codec, verb >> 24, 0, in verb_write_ioctl()
42 if (put_user(res, &arg->res)) in verb_write_ioctl()
50 u32 verb, res; in get_wcap_ioctl() local
54 res = get_wcaps(codec, verb >> 24); in get_wcap_ioctl()
55 if (put_user(res, &arg->res)) in get_wcap_ioctl()
/sound/isa/gus/
Dgus_io.c122 unsigned int res; in __snd_gf1_read_addr() local
124 res = ((unsigned int) __snd_gf1_look16(gus, reg | 0x80) << 11) & 0xfff800; in __snd_gf1_read_addr()
125 res |= ((unsigned int) __snd_gf1_look16(gus, (reg + 1) | 0x80) >> 5) & 0x0007ff; in __snd_gf1_read_addr()
127 res |= (unsigned int) __snd_gf1_look8(gus, SNDRV_GF1_VB_UPPER_ADDRESS | 0x80) << 26; in __snd_gf1_read_addr()
129 res = ((res << 1) & 0xffffffe0) | (res & 0x0000000f); in __snd_gf1_read_addr()
131 res = ((res & 0x001ffff0) << 1) | (res & 0x00c0000f); in __snd_gf1_read_addr()
132 return res; in __snd_gf1_read_addr()
216 unsigned char res; in snd_gf1_i_look8() local
219 res = __snd_gf1_look8(gus, reg); in snd_gf1_i_look8()
221 return res; in snd_gf1_i_look8()
[all …]
Dinterwave.c181 unsigned char res; in snd_interwave_i2c_getclockline() local
183 res = inb(port) & 1; in snd_interwave_i2c_getclockline()
185 printk(KERN_DEBUG "i2c_getclockline - 0x%lx -> %i\n", port, res); in snd_interwave_i2c_getclockline()
187 return res; in snd_interwave_i2c_getclockline()
193 unsigned char res; in snd_interwave_i2c_getdataline() local
197 res = (inb(port) & 2) >> 1; in snd_interwave_i2c_getdataline()
199 printk(KERN_DEBUG "i2c_getdataline - 0x%lx -> %i\n", port, res); in snd_interwave_i2c_getdataline()
201 return res; in snd_interwave_i2c_getdataline()
864 int res; in snd_interwave_pnp_detect() local
873 res = snd_interwave_card_new(&pcard->card->dev, dev, &card); in snd_interwave_pnp_detect()
[all …]
/sound/hda/ext/
Dhdac_ext_stream.c254 struct hdac_ext_stream *res = NULL; in hdac_ext_link_stream_assign() local
272 res = hstream; in hdac_ext_link_stream_assign()
278 res = hstream; in hdac_ext_link_stream_assign()
282 if (res) { in hdac_ext_link_stream_assign()
284 res->link_locked = 1; in hdac_ext_link_stream_assign()
285 res->link_substream = substream; in hdac_ext_link_stream_assign()
288 return res; in hdac_ext_link_stream_assign()
295 struct hdac_ext_stream *res = NULL; in hdac_ext_host_stream_assign() local
314 res = hstream; in hdac_ext_host_stream_assign()
318 if (res) { in hdac_ext_host_stream_assign()
[all …]
/sound/core/oss/
Dpcm_oss.c1632 long res; in snd_pcm_oss_sync1() local
1659 res = schedule_timeout(10 * HZ); in snd_pcm_oss_sync1()
1664 if (res == 0) { in snd_pcm_oss_sync1()
2047 static int snd_pcm_oss_get_caps1(struct snd_pcm_substream *substream, int res) in snd_pcm_oss_get_caps1() argument
2051 res &= ~DSP_CAP_DUPLEX; in snd_pcm_oss_get_caps1()
2052 return res; in snd_pcm_oss_get_caps1()
2057 res |= DSP_CAP_MULTI; in snd_pcm_oss_get_caps1()
2065 res &= ~DSP_CAP_REALTIME; in snd_pcm_oss_get_caps1()
2068 return res; in snd_pcm_oss_get_caps1()
2626 int res; in snd_pcm_oss_ioctl() local
[all …]
Drate.c186 snd_pcm_sframes_t res; in rate_src_frames() local
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames()
212 data->old_dst_frames = res; in rate_src_frames()
213 return res; in rate_src_frames()
219 snd_pcm_sframes_t res; in rate_dst_frames() local
227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
245 data->old_src_frames = res; in rate_dst_frames()
246 return res; in rate_dst_frames()
/sound/soc/sh/rcar/
Dgen.c29 phys_addr_t res[RSND_BASE_MAX]; member
136 return gen->res[reg_id]; in rsnd_gen_get_phy_addr()
151 struct resource *res; in _rsnd_gen_regmap_init() local
165 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); in _rsnd_gen_regmap_init()
166 if (!res) in _rsnd_gen_regmap_init()
167 res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id); in _rsnd_gen_regmap_init()
168 if (!res) in _rsnd_gen_regmap_init()
171 base = devm_ioremap_resource(dev, res); in _rsnd_gen_regmap_init()
182 gen->res[reg_id] = res->start; in _rsnd_gen_regmap_init()
/sound/soc/samsung/
Ds3c2412-i2s.c153 struct resource *res; in s3c2412_iis_dev_probe() local
161 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c2412_iis_dev_probe()
162 s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res); in s3c2412_iis_dev_probe()
166 s3c2412_i2s_pcm_stereo_out.addr = res->start + S3C2412_IISTXD; in s3c2412_iis_dev_probe()
168 s3c2412_i2s_pcm_stereo_in.addr = res->start + S3C2412_IISRXD; in s3c2412_iis_dev_probe()
/sound/core/
Dmisc.c44 void release_and_free_resource(struct resource *res) in release_and_free_resource() argument
46 if (res) { in release_and_free_resource()
47 release_resource(res); in release_and_free_resource()
48 kfree(res); in release_and_free_resource()
Dpcm_native.c807 int res; in snd_pcm_status_user() local
818 res = snd_pcm_status(substream, &status); in snd_pcm_status_user()
819 if (res < 0) in snd_pcm_status_user()
820 return res; in snd_pcm_status_user()
851 int res; in snd_pcm_channel_info_user() local
855 res = snd_pcm_channel_info(substream, &info); in snd_pcm_channel_info_user()
856 if (res < 0) in snd_pcm_channel_info_user()
857 return res; in snd_pcm_channel_info_user()
896 int res = 0, depth = 1; in snd_pcm_action_group() local
906 res = ops->pre_action(s, state); in snd_pcm_action_group()
[all …]
/sound/soc/omap/
Dmcbsp.c941 static int omap_st_add(struct omap_mcbsp *mcbsp, struct resource *res) in omap_st_add() argument
957 st_data->io_base_st = devm_ioremap(mcbsp->dev, res->start, in omap_st_add()
958 resource_size(res)); in omap_st_add()
977 struct resource *res; in omap_mcbsp_init() local
983 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu"); in omap_mcbsp_init()
984 if (!res) in omap_mcbsp_init()
985 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in omap_mcbsp_init()
987 mcbsp->io_base = devm_ioremap_resource(&pdev->dev, res); in omap_mcbsp_init()
991 mcbsp->phys_base = res->start; in omap_mcbsp_init()
992 mcbsp->reg_cache_size = resource_size(res); in omap_mcbsp_init()
[all …]
/sound/soc/fsl/
Dfsl_utils.c37 struct resource res; in fsl_asoc_get_dma_channel() local
59 ret = of_address_to_resource(dma_channel_np, 0, &res); in fsl_asoc_get_dma_channel()
65 (unsigned long long) res.start, dma_channel_np->name); in fsl_asoc_get_dma_channel()
Dimx-ssi.c512 struct resource *res; in imx_ssi_probe() local
542 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in imx_ssi_probe()
543 ssi->base = devm_ioremap_resource(&pdev->dev, res); in imx_ssi_probe()
563 ssi->dma_params_rx.addr = res->start + SSI_SRX0; in imx_ssi_probe()
564 ssi->dma_params_tx.addr = res->start + SSI_STX0; in imx_ssi_probe()
572 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "tx0"); in imx_ssi_probe()
573 if (res) { in imx_ssi_probe()
574 imx_pcm_dma_params_init_data(&ssi->filter_data_tx, res->start, in imx_ssi_probe()
578 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx0"); in imx_ssi_probe()
579 if (res) { in imx_ssi_probe()
[all …]
/sound/soc/qcom/
Dapq8016_sbc.c173 struct resource *res; in apq8016_sbc_platform_probe() local
189 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mic-iomux"); in apq8016_sbc_platform_probe()
190 data->mic_iomux = devm_ioremap_resource(dev, res); in apq8016_sbc_platform_probe()
194 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "spkr-iomux"); in apq8016_sbc_platform_probe()
195 data->spkr_iomux = devm_ioremap_resource(dev, res); in apq8016_sbc_platform_probe()
/sound/usb/
Dmixer.c267 if (!cval->res) in get_relative_value()
268 cval->res = 1; in get_relative_value()
272 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value()
274 return (val - cval->min) / cval->res; in get_relative_value()
281 if (!cval->res) in get_abs_value()
282 cval->res = 1; in get_abs_value()
283 val *= cval->res; in get_abs_value()
865 cval->res = 0x00e6; in volume_control_quirks()
877 cval->res = 0x0073; in volume_control_quirks()
884 cval->res = 0x0073; in volume_control_quirks()
[all …]
/sound/core/seq/
Dseq_prioq.c346 int res; in prioq_remove_match() local
362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
364 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
365 if (!res) in prioq_remove_match()
370 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
372 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
373 if (res) in prioq_remove_match()
/sound/pci/
Dvia82xx_modem.c570 unsigned int size, res; in calc_linear_pos() local
573 res = viadev->idx_table[idx].offset + size - count; in calc_linear_pos()
580 res = viadev->lastpos; in calc_linear_pos()
581 } else if (check_invalid_pos(viadev, res)) { in calc_linear_pos()
592 res = viadev->lastpos; in calc_linear_pos()
596 res = viadev->idx_table[idx].offset; in calc_linear_pos()
601 res = viadev->idx_table[idx].offset + size; in calc_linear_pos()
602 if (check_invalid_pos(viadev, res)) { in calc_linear_pos()
605 res = viadev->lastpos; in calc_linear_pos()
609 viadev->lastpos = res; /* remember the last position */ in calc_linear_pos()
[all …]

123456