Lines Matching +full:high +full:- +full:volume

1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Lowlevel functions for M-Audio Audiophile 192, Revolution 7.1 and 5.1
20 /* a non-standard I2C device for revo51 */
44 if (rate == 0) /* no hint - S/PDIF input is master, simply return */ in revo_set_rate_val()
55 if (ak->type == SND_AK4355 || ak->type == SND_AK4358) { in revo_set_rate_val()
78 * I2C access to the PT2258 volume controller on GPIO 6/7 (Revolution 5.1)
83 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_start()
89 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_stop()
95 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_direction()
104 ice->gpio.direction &= ~mask; in revo_i2c_direction()
105 ice->gpio.direction |= val; in revo_i2c_direction()
106 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in revo_i2c_direction()
112 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_setlines()
127 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_getdata()
152 return -ENOMEM; in revo51_i2c_init()
153 ice->spec = spec; in revo51_i2c_init()
156 err = snd_i2c_bus_create(ice->card, "ICE1724 GPIO6", NULL, &ice->i2c); in revo51_i2c_init()
160 ice->i2c->private_data = ice; in revo51_i2c_init()
161 ice->i2c->hw_ops.bit = &revo51_bit_ops; in revo51_i2c_init()
164 err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev); in revo51_i2c_init()
168 pt->card = ice->card; in revo51_i2c_init()
169 pt->i2c_bus = ice->i2c; in revo51_i2c_init()
170 pt->i2c_dev = spec->dev; in revo51_i2c_init()
171 spec->pt2258 = pt; in revo51_i2c_init()
179 * initialize the chips on M-Audio Revolution cards
186 .name = "PCM Playback Volume",
194 AK_DAC("PCM Center Playback Volume", 1),
195 AK_DAC("PCM LFE Playback Volume", 1),
196 AK_DAC("PCM Side Playback Volume", 2),
197 AK_DAC("PCM Rear Playback Volume", 2),
201 AK_DAC("PCM Playback Volume", 2),
202 AK_DAC("PCM Center Playback Volume", 1),
203 AK_DAC("PCM LFE Playback Volume", 1),
204 AK_DAC("PCM Rear Playback Volume", 2),
205 AK_DAC("PCM Headphone Volume", 2),
217 .name = "PCM Capture Volume",
241 .add_flags = VT1724_REVO_CCLK, /* high at init */
263 .add_flags = VT1724_REVO_CCLK, /* high at init */
284 .add_flags = VT1724_REVO_CCLK, /* high at init */
302 .add_flags = VT1724_REVO_CCLK, /* high at init */
311 struct snd_ice1712 *ice = ak->private_data[0]; in ap192_set_rate_val()
332 AK_DAC("PCM Playback Volume", 2)
352 .add_flags = VT1724_REVO_CCLK, /* high at init */
357 /* CDTO (pin 32) -- GPIO2 pin 52
358 * CDTI (pin 33) -- GPIO3 pin 53 (shared with AK4358)
359 * CCLK (pin 34) -- GPIO1 pin 51 (shared with AK4358)
360 * CSN (pin 35) -- GPIO7 pin 59
367 for (; idx >= 0; idx--) { in write_data()
391 for (; idx >= 0; idx--) { in read_data()
414 tmp |= VT1724_REVO_CCLK; /* high at init */ in ap192_4wire_start()
475 return -ENOMEM; in ap192_ak4114_init()
476 ice->spec = spec; in ap192_ak4114_init()
478 err = snd_ak4114_create(ice->card, in ap192_ak4114_init()
482 ice, &spec->ak4114); in ap192_ak4114_init()
487 spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; in ap192_ak4114_init()
498 switch (ice->eeprom.subvendor) { in revo_init()
500 ice->num_total_dacs = 8; in revo_init()
501 ice->num_total_adcs = 2; in revo_init()
502 ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed; in revo_init()
505 ice->num_total_dacs = 8; in revo_init()
506 ice->num_total_adcs = 2; in revo_init()
509 ice->num_total_dacs = 2; in revo_init()
510 ice->num_total_adcs = 2; in revo_init()
514 return -EINVAL; in revo_init()
518 ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL); in revo_init()
520 return -ENOMEM; in revo_init()
521 switch (ice->eeprom.subvendor) { in revo_init()
523 ice->akm_codecs = 2; in revo_init()
537 ice->akm_codecs = 2; in revo_init()
554 ice->akm_codecs = 1; in revo_init()
575 struct revo51_spec *spec = ice->spec; in revo_add_controls()
578 switch (ice->eeprom.subvendor) { in revo_add_controls()
588 spec = ice->spec; in revo_add_controls()
589 err = snd_pt2258_build_controls(spec->pt2258); in revo_add_controls()
598 err = snd_ak4114_build(spec->ak4114, NULL, in revo_add_controls()
599 ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in revo_add_controls()
611 .name = "M Audio Revolution-7.1",
618 .name = "M Audio Revolution-5.1",