Home
last modified time | relevance | path

Searched +full:convert +full:- +full:sample +full:- +full:format (Results 1 – 25 of 91) sorted by relevance

1234

/linux/Documentation/devicetree/bindings/sound/
H A Ddai-params.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/dai-params.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
15 convert-channels:
21 convert-sample-format:
22 description: Audio sample format used by DAI
25 - s8
26 - s16_le
[all …]
/linux/sound/core/oss/
H A Dmulaw.c2 * Mu-Law conversion Plug-In Interface
4 * Uros Bizjak <uros@kss-loka.si>
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #define SIGN_BIT (0x80) /* Sign bit for a u-law byte. */
31 #define NSEGS (8) /* Number of u-law segments. */
55 * linear2ulaw() - Convert a linear PCM value to u-law
58 * is biased by adding 33 which shifts the encoding range from (0 - 8158) to
59 * (33 - 8191). The result can be seen in the following encoding table:
62 * ------------------------ ---------------
75 * four bits wxyz. * The trailing bits (a - h) are ignored.
[all …]
/linux/tools/perf/util/
H A Ddata-convert-json.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include "data-convert.h"
31 #include <event-parse.h>
41 // Outputs a JSON-encoded string surrounded by quotes with characters escaped.
84 // Outputs a printf format string (with delimiter) as a JSON value.
86 static void output_json_format(FILE *out, bool comma, int depth, const char *format, ...) in output_json_format() argument
91 va_start(args, format); in output_json_format()
92 vfprintf(out, format, args); in output_json_format()
96 // Outputs a JSON key-value pair where the value is a string.
106 // Outputs a JSON key-value pair where the value is a printf format string.
[all …]
H A Ddata-convert-bt.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <babeltrace/ctf-writer/writer.h>
15 #include <babeltrace/ctf-writer/clock.h>
16 #include <babeltrace/ctf-writer/stream.h>
17 #include <babeltrace/ctf-writer/event.h>
18 #include <babeltrace/ctf-writer/event-types.h>
19 #include <babeltrace/ctf-writer/event-fields.h>
20 #include <babeltrace/ctf-ir/utils.h>
23 #include "data-convert.h"
36 #include "util/sample.h"
[all …]
H A Ds390-cpumsf.c1 // SPDX-License-Identifier: GPL-2.0
4 * Auxtrace support for s390 CPU-Measurement Sampling Facility
17 * see Documentation/perf.data-file-format.txt.
61 * record sample, the auxtrace queues will be processed. As auxtrace queues
72 * Each sampling-data entry in the auxiliary trace data generates a perf sample.
73 * This sample is filled
75 * etc. This sample is processed with perf_session__deliver_synth_event() to
80 * auxtrace_heap top. This is triggered by ordered_event->deliver().
95 * | - Those generated by perf record command (type number equal or higher
98 * | - Those generated by the kernel are handled by
[all …]
/linux/tools/perf/Documentation/
H A Dperf-data.txt1 perf-data(1)
5 ----
6 perf-data - Data file related processing
9 --------
14 -----------
18 --------
19 convert::
20 Converts perf data file into another format.
21 It's possible to set data-convert debug variable to get debug messages from conversion,
23 perf --debug data-convert data convert ...
[all …]
/linux/tools/perf/scripts/python/
H A Dgecko.py1 # gecko.py - Convert perf record output to Firefox's gecko profile format
2 # SPDX-License-Identifier: GPL-2.0
4 # The script converts perf.data to Gecko Profile Format,
9 # perf record -a -g -F 99 sleep 60
14 # perf script gecko -F 99 -a sleep 60
32 # Add the Perf-Trace-Util library to the Python path
34 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
48 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
53 PRODUCT = os.popen('uname -op').read().strip()
68 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-raw-vbi.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _raw-vbi:
19 signal, or to be added to a signal for output. The data format is
55 Raw VBI Format Negotiation
106 .. flat-table:: struct v4l2_vbi_format
107 :header-rows: 0
108 :stub-columns: 0
111 * - __u32
112 - ``sampling_rate``
113 - Samples per second, i. e. unit 1 Hz.
[all …]
/linux/sound/core/
H A Dpcm_misc.c2 * PCM Interface - misc routines
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #define SND_PCM_FORMAT_UNKNOWN (-1)
37 signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */
38 signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */
45 static bool valid_format(snd_pcm_format_t format) in valid_format() argument
47 return (INT)format >= 0 && (INT)format <= (INT)SNDRV_PCM_FORMAT_LAST; in valid_format()
52 .width = 8, .phys = 8, .le = -1, .signd = 1,
56 .width = 8, .phys = 8, .le = -1, .signd = 0,
108 .width = 32, .phys = 32, .le = 1, .signd = -1,
[all …]
/linux/arch/arm/boot/dts/cirrus/
H A Dep93xx-edb9302.dts1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
5 /dts-v1/;
9 #address-cells = <1>;
10 #size-cells = <1>;
27 compatible = "audio-graph-card2";
33 compatible = "gpio-leds";
34 led-0 {
37 linux,default-trigger = "heartbeat";
41 led-1 {
55 compatible = "cfi-flash";
[all …]
/linux/sound/hda/core/
H A Ddevice.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HD-audio codec core device
28 * snd_hdac_device_init - initialize the HD-audio codec base device
48 dev = &codec->dev; in snd_hdac_device_init()
50 dev->parent = bus->de in snd_hdac_device_init()
729 snd_hdac_format_normalize(snd_pcm_format_t format) snd_hdac_format_normalize() argument
761 snd_hdac_stream_format_bits(snd_pcm_format_t format,snd_pcm_subformat_t subformat,unsigned int maxbits) snd_hdac_stream_format_bits() argument
1001 snd_hdac_is_supported_format(struct hdac_device * codec,hda_nid_t nid,unsigned int format) snd_hdac_is_supported_format() argument
[all...]
/linux/Documentation/trace/rv/
H A Ddeterministic_automata.rst10 - *X* is the set of states;
11 - *E* is the finite set of events;
12 - x\ :subscript:`0` is the initial state;
13 - X\ :subscript:`m` (subset of *X*) is the set of marked (or final) states.
14 - *f* : *X* x *E* -> *X* $ is the transition function. It defines the state
22 - *X* = { ``preemptive``, ``non_preemptive``}
23 - *E* = { ``preempt_enable``, ``preempt_disable``, ``sched_waking``}
24 - x\ :subscript:`0` = ``preemptive``
25 - X\ :subscript:`m` = {``preemptive``}
26 - *f* =
[all …]
/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-ahb-audio.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include "dw-hdmi-audio.h"
24 #define DRIVER_NAME "dw-hdmi-ahb-audio"
86 * allocation bits. Note that we can't do channel remapping here -
89 * Mappings for alsa-lib pcm/surround*.conf files:
145 * Convert to hardware format: The userspace buffer contains IEC958 samples,
157 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_iec958()
158 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_iec958()
159 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_iec958()
162 u32 b, sample = *src++; in dw_hdmi_reformat_iec958() local
[all …]
/linux/Documentation/sound/designs/
H A Doss-emulation.rst2 Notes on Kernel OSS-Emulation
13 as add-on kernel modules, snd-pcm-oss, snd-mixer-oss and snd-seq-oss.
18 is called. The alias is defined ``sound-service-x-y``, where x and y are
22 Only necessary step for auto-loading of OSS modules is to define the
25 alias sound-slot-0 snd-emu10k1
27 As the second card, define ``sound-slot-1`` as well.
29 ``alias sound-slot-0 snd-card-0`` doesn't work any more like the old
38 after the corresponding OSS-emulation module is loaded. Don't worry
79 snd-pcm-oss and snd-rawmidi. In the case of PCM, the following
80 options are available for snd-pcm-oss:
[all …]
/linux/drivers/comedi/drivers/ni_routing/
H A DREADME15 increasingly hard to find and the NI-MHDDK (comments in in example code).
22 varying purposes, but the end-user had to gain a knowledge of register
26 programming manuals and vendor-provided documentation are _not_ even
27 close to the same names that are in the end-user documentation.
32 NIDAQmx(-base) c-libraries, nor with register level programming, _nor_
34 information is through the proprietary NI-MAX software, which currently only
36 cannot be exported from NI-MAX, except by screenshot.
41 of signal routing capabilities of National Instruments data-acquisition and
42 control hardware. In order to facilitate the transfer of register-level
49 documentation, (b) NI's user-level code, (c) the information as provided by
[all …]
/linux/Documentation/networking/device_drivers/ethernet/dlink/
H A Ddl2k.rst1 .. SPDX-License-Identifier: GPL-2.0
4 D-Link DL2000-based Gigabit Ethernet Adapter Installation
11 - Compatibility List
12 - Quick Install
13 - Compiling the Driver
14 - Installing the Driver
15 - Option parameter
16 - Configuration Script Sample
17 - Troubleshooting
25 - D-Link DGE-550T Gigabit Ethernet Adapter.
[all …]
/linux/drivers/platform/x86/amd/pmf/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
20 /* PMF-SMU communication registers */
46 /* override Metrics Table sample size time (in ms) */
49 MODULE_PARM_DESC(metrics_table_loop_ms, "Metrics Table sample size time (default = 1000ms)");
66 if ((pmf->amt_enabled || pmf->cnqf_enabled) && is_pprof_balanced(pmf)) in amd_pmf_pwr_src_notify_call()
81 struct amd_pmf_dev *dev = seq->private; in current_power_limits_show()
105 debugfs_remove_recursive(dev->dbgfs_dir); in amd_pmf_dbgfs_unregister()
110 dev->dbgfs_dir = debugfs_create_dir("amd_pmf", NULL); in amd_pmf_dbgfs_register()
111 if (dev->pmf_if_version == PMF_IF_V1) in amd_pmf_dbgfs_register()
[all …]
/linux/sound/ppc/
H A Dsnd_ps3.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/dma-mapping.h>
129 } while (!done && --retries); in snd_ps3_verify_dma_stop()
145 * NOTE: caller should reset card->running before call.
146 * If not, the interrupt handler will re-start DMA,
158 * 5.7ms is from 16bit/sample in snd_ps3_wait_for_dma_stop()
[all...]
/linux/include/linux/comedi/
H A Dcomedidev.h1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * header file for kernel-only structures, variables, and constants
6 * COMEDI - Linux Control and Measurement Device Interface
7 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
13 #include <linux/dma-mapping.h>
28 * struct comedi_subdevice - Working data for a COMEDI subdevice
34 * the low-level driver.)
36 * low-level driver.)
38 * the COMEDI core and user application. (Initialized by the low-level
42 * low-level driver, or changed from 0 to 1 during post-configuration.)
[all …]
/linux/sound/pci/asihpi/
H A Dhpi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com>
14 The HPI is a low-level hardware abstraction layer to all
17 (C) Copyright AudioScience Inc. 1998-2010
31 /** Audio format types
37 /** 8-bit unsigned PCM. Windows equivalent is WAVE_FORMAT_PCM. */
39 /** 16-bit signed PCM. Windows equivalent is WAVE_FORMAT_PCM. */
41 /** MPEG-1 Layer-1. */
43 /** MPEG-1 Layer-2.
67 <tr><td>256<td>-<td>X
[all …]
/linux/Documentation/userspace-api/
H A Ddma-buf-alloc-exchange.rst1 .. SPDX-License-Identifier: GPL-2.0
2 .. Copyright 2021-2023 Collabora Ltd.
9 support for sharing pixel-buffer allocations between processes, devices, and
12 approach this sharing for two-dimensional image data.
25 Conceptually a two-dimensional array of pixels. The pixels may be stored
27 format and modifier (implicit or explicit).
30 A span along a single y-axis value, e.g. from co-ordinates (0,100) to
37 A span along a single x-axis value, e.g. from co-ordinates (100,0) to
46 A two-dimensional array of some or all of an image's color and alpha
57 planes or memory buffers depending on format and modifier.
[all …]
/linux/sound/soc/generic/
H A Dsimple-card-utils.c1 // SPDX-License-Identifier: GPL-2.0
3 // simple-card-utils.c
7 #include <dt-bindings/sound/audio-graph.h>
28 int val = -EINVAL; in simple_util_get_sample_fmt()
42 if (!strcmp(data->convert_sample_format, in simple_util_get_sample_fmt()
78 /* sampling rate convert */ in simple_util_parse_convert()
79 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in simple_util_parse_convert()
80 of_property_read_u32(np, prop, &data->convert_rate); in simple_util_parse_convert()
83 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-channels"); in simple_util_parse_convert()
84 of_property_read_u32(np, prop, &data->convert_channels); in simple_util_parse_convert()
[all …]
/linux/drivers/media/platform/microchip/
H A Dmicrochip-isc-base.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2019 Microchip Technology, Inc.
21 #include <linux/atmel-isc-media.h>
23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-event.h>
26 #include <media/v4l2-image-sizes.h>
27 #include <media/v4l2-ioctl.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-subdev.h>
[all …]
/linux/tools/perf/tests/
H A Dcode-reading.c1 // SPDX-License-Identifier: GPL-2.0
21 #include "parse-events.h"
32 #include "util/synthetic-events.h"
52 struct rb_node **node = &tested_sections->rb_node; in tested_code_insert_or_exists()
61 cmp = strcmp(path, data->path); in tested_code_insert_or_exists()
63 if (addr < data->addr) in tested_code_insert_or_exists()
64 cmp = -1; in tested_code_insert_or_exists()
65 else if (addr > data->addr) in tested_code_insert_or_exists()
72 node = &(*node)->rb_left; in tested_code_insert_or_exists()
74 node = &(*node)->rb_right; in tested_code_insert_or_exists()
[all …]
/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py2 # SPDX-License-Identifier: GPL-2.0
76 if str2.find(char) != -1:
85 if str2.find(char) == -1:
97 if firstnum[-1] == "/":
98 firstnum = firstnum[:-1]
128 while len(flag_str) > 0 and (flag_str[0] == "+" or flag_str[0] == "-"):
131 elif flag_str[0] == "-":
139 and flag_str[flag_len] != "-"
257 parse_extract_field( block_str, fieldstr, scanfmt, convert, masked=False, defval=None ) global() argument
430 class sample(nla): global() class in ovsactions
[all...]

1234