Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 24 of 24) sorted by relevance

/sound/pci/hda/
Dhda_local.h32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
41 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
43 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
44 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction)
46 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
47 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction)
49 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
50 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
52 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
57 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
[all …]
Dhda_codec.c965 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) in query_amp_caps() argument
969 info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, 0)); in query_amp_caps()
976 direction == HDA_OUTPUT ? in query_amp_caps()
1006 int ch, int direction, int index) in get_vol_mute() argument
1014 parm |= direction == HDA_OUTPUT ? AC_AMP_GET_OUTPUT : AC_AMP_GET_INPUT; in get_vol_mute()
1027 hda_nid_t nid, int ch, int direction, int index, in put_vol_mute() argument
1033 parm |= direction == HDA_OUTPUT ? AC_AMP_SET_OUTPUT : AC_AMP_SET_INPUT; in put_vol_mute()
1044 int direction, int index) in snd_hda_codec_amp_read() argument
1047 info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, index)); in snd_hda_codec_amp_read()
1050 return get_vol_mute(codec, info, nid, ch, direction, index); in snd_hda_codec_amp_read()
[all …]
Dhda_proc.c423 unsigned int enable, direction, wake, unsol, sticky, data; in print_gpio() local
437 direction = snd_hda_codec_read(codec, nid, 0, in print_gpio()
452 (direction & (1<<i)) ? 1 : 0, in print_gpio()
/sound/pci/ice1712/
Dice1712.h356 unsigned int direction; /* current direction bits */ member
415 ice->gpio.saved[0] = ice->gpio.direction; in snd_ice1712_save_gpio_status()
423 ice->gpio.direction = ice->gpio.saved[0]; in snd_ice1712_restore_gpio_status()
445 ice->gpio.direction |= mask; in snd_ice1712_gpio_write_bits()
446 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in snd_ice1712_gpio_write_bits()
456 ice->gpio.direction &= ~mask; in snd_ice1712_gpio_read_bits()
457 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in snd_ice1712_gpio_read_bits()
Dpontis.c384 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in spi_write()
406 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in spi_read()
499 ucontrol->value.integer.value[0] = ice->gpio.direction & 0xff0f; in pontis_gpio_dir_get()
512 changed = (val != ice->gpio.direction); in pontis_gpio_dir_put()
513 ice->gpio.direction = val; in pontis_gpio_dir_put()
522 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in pontis_gpio_data_get()
535 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in pontis_gpio_data_put()
Drevo.c118 ice->gpio.direction &= ~mask; in revo_i2c_direction()
119 ice->gpio.direction |= val; in revo_i2c_direction()
120 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in revo_i2c_direction()
153 .direction = revo_i2c_direction,
Dews.c126 ice->gpio.direction &= ~(ICE1712_EWX2496_SERIAL_CLOCK|ICE1712_EWX2496_SERIAL_DATA); in ewx_i2c_direction()
127 ice->gpio.direction |= mask; in ewx_i2c_direction()
128 snd_ice1712_write(ice, ICE1712_IREG_GPIO_DIRECTION, ice->gpio.direction); in ewx_i2c_direction()
135 .direction = ewx_i2c_direction,
184 ice->gpio.direction | tmp); in ews88mt_ak4524_lock()
208 ice->gpio.direction | tmp); in ewx2496_ak4524_lock()
224 ice->gpio.direction | tmp); in dmx6fire_ak4524_lock()
Dhoontech.c266 ice->gpio.direction | tmp); in stdsp24_ak4524_lock()
323 ice->gpio.direction = ice->eeprom.gpiodir; in snd_ice1712_ez8_init()
Dprodigy_hifi.c203 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in wm8766_spi_write()
242 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in ak4396_write()
Dse.c148 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction | ALL_MASK); in se200pci_WM8766_write()
Dice1712.c2389 ice->gpio.direction = ice->eeprom.gpiodir; in snd_ice1712_chip_init()
2398 ice->gpio.direction = 0xff; in snd_ice1712_chip_init()
Dice1724.c2240 ice->gpio.direction = ice->eeprom.gpiodir; in snd_vt1724_chip_init()
/sound/sparc/
Ddbri.c942 enum in_or_out direction, int prevpipe,
958 if (direction == PIPEinput) {
2077 int direction; in snd_dbri_hw_params() local
2097 direction = DMA_TO_DEVICE; in snd_dbri_hw_params()
2099 direction = DMA_FROM_DEVICE; in snd_dbri_hw_params()
2105 direction); in snd_dbri_hw_params()
2108 direction = params_buffer_bytes(hw_params); in snd_dbri_hw_params()
2110 direction, info->dvma_buffer); in snd_dbri_hw_params()
2118 int direction; in snd_dbri_hw_free() local
2126 direction = DMA_TO_DEVICE; in snd_dbri_hw_free()
[all …]
/sound/i2c/
Di2c.c183 if (bus->hw_ops.bit->direction) in snd_i2c_bit_direction()
184 bus->hw_ops.bit->direction(bus, clock, data); in snd_i2c_bit_direction()
/sound/oss/
Dsound_calls.h21 int DMAbuf_get_buffer_pointer (int dev, struct dma_buffparms *dmap, int direction);
Dvwsnd.c465 int direction; /* LI_CCTL_DIR_IN/OUT */ member
633 desc->direction | in li_setup_dma()
680 if (lith1 && chan->desc->direction == LI_CCFG_DIR_OUT) in li_shutdown_dma()
717 if (lith2 && chan->desc->direction == LI_CCFG_DIR_OUT) { in li_deactivate_dma()
Ddmabuf.c633 int DMAbuf_get_buffer_pointer(int dev, struct dma_buffparms *dmap, int direction) in DMAbuf_get_buffer_pointer() argument
659 if (direction == DMODE_OUTPUT) { in DMAbuf_get_buffer_pointer()
/sound/pci/
Dvia82xx_modem.c222 int direction; /* playback = 0, capture = 1 */ member
826 int direction) in init_viadev() argument
829 chip->devs[idx].direction = direction; in init_viadev()
Dvia82xx.c321 int direction; /* playback = 0, capture = 1 */ member
1171 ratep = &chip->rates[viadev->direction]; in snd_via82xx_pcm_open()
1189 int idx = viadev->direction ? AC97_RATES_ADC : AC97_RATES_FRONT_DAC; in snd_via82xx_pcm_open()
1276 ratep = &chip->rates[viadev->direction]; in snd_via82xx_pcm_close()
1283 if (! viadev->direction) { in snd_via82xx_pcm_close()
1366 int shadow_pos, int direction) in init_viadev() argument
1370 chip->devs[idx].direction = direction; in init_viadev()
/sound/usb/
Dusbaudio.c152 int direction; /* playback or capture */ member
1038 int is_playback = subs->direction == SNDRV_PCM_STREAM_PLAYBACK; in init_substream_urbs()
1228 subs->direction == SNDRV_PCM_STREAM_PLAYBACK) || in find_format()
1230 subs->direction == SNDRV_PCM_STREAM_CAPTURE)) in find_format()
1233 subs->direction == SNDRV_PCM_STREAM_PLAYBACK) || in find_format()
1235 subs->direction == SNDRV_PCM_STREAM_CAPTURE)) { in find_format()
1325 int is_playback = subs->direction == SNDRV_PCM_STREAM_PLAYBACK; in set_format()
1552 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_prepare()
1954 static int snd_usb_pcm_open(struct snd_pcm_substream *substream, int direction) in snd_usb_pcm_open() argument
1958 struct snd_usb_substream *subs = &as->substream[direction]; in snd_usb_pcm_open()
[all …]
/sound/isa/sb/
Dsb16_main.c899 const struct snd_pcm_ops *snd_sb16dsp_get_pcm_ops(int direction) in snd_sb16dsp_get_pcm_ops() argument
901 return direction == SNDRV_PCM_STREAM_PLAYBACK ? in snd_sb16dsp_get_pcm_ops()
/sound/core/
Drawmidi.c1385 int direction, in snd_rawmidi_alloc_substreams() argument
1397 substream->stream = direction; in snd_rawmidi_alloc_substreams()
Dpcm_lib.c281 void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, struct snd_pcm_ops *ops) in snd_pcm_set_ops() argument
283 struct snd_pcm_str *stream = &pcm->streams[direction]; in snd_pcm_set_ops()
/sound/isa/wss/
Dwss_lib.c2301 const struct snd_pcm_ops *snd_wss_get_pcm_ops(int direction) in snd_wss_get_pcm_ops() argument
2303 return direction == SNDRV_PCM_STREAM_PLAYBACK ? in snd_wss_get_pcm_ops()