Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 68) sorted by relevance

123

/sound/oss/
Dsb_audio.c129 if (!devc->fullduplex || devc->bits == AFMT_S16_LE) in sb_set_output_parms()
149 if (!devc->fullduplex || devc->bits != AFMT_S16_LE) in sb_set_input_parms()
226 static void sb1_audio_trigger(int dev, int bits) in sb1_audio_trigger() argument
230 bits &= devc->irq_mode; in sb1_audio_trigger()
232 if (!bits) in sb1_audio_trigger()
249 devc->trigger_bits = bits; in sb1_audio_trigger()
313 static unsigned int sb1_audio_set_bits(int dev, unsigned int bits) in sb1_audio_set_bits() argument
316 return devc->bits = 8; in sb1_audio_set_bits()
408 static void sb20_audio_trigger(int dev, int bits) in sb20_audio_trigger() argument
411 bits &= devc->irq_mode; in sb20_audio_trigger()
[all …]
Dsb_common.c280 int bits; in sb16_set_dma_hw() local
287 bits = (1 << devc->dma8); in sb16_set_dma_hw()
290 bits |= (1 << devc->dma16); in sb16_set_dma_hw()
292 sb_setmixer(devc, DMA_NR, bits); in sb16_set_dma_hw()
301 unsigned char bits = sb_getmixer(devc, 0x84) & ~0x06; in sb16_set_mpu_port() local
306 sb_setmixer(devc, 0x84, bits | 0x04); in sb16_set_mpu_port()
310 sb_setmixer(devc, 0x84, bits | 0x00); in sb16_set_mpu_port()
314 sb_setmixer(devc, 0x84, bits | 0x02); /* Disable MPU */ in sb16_set_mpu_port()
347 unsigned char bits = 0; in relocate_Jazz16() local
356 bits = 1; in relocate_Jazz16()
[all …]
Dpas2_mixer.c77 mixer_output(int right_vol, int left_vol, int div, int bits, in mixer_output() argument
84 if (bits & 0x10) in mixer_output()
89 if (bits == 0x03 || bits == 0x04) in mixer_output()
91 mix_write(0x80 | bits, 0x078B); in mixer_output()
96 mix_write(0x80 | 0x20 | bits, 0x078B); in mixer_output()
98 mix_write(0x80 | 0x40 | bits, 0x078B); in mixer_output()
Dtrix.c132 u8 config, bits; in init_trix_wss() local
137 bits = 8; in init_trix_wss()
140 bits = 0x10; in init_trix_wss()
143 bits = 0x18; in init_trix_wss()
146 bits = 0x20; in init_trix_wss()
228 outb((bits | 0x40), config_port); in init_trix_wss()
232 bits |= dma_bits[dma1]; in init_trix_wss()
246 outb((bits), config_port); /* Write IRQ+DMA setup */ in init_trix_wss()
Dsb_ess.c269 cmd = cmdtab [ ((devc->channels != 1) << 1) + (devc->bits != AFMT_U8) ]; in ess_exec_commands()
484 unsigned char bits; in ess_audio_prepare_for_output_audio2() local
500 bits = ess_getmixer (devc, 0x7a) & 0x18; in ess_audio_prepare_for_output_audio2()
503 if (devc->channels != 1) bits |= 0x02; in ess_audio_prepare_for_output_audio2()
506 if (devc->bits != AFMT_U8) bits |= 0x05; /* 16 bit */ in ess_audio_prepare_for_output_audio2()
509 bits |= 0x60; in ess_audio_prepare_for_output_audio2()
511 ess_setmixer (devc, 0x7a, bits); in ess_audio_prepare_for_output_audio2()
627 static void ess_audio_trigger(int dev, int bits) in ess_audio_trigger() argument
631 int bits_16 = bits & devc->irq_mode_16; in ess_audio_trigger()
632 bits &= devc->irq_mode; in ess_audio_trigger()
[all …]
Daudio.c74 int bits; in audio_open() local
83 bits = 16; in audio_open()
85 bits = 8; in audio_open()
113 set_format(dev, bits); in audio_open()
747 int fact, ret, changed, bits, count, err; in dma_ioctl() local
822 if (get_user(bits, (int __user *)arg)) in dma_ioctl()
824 bits &= audio_devs[dev]->open_mode; in dma_ioctl()
827 if (!(audio_devs[dev]->flags & DMA_DUPLEX) && (bits & PCM_ENABLE_INPUT) && in dma_ioctl()
828 (bits & PCM_ENABLE_OUTPUT)) in dma_ioctl()
831 if (bits & PCM_ENABLE_INPUT) in dma_ioctl()
[all …]
Dwaveartist.c554 unsigned int bits; in waveartist_get_bits() local
557 bits = 1; in waveartist_get_bits()
559 bits = 0; in waveartist_get_bits()
561 bits = 2; //default AFMT_U8 in waveartist_get_bits()
563 return bits; in waveartist_get_bits()
574 unsigned int speed, bits; in waveartist_prepare_for_input() local
580 bits = waveartist_get_bits(portc); in waveartist_prepare_for_input()
584 if (waveartist_cmd2(devc, WACMD_INPUTFORMAT, bits)) in waveartist_prepare_for_input()
603 if (waveartist_cmd2(devc, WACMD_INPUTFORMAT, bits)) in waveartist_prepare_for_input()
631 unsigned int speed, bits; in waveartist_prepare_for_output() local
[all …]
Dpss.c219 unsigned short tmp, bits; in set_irq() local
226 if ((bits = irq_bits[irq]) == 0 && irq != 0) in set_irq()
231 outw(tmp | bits, REG(dev)); in set_irq()
238 unsigned short bits = (base & 0x0ffc) << 4; in set_io_base() local
240 outw(bits | tmp, REG(dev)); in set_io_base()
251 unsigned short tmp, bits; in set_dma() local
258 if ((bits = dma_bits[dma]) == 0 && dma != 4) in set_dma()
263 outw(tmp | bits, REG(dev)); in set_dma()
/sound/pci/ice1712/
Dpsc724.c122 u32 st, bits; in psc724_wm8766_write() local
130 bits = snd_ice1712_gpio_read(ice) & ~PSC724_SPI_MASK; in psc724_wm8766_write()
131 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
135 bits &= ~PSC724_SPI_CLK; in psc724_wm8766_write()
139 bits |= PSC724_SPI_DATA; in psc724_wm8766_write()
141 bits &= ~PSC724_SPI_DATA; in psc724_wm8766_write()
142 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
145 bits |= PSC724_SPI_CLK; in psc724_wm8766_write()
146 snd_ice1712_gpio_write(ice, bits); in psc724_wm8766_write()
150 bits |= PSC724_SPI_LOAD; in psc724_wm8766_write()
[all …]
Dse.c137 unsigned int bits; in se200pci_WM8766_write() local
149 bits = snd_ice1712_gpio_read(ice) & ~ALL_MASK; in se200pci_WM8766_write()
151 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write()
154 bits &= ~CLOCK; in se200pci_WM8766_write()
157 bits |= DATA; in se200pci_WM8766_write()
159 bits &= ~DATA; in se200pci_WM8766_write()
161 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write()
164 bits |= CLOCK; in se200pci_WM8766_write()
165 snd_ice1712_gpio_write(ice, bits); in se200pci_WM8766_write()
169 bits |= LOAD; in se200pci_WM8766_write()
[all …]
Dice1712.h408 static inline void snd_ice1712_gpio_set_dir(struct snd_ice1712 *ice, unsigned int bits) in snd_ice1712_gpio_set_dir() argument
410 ice->gpio.set_dir(ice, bits); in snd_ice1712_gpio_set_dir()
418 static inline void snd_ice1712_gpio_set_mask(struct snd_ice1712 *ice, unsigned int bits) in snd_ice1712_gpio_set_mask() argument
420 ice->gpio.set_mask(ice, bits); in snd_ice1712_gpio_set_mask()
467 unsigned int mask, unsigned int bits) in snd_ice1712_gpio_write_bits() argument
475 val |= mask & bits; in snd_ice1712_gpio_write_bits()
/sound/soc/sh/
Dssi.c137 unsigned int bits, channels, swl, recv, i; in ssi_hw_params() local
140 bits = params->msbits; in ssi_hw_params()
144 pr_debug("bits: %u channels: %u\n", bits, channels); in ssi_hw_params()
162 switch (bits) { in ssi_hw_params()
185 if ((bits > 16) && (bits <= 24)) { in ssi_hw_params()
186 bits = 24; /* these are padded by the SSI */ in ssi_hw_params()
190 swl = (bits * channels) / 2; in ssi_hw_params()
/sound/soc/atmel/
Datmel_ssc_dai.c484 int dir, channels, bits; in atmel_ssc_hw_params() local
551 bits = 8; in atmel_ssc_hw_params()
555 bits = 16; in atmel_ssc_hw_params()
559 bits = 24; in atmel_ssc_hw_params()
563 bits = 32; in atmel_ssc_hw_params()
586 if (bits > 16 && !ssc->pdata->has_fslen_ext) { in atmel_ssc_hw_params()
589 bits); in atmel_ssc_hw_params()
593 fslen_ext = (bits - 1) / 16; in atmel_ssc_hw_params()
594 fslen = (bits - 1) % 16; in atmel_ssc_hw_params()
610 | SSC_BF(RFMR_DATLEN, (bits - 1)); in atmel_ssc_hw_params()
[all …]
/sound/core/
Dpcm_dmaengine.c66 int bits; in snd_hwparams_to_dma_slave_config() local
68 bits = params_physical_width(params); in snd_hwparams_to_dma_slave_config()
69 if (bits < 8 || bits > 64) in snd_hwparams_to_dma_slave_config()
71 else if (bits == 8) in snd_hwparams_to_dma_slave_config()
73 else if (bits == 16) in snd_hwparams_to_dma_slave_config()
75 else if (bits == 24) in snd_hwparams_to_dma_slave_config()
77 else if (bits <= 32) in snd_hwparams_to_dma_slave_config()
/sound/soc/hisilicon/
Dhi6210-i2s.c57 u8 bits; member
266 u32 bits = 0, rate = 0, signed_data = 0, fmt = 0; in hi6210_i2s_hw_params() local
275 bits = HII2S_BITS_16; in hi6210_i2s_hw_params()
281 bits = HII2S_BITS_24; in hi6210_i2s_hw_params()
320 switch (bits) { in hi6210_i2s_hw_params()
322 i2s->bits = 32; in hi6210_i2s_hw_params()
326 i2s->bits = 16; in hi6210_i2s_hw_params()
332 i2s->channel_length = i2s->channels * i2s->bits; in hi6210_i2s_hw_params()
458 val |= (bits << HII2S_I2S_CFG__S2_CODEC_IO_WORDLENGTH_SHIFT); in hi6210_i2s_hw_params()
/sound/pci/oxygen/
Doxygen_mixer.c313 static void oxygen_to_iec958(u32 bits, struct snd_ctl_elem_value *value) in oxygen_to_iec958() argument
316 bits & (OXYGEN_SPDIF_NONAUDIO | OXYGEN_SPDIF_C | in oxygen_to_iec958()
319 bits >> OXYGEN_SPDIF_CATEGORY_SHIFT; in oxygen_to_iec958()
324 u32 bits; in iec958_to_oxygen() local
326 bits = value->value.iec958.status[0] & in iec958_to_oxygen()
329 bits |= value->value.iec958.status[1] << OXYGEN_SPDIF_CATEGORY_SHIFT; in iec958_to_oxygen()
330 if (bits & OXYGEN_SPDIF_NONAUDIO) in iec958_to_oxygen()
331 bits |= OXYGEN_SPDIF_V; in iec958_to_oxygen()
332 return bits; in iec958_to_oxygen()
335 static inline void write_spdif_bits(struct oxygen *chip, u32 bits) in write_spdif_bits() argument
[all …]
/sound/pci/emu10k1/
Dirq.c186 unsigned int bits; in snd_emu10k1_interrupt() local
190 bits = INTE_FXDSPENABLE | in snd_emu10k1_interrupt()
204 bits |= INTE_A_MIDITXENABLE2 | INTE_A_MIDIRXENABLE2; in snd_emu10k1_interrupt()
205 snd_emu10k1_intr_disable(emu, bits); in snd_emu10k1_interrupt()
/sound/pci/ac97/
Dac97_pcm.c176 unsigned short old, bits, reg, mask; in set_spdif_rate() local
185 case 48000: bits = 0; break; in set_spdif_rate()
186 case 44100: bits = 1 << AC97_SC_SPSR_SHIFT; break; in set_spdif_rate()
199 case 44100: bits = AC97_SC_SPSR_44K; break; in set_spdif_rate()
200 case 48000: bits = AC97_SC_SPSR_48K; break; in set_spdif_rate()
201 case 32000: bits = AC97_SC_SPSR_32K; break; in set_spdif_rate()
212 if (old != bits) { in set_spdif_rate()
214 snd_ac97_update_bits_nolock(ac97, reg, mask, bits); in set_spdif_rate()
/sound/firewire/dice/
Ddice-transaction.c139 u32 bits; in dice_notification() local
151 bits = be32_to_cpup(data); in dice_notification()
154 dice->notification_bits |= bits; in dice_notification()
159 if (bits & NOTIFY_LOCK_CHG) in dice_notification()
/sound/soc/sti/
Dsti_uniperif.c198 maskp->bits[0] &= (u_int32_t)format; in sti_uniperiph_fix_tdm_format()
199 maskp->bits[1] &= (u_int32_t)(format >> 32); in sti_uniperiph_fix_tdm_format()
201 memset(maskp->bits + 2, 0, (SNDRV_MASK_MAX - 64) / 8); in sti_uniperiph_fix_tdm_format()
203 if (!maskp->bits[0] && !maskp->bits[1]) in sti_uniperiph_fix_tdm_format()
/sound/mips/
Dad1843.c266 int w, m, mask, bits; in ad1843_write_multi() local
269 bits = 0; in ad1843_write_multi()
282 bits |= (value << fp->lo_bit) & m; in ad1843_write_multi()
290 w = (w & ~mask) | bits; in ad1843_write_multi()
/sound/pci/ca0106/
Dca0106_main.c968 u32 bits; in snd_ca0106_pcm_trigger_playback() local
1000 bits = snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0); in snd_ca0106_pcm_trigger_playback()
1001 bits |= extended; in snd_ca0106_pcm_trigger_playback()
1002 snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, bits); in snd_ca0106_pcm_trigger_playback()
1003 bits = snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0); in snd_ca0106_pcm_trigger_playback()
1004 bits |= basic; in snd_ca0106_pcm_trigger_playback()
1005 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, bits); in snd_ca0106_pcm_trigger_playback()
1009 bits = snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0); in snd_ca0106_pcm_trigger_playback()
1010 bits &= ~basic; in snd_ca0106_pcm_trigger_playback()
1011 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, bits); in snd_ca0106_pcm_trigger_playback()
[all …]
/sound/usb/
Dpcm.c905 check_fmts.bits[0] = (u32)fp->formats; in hw_check_valid_format()
906 check_fmts.bits[1] = (u32)(fp->formats >> 32); in hw_check_valid_format()
1050 hwc_debug("hw_rule_format: %x:%x\n", fmt->bits[0], fmt->bits[1]); in hw_rule_format()
1058 oldbits[0] = fmt->bits[0]; in hw_rule_format()
1059 oldbits[1] = fmt->bits[1]; in hw_rule_format()
1060 fmt->bits[0] &= (u32)fbits; in hw_rule_format()
1061 fmt->bits[1] &= (u32)(fbits >> 32); in hw_rule_format()
1062 if (!fmt->bits[0] && !fmt->bits[1]) { in hw_rule_format()
1066 changed = (oldbits[0] != fmt->bits[0] || oldbits[1] != fmt->bits[1]); in hw_rule_format()
1067 hwc_debug(" --> %x:%x (changed = %d)\n", fmt->bits[0], fmt->bits[1], changed); in hw_rule_format()
Dstream.c231 static struct snd_pcm_chmap_elem *convert_chmap(int channels, unsigned int bits, in convert_chmap() argument
294 if (bits) { in convert_chmap()
295 for (; bits && *maps; maps++, bits >>= 1) in convert_chmap()
296 if (bits & 1) in convert_chmap()
/sound/isa/wavefront/
Dwavefront_synth.c1756 int bits; in snd_wavefront_interrupt_bits() local
1760 bits = 0x00; in snd_wavefront_interrupt_bits()
1763 bits = 0x08; in snd_wavefront_interrupt_bits()
1766 bits = 0x10; in snd_wavefront_interrupt_bits()
1769 bits = 0x18; in snd_wavefront_interrupt_bits()
1774 bits = -1; in snd_wavefront_interrupt_bits()
1777 return bits; in snd_wavefront_interrupt_bits()
1803 int bits; in wavefront_reset_to_cleanliness() local
1808 bits = snd_wavefront_interrupt_bits (dev->irq); in wavefront_reset_to_cleanliness()
1850 outb (0x80 | 0x40 | bits, dev->data_port); in wavefront_reset_to_cleanliness()

123