Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 184) sorted by relevance

12345678

/sound/soc/codecs/
Dwcd-clsh-v2.c14 int mode; member
127 int mode) in wcd_clsh_set_buck_mode() argument
130 if (mode == CLS_H_HIFI) in wcd_clsh_set_buck_mode()
141 int mode) in wcd_clsh_set_flyback_mode() argument
144 if (mode == CLS_H_HIFI) in wcd_clsh_set_flyback_mode()
155 int mode, in wcd_clsh_buck_ctrl() argument
174 int mode, in wcd_clsh_flyback_ctrl() argument
195 static void wcd_clsh_set_gain_path(struct wcd_clsh_ctrl *ctrl, int mode) in wcd_clsh_set_gain_path() argument
200 switch (mode) { in wcd_clsh_set_gain_path()
223 int mode) in wcd_clsh_set_hph_mode() argument
[all …]
Dwl1273.c24 enum wl1273_mode mode; member
34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local
41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode()
45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode()
48 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode()
51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode()
54 mode |= WL1273_IS2_RATE_22_05K; in snd_wl1273_fm_set_i2s_mode()
57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode()
60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode()
63 mode |= WL1273_IS2_RATE_11_025; in snd_wl1273_fm_set_i2s_mode()
[all …]
Des7241.c50 const struct es7241_clock_mode *mode, in es7241_set_slave_mode() argument
58 for (j = 0; j < mode->slv_mfs_num; j++) { in es7241_set_slave_mode()
59 if (mode->slv_mfs[j] == mfs) in es7241_set_slave_mode()
71 const struct es7241_clock_mode *mode, in es7241_set_master_mode() argument
78 if (mfs && mfs != mode->mst_mfs) in es7241_set_master_mode()
81 es7241_set_mode(priv, mode->mst_m0, mode->mst_m1); in es7241_set_master_mode()
96 const struct es7241_clock_mode *mode = &priv->chip->modes[i]; in es7241_hw_params() local
98 if (rate < mode->rate_min || rate >= mode->rate_max) in es7241_hw_params()
102 return es7241_set_slave_mode(priv, mode, mfs); in es7241_hw_params()
104 return es7241_set_master_mode(priv, mode, mfs); in es7241_hw_params()
Dtwl4030.c178 int mode; in twl4030_codec_enable() local
184 mode = twl4030_audio_enable_resource(TWL4030_AUDIO_RES_POWER); in twl4030_codec_enable()
186 mode = twl4030_audio_disable_resource(TWL4030_AUDIO_RES_POWER); in twl4030_codec_enable()
188 if (mode >= 0) in twl4030_codec_enable()
1695 u8 mode, old_mode, format, old_format; in twl4030_hw_params() local
1700 mode = twl4030_read(component, TWL4030_REG_CODEC_MODE); in twl4030_hw_params()
1704 if ((mode & TWL4030_OPTION_1) && in twl4030_hw_params()
1718 mode = old_mode & ~TWL4030_APLL_RATE; in twl4030_hw_params()
1722 mode |= TWL4030_APLL_RATE_8000; in twl4030_hw_params()
1725 mode |= TWL4030_APLL_RATE_11025; in twl4030_hw_params()
[all …]
/sound/isa/sb/
Dsb16_main.c48 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) && in snd_sb16_csp_playback_prepare()
55 } else if ((csp->mode & SNDRV_SB_CSP_MODE_QSOUND) && (csp->q_enabled)) { in snd_sb16_csp_playback_prepare()
74 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
96 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) && in snd_sb16_csp_capture_prepare()
112 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare()
148 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) { in snd_sb16_csp_playback_open()
179 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) { in snd_sb16_csp_capture_open()
219 if (chip->mode & (channel == SNDRV_PCM_STREAM_PLAYBACK ? SB_MODE_PLAYBACK_16 : SB_MODE_CAPTURE_16)) in snd_sb16_setup_rate()
223 if (!(chip->mode & SB_RATE_LOCK)) { in snd_sb16_setup_rate()
264 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_prepare()
[all …]
Dsb8_main.c104 if (chip->mode & SB_MODE_CAPTURE_16) in snd_sb8_playback_prepare()
107 chip->mode |= SB_MODE_PLAYBACK_16; in snd_sb8_playback_prepare()
135 if (chip->mode & SB_MODE_PLAYBACK_16) { in snd_sb8_playback_prepare()
140 chip->mode |= SB_MODE_PLAYBACK_8; in snd_sb8_playback_prepare()
179 if (chip->mode & SB_MODE_PLAYBACK_16) in snd_sb8_playback_prepare()
254 if (chip->mode & SB_MODE_PLAYBACK_16) in snd_sb8_capture_prepare()
257 chip->mode |= SB_MODE_CAPTURE_16; in snd_sb8_capture_prepare()
286 if (chip->mode & SB_MODE_CAPTURE_16) { in snd_sb8_capture_prepare()
291 chip->mode |= SB_MODE_CAPTURE_8; in snd_sb8_capture_prepare()
316 if (chip->mode & SB_MODE_PLAYBACK_16) in snd_sb8_capture_prepare()
[all …]
/sound/firewire/dice/
Ddice-extension.c61 unsigned int mode, in read_stream_entries() argument
77 pcm_channels[i][mode] = be32_to_cpu(reg[0]); in read_stream_entries()
89 int mode; in detect_stream_formats() local
92 for (mode = 0; mode < SND_DICE_RATE_MODE_COUNT; ++mode) { in detect_stream_formats()
99 if (mode == 2) { in detect_stream_formats()
101 } else if (mode == 1) { in detect_stream_formats()
110 base_offset = 0x2000 * mode + 0x1000; in detect_stream_formats()
121 stream_count, mode, in detect_stream_formats()
131 mode, dice->rx_pcm_chs, in detect_stream_formats()
Ddice-pcm.c26 enum snd_dice_rate_mode mode; in dice_rate_constraint() local
36 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_rate_constraint()
39 if (!snd_interval_test(c, pcm_channels[mode])) in dice_rate_constraint()
64 enum snd_dice_rate_mode mode; in dice_channels_constraint() local
74 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_channels_constraint()
80 channels.min = min(channels.min, pcm_channels[mode]); in dice_channels_constraint()
81 channels.max = max(channels.max, pcm_channels[mode]); in dice_channels_constraint()
105 enum snd_dice_rate_mode mode; in limit_channels_and_rates() local
109 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in limit_channels_and_rates()
113 channels = pcm_channels[mode]; in limit_channels_and_rates()
Ddice-stream.c33 enum snd_dice_rate_mode *mode) in snd_dice_stream_get_rate_mode() argument
53 *mode = modes[i]; in snd_dice_stream_get_rate_mode()
214 enum snd_dice_rate_mode mode; in keep_dual_resources() local
218 err = snd_dice_stream_get_rate_mode(dice, rate, &mode); in keep_dual_resources()
235 pcm_cache = dice->tx_pcm_chs[i][mode]; in keep_dual_resources()
244 pcm_cache = dice->rx_pcm_chs[i][mode]; in keep_dual_resources()
397 enum snd_dice_rate_mode mode; in snd_dice_stream_start_duplex() local
430 err = snd_dice_stream_get_rate_mode(dice, rate, &mode); in snd_dice_stream_start_duplex()
434 if (dice->tx_pcm_chs[i][mode] > 0 && in snd_dice_stream_start_duplex()
437 if (dice->rx_pcm_chs[i][mode] > 0 && in snd_dice_stream_start_duplex()
[all …]
/sound/firewire/motu/
Dmotu-proc.c47 unsigned int mode; in proc_read_format() local
56 mode = i >> 1; in proc_read_format()
63 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
64 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
69 mode = i >> 1; in proc_read_format()
76 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
77 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
105 root->mode = S_IFDIR | 0555; in snd_motu_proc_init()
Dmotu-pcm.c23 unsigned int i, pcm_channels, rate, mode; in motu_rate_constraint() local
27 mode = i / 2; in motu_rate_constraint()
29 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_rate_constraint()
30 formats->differed_part_pcm_chunks[mode]; in motu_rate_constraint()
53 unsigned int i, pcm_channels, rate, mode; in motu_channels_constraint() local
57 mode = i / 2; in motu_channels_constraint()
62 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_channels_constraint()
63 formats->differed_part_pcm_chunks[mode]; in motu_channels_constraint()
76 unsigned int i, pcm_channels, rate, mode; in limit_channels_and_rates() local
83 mode = i / 2; in limit_channels_and_rates()
[all …]
/sound/firewire/fireworks/
Dfireworks_pcm.c49 int snd_efw_get_multiplier_mode(unsigned int sampling_rate, unsigned int *mode) in snd_efw_get_multiplier_mode() argument
55 *mode = get_multiplier_mode_with_index(i); in snd_efw_get_multiplier_mode()
74 unsigned int i, mode; in hw_rule_rate() local
77 mode = get_multiplier_mode_with_index(i); in hw_rule_rate()
78 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate()
99 unsigned int i, mode; in hw_rule_channels() local
102 mode = get_multiplier_mode_with_index(i); in hw_rule_channels()
106 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
107 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
116 unsigned int i, mode; in limit_channels() local
[all …]
/sound/firewire/digi00x/
Ddigi00x-proc.c11 enum snd_dg00x_optical_mode *mode) in get_optical_iface_mode() argument
20 *mode = be32_to_cpu(data) & 0x01; in get_optical_iface_mode()
39 enum snd_dg00x_optical_mode mode; in proc_read_clock() local
44 if (get_optical_iface_mode(dg00x, &mode) < 0) in proc_read_clock()
51 snd_iprintf(buf, "Optical mode: %s\n", optical_name[mode]); in proc_read_clock()
81 root->mode = S_IFDIR | 0555; in snd_dg00x_proc_init()
/sound/drivers/mpu401/
Dmpu401_uart.c85 if (test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode) && in uart_interrupt_tx()
86 test_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode)) { in uart_interrupt_tx()
99 if (test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) in _snd_mpu401_uart_interrupt()
276 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) { in snd_mpu401_uart_input_open()
281 set_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); in snd_mpu401_uart_input_open()
298 if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) { in snd_mpu401_uart_output_open()
303 set_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); in snd_mpu401_uart_output_open()
318 clear_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); in snd_mpu401_uart_input_close()
320 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) in snd_mpu401_uart_input_close()
335 clear_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); in snd_mpu401_uart_output_close()
[all …]
/sound/core/seq/oss/
Dseq_oss_device.h130 #define is_read_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_READ) argument
131 #define is_write_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_WRITE) argument
132 #define is_nonblock_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_NONBLOCK) argument
/sound/isa/wavefront/
Dwavefront_midi.c146 if ((midi->mode[midi->output_mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write()
162 midi->mode[midi->output_mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write()
193 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write()
217 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write()
246 midi->mode[mpu] |= MPU401_MODE_INPUT; in snd_wavefront_midi_input_open()
270 midi->mode[mpu] |= MPU401_MODE_OUTPUT; in snd_wavefront_midi_output_open()
294 midi->mode[mpu] &= ~MPU401_MODE_INPUT; in snd_wavefront_midi_input_close()
317 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT; in snd_wavefront_midi_output_close()
342 midi->mode[mpu] |= MPU401_MODE_INPUT_TRIGGER; in snd_wavefront_midi_input_trigger()
344 midi->mode[mpu] &= ~MPU401_MODE_INPUT_TRIGGER; in snd_wavefront_midi_input_trigger()
[all …]
/sound/soc/meson/
Daxg-spdifin.c78 unsigned int stat, mode, rate = 0; in axg_spdifin_get_rate() local
81 mode = FIELD_GET(SPDIFIN_STAT0_MODE, stat); in axg_spdifin_get_rate()
89 mode < SPDIFIN_MODE_NUM) in axg_spdifin_get_rate()
90 rate = priv->conf->mode_rates[mode]; in axg_spdifin_get_rate()
115 static void axg_spdifin_write_mode_param(struct regmap *map, int mode, in axg_spdifin_write_mode_param() argument
121 uint64_t offset = mode; in axg_spdifin_write_mode_param()
133 static void axg_spdifin_write_timer(struct regmap *map, int mode, in axg_spdifin_write_timer() argument
136 axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_TIMER_PER_REG, in axg_spdifin_write_timer()
140 static void axg_spdifin_write_threshold(struct regmap *map, int mode, in axg_spdifin_write_threshold() argument
143 axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_THRES_PER_REG, in axg_spdifin_write_threshold()
[all …]
/sound/firewire/fireface/
Dff-pcm.c24 enum snd_ff_stream_mode mode; in hw_rule_rate() local
27 err = snd_ff_stream_get_multiplier_mode(i, &mode); in hw_rule_rate()
31 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate()
55 enum snd_ff_stream_mode mode; in hw_rule_channels() local
58 err = snd_ff_stream_get_multiplier_mode(i, &mode); in hw_rule_channels()
65 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
66 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
84 enum snd_ff_stream_mode mode; in limit_channels_and_rates() local
87 err = snd_ff_stream_get_multiplier_mode(i, &mode); in limit_channels_and_rates()
91 channels = pcm_channels[mode]; in limit_channels_and_rates()
[all …]
/sound/soc/fsl/
Dmpc5200_psc_i2s.c43 u32 mode; in psc_i2s_hw_params() local
53 mode = MPC52xx_PSC_SICR_SIM_CODEC_8; in psc_i2s_hw_params()
56 mode = MPC52xx_PSC_SICR_SIM_CODEC_16; in psc_i2s_hw_params()
59 mode = MPC52xx_PSC_SICR_SIM_CODEC_24; in psc_i2s_hw_params()
62 mode = MPC52xx_PSC_SICR_SIM_CODEC_32; in psc_i2s_hw_params()
68 out_be32(&psc_dma->psc_regs->sicr, psc_dma->sicr | mode); in psc_i2s_hw_params()
/sound/synth/emux/
Demux_hwdep.c58 if (info.mode < 0 || info.mode >= EMUX_MD_END) in snd_emux_hwdep_misc_mode()
60 info.mode = array_index_nospec(info.mode, EMUX_MD_END); in snd_emux_hwdep_misc_mode()
64 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
68 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
Demux_effect.c124 effect_get_offset(struct snd_midi_channel *chan, int lo, int hi, int mode) in effect_get_offset() argument
134 if (!(mode & SNDRV_SFNT_SAMPLE_8BITS)) in effect_get_offset()
145 int mode; in snd_emux_send_effect_oss() local
148 mode = EMUX_FX_FLAG_OFF; in snd_emux_send_effect_oss()
150 mode = EMUX_FX_FLAG_ADD; in snd_emux_send_effect_oss()
152 mode = EMUX_FX_FLAG_SET; in snd_emux_send_effect_oss()
155 snd_emux_send_effect(port, chan, type, val, mode); in snd_emux_send_effect_oss()
164 int type, int val, int mode) in snd_emux_send_effect() argument
181 fx->flag[type] = mode; in snd_emux_send_effect()
/sound/pci/echoaudio/
Dechoaudio_3g.c102 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode() argument
111 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode()
115 err = dsp_set_digital_mode(chip, mode); in set_digital_mode()
120 if (err >= 0 && previous_mode != mode && in set_digital_mode()
121 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { in set_digital_mode()
377 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode() argument
384 switch (mode) { in dsp_set_digital_mode()
396 "Digital mode not supported: %d\n", mode); in dsp_set_digital_mode()
412 switch (mode) { in dsp_set_digital_mode()
429 chip->digital_mode = mode; in dsp_set_digital_mode()
Dechoaudio_gml.c109 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode() argument
121 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode()
125 err = dsp_set_digital_mode(chip, mode); in set_digital_mode()
130 if (err >= 0 && previous_mode != mode && in set_digital_mode()
131 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { in set_digital_mode()
/sound/soc/bcm/
Dbcm2835-i2s.c339 unsigned int mode, format; in bcm2835_i2s_hw_params() local
358 mode = 0; in bcm2835_i2s_hw_params()
534 mode |= BCM2835_I2S_FTXP | BCM2835_I2S_FRXP; in bcm2835_i2s_hw_params()
537 mode |= BCM2835_I2S_FLEN(frame_length - 1); in bcm2835_i2s_hw_params()
538 mode |= BCM2835_I2S_FSLEN(framesync_length); in bcm2835_i2s_hw_params()
542 mode |= BCM2835_I2S_CLKM; in bcm2835_i2s_hw_params()
546 mode |= BCM2835_I2S_FSM; in bcm2835_i2s_hw_params()
552 mode |= BCM2835_I2S_CLKI; in bcm2835_i2s_hw_params()
566 mode |= BCM2835_I2S_FSI; in bcm2835_i2s_hw_params()
571 mode |= BCM2835_I2S_FSI; in bcm2835_i2s_hw_params()
[all …]
/sound/isa/msnd/
Dmsnd_midi.c31 unsigned long mode; /* MSNDMIDI_MODE_XXXX */ member
54 set_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_open()
64 clear_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); in snd_msndmidi_input_close()
93 &mpu->mode)) in snd_msndmidi_input_trigger()
96 clear_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode); in snd_msndmidi_input_trigger()
119 if (test_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) in snd_msndmidi_input_read()

12345678