Lines Matching +full:num +full:- +full:channels

1 // SPDX-License-Identifier: GPL-2.0-only
3 * bebob_focusrite.c - a part of driver for BeBoB based devices
5 * Copyright (c) 2013-2014 Takashi Sakamoto
68 err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in saffire_read_block()
86 err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, in saffire_read_quad()
102 return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, in saffire_write_quad()
124 [SAFFIREPRO_CLOCK_SOURCE_SKIP] = -1, /* not supported */
126 [SAFFIREPRO_CLOCK_SOURCE_ADAT1] = -1, /* not supported */
127 [SAFFIREPRO_CLOCK_SOURCE_ADAT2] = -1, /* not supported */
133 [SAFFIREPRO_CLOCK_SOURCE_SKIP] = -1, /* not supported */
151 err = -EIO; in saffirepro_both_clk_freq_get()
167 return -EINVAL; in saffirepro_both_clk_freq_set()
188 if (bebob->spec->clock->types == saffirepro_10_clk_src_types) in saffirepro_both_clk_src_get()
196 err = -EIO; in saffirepro_both_clk_src_get()
234 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in saffire_meter_get()
235 unsigned int channels; in saffire_meter_get() local
239 if (spec->labels == saffire_le_meter_labels) in saffire_meter_get()
244 channels = spec->num * 2; in saffire_meter_get()
245 if (size < channels * sizeof(u32)) in saffire_meter_get()
246 return -EIO; in saffire_meter_get()
249 if (err >= 0 && spec->labels == saffire_le_meter_labels) { in saffire_meter_get()
271 .num = ARRAY_SIZE(saffirepro_26_clk_src_types),
282 .num = ARRAY_SIZE(saffirepro_10_clk_src_types),
297 .num = ARRAY_SIZE(saffire_both_clk_src_types),
303 .num = ARRAY_SIZE(saffire_le_meter_labels),
314 .num = ARRAY_SIZE(saffire_meter_labels),