Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/sound/pci/ac97/
Dac97_proc.c110 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local
130 val = snd_ac97_read(ac97, AC97_INT_PAGING); in snd_ac97_proc_read_main()
141 AC97_PAGE_MASK, val & AC97_PAGE_MASK); in snd_ac97_proc_read_main()
145 val = ac97->caps; in snd_ac97_proc_read_main()
147 val & AC97_BC_DEDICATED_MIC ? " -dedicated MIC PCM IN channel-" : "", in snd_ac97_proc_read_main()
148 val & AC97_BC_RESERVED1 ? " -reserved1-" : "", in snd_ac97_proc_read_main()
149 val & AC97_BC_BASS_TREBLE ? " -bass & treble-" : "", in snd_ac97_proc_read_main()
150 val & AC97_BC_SIM_STEREO ? " -simulated stereo-" : "", in snd_ac97_proc_read_main()
151 val & AC97_BC_HEADPHONE ? " -headphone out-" : "", in snd_ac97_proc_read_main()
152 val & AC97_BC_LOUDNESS ? " -loudness-" : ""); in snd_ac97_proc_read_main()
[all …]
/sound/synth/emux/
Demux_nrpn.c33 int (*convert)(int val);
55 int type, int val, int mode) in send_converted_effect() argument
60 cval = table[i].convert(val); in send_converted_effect()
100 static int fx_delay(int val);
101 static int fx_attack(int val);
102 static int fx_hold(int val);
103 static int fx_decay(int val);
104 static int fx_the_value(int val);
105 static int fx_twice_value(int val);
106 static int fx_conv_pitch(int val);
[all …]
/sound/soc/hisilicon/
Dhi6210-i2s.c90 static inline void hi6210_write_reg(struct hi6210_i2s *i2s, int reg, u32 val) in hi6210_write_reg() argument
92 writel(val, i2s->base + reg); in hi6210_write_reg()
105 u32 val; in hi6210_i2s_startup() local
108 regmap_read(i2s->sysctrl, SC_PERIPH_RSTSTAT2, &val); in hi6210_i2s_startup()
109 if (val & BIT(4)) in hi6210_i2s_startup()
139 val = hi6210_read_reg(i2s, HII2S_CODEC_IRQ_MASK); in hi6210_i2s_startup()
140 val |= 0x3f; in hi6210_i2s_startup()
141 hi6210_write_reg(i2s, HII2S_CODEC_IRQ_MASK, val); in hi6210_i2s_startup()
145 val = hi6210_read_reg(i2s, HII2S_APB_AFIFO_CFG_1); in hi6210_i2s_startup()
146 val |= (BIT(5) | BIT(4)); in hi6210_i2s_startup()
[all …]
/sound/soc/davinci/
Ddavinci-mcasp.h143 #define TXROT(val) (val) argument
145 #define TXSSZ(val) (val<<4) argument
146 #define TXPBIT(val) (val<<8) argument
147 #define TXPAD(val) (val<<13) argument
149 #define FSXDLY(val) (val<<16) argument
154 #define RXROT(val) (val) argument
156 #define RXSSZ(val) (val<<4) argument
157 #define RXPBIT(val) (val<<8) argument
158 #define RXPAD(val) (val<<13) argument
160 #define FSRDLY(val) (val<<16) argument
[all …]
/sound/soc/nuc900/
Dnuc900-ac97.c48 unsigned long timeout = 0x10000, val; in nuc900_ac97_read() local
52 val = nuc900_checkready(); in nuc900_ac97_read()
53 if (val) { in nuc900_ac97_read()
62 val = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0); in nuc900_ac97_read()
63 val |= (VALID_FRAME | SLOT1_VALID); in nuc900_ac97_read()
64 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, val); in nuc900_ac97_read()
75 val = -EPERM; in nuc900_ac97_read()
79 val = AUDIO_READ(nuc900_audio->mmio + ACTL_ACOS0) ; in nuc900_ac97_read()
80 val &= ~SLOT1_VALID; in nuc900_ac97_read()
81 AUDIO_WRITE(nuc900_audio->mmio + ACTL_ACOS0, val); in nuc900_ac97_read()
[all …]
Dnuc900-pcm.c70 unsigned long val; in nuc900_dma_start() local
72 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_start()
73 val |= (T_DMA_IRQ | R_DMA_IRQ); in nuc900_dma_start()
74 AUDIO_WRITE(nuc900_audio->mmio + ACTL_CON, val); in nuc900_dma_start()
81 unsigned long val; in nuc900_dma_stop() local
83 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_stop()
84 val &= ~(T_DMA_IRQ | R_DMA_IRQ); in nuc900_dma_stop()
85 AUDIO_WRITE(nuc900_audio->mmio + ACTL_CON, val); in nuc900_dma_stop()
92 unsigned long val; in nuc900_dma_interrupt() local
96 val = AUDIO_READ(nuc900_audio->mmio + ACTL_CON); in nuc900_dma_interrupt()
[all …]
/sound/pcmcia/pdaudiocf/
Dpdaudiocf_core.c63 static void pdacf_ak4117_write(void *private_data, unsigned char reg, unsigned char val) in pdacf_ak4117_write() argument
79 outw((u16)reg << 8 | val | (1<<13), chip->port + PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_write()
106 u16 val; in pdacf_reset() local
108 val = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_reset()
109 val |= PDAUDIOCF_PDN; in pdacf_reset()
110 val &= ~PDAUDIOCF_RECORD; /* for sure */ in pdacf_reset()
111 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val); in pdacf_reset()
113 val |= PDAUDIOCF_RST; in pdacf_reset()
114 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val); in pdacf_reset()
116 val &= ~PDAUDIOCF_RST; in pdacf_reset()
[all …]
/sound/soc/zte/
Dzx-tdm.c89 static inline void zx_tdm_writel(struct zx_tdm_info *tdm, u16 reg, u32 val) in zx_tdm_writel() argument
91 writel_relaxed(val, tdm->regbase + reg); in zx_tdm_writel()
96 unsigned long val; in zx_tdm_tx_en() local
98 val = zx_tdm_readl(tdm, REG_PROCESS_CTRL); in zx_tdm_tx_en()
100 val |= PROCESS_TX_EN | PROCESS_TDM_EN; in zx_tdm_tx_en()
102 val &= ~(PROCESS_TX_EN | PROCESS_TDM_EN); in zx_tdm_tx_en()
103 zx_tdm_writel(tdm, REG_PROCESS_CTRL, val); in zx_tdm_tx_en()
108 unsigned long val; in zx_tdm_rx_en() local
110 val = zx_tdm_readl(tdm, REG_PROCESS_CTRL); in zx_tdm_rx_en()
112 val |= PROCESS_RX_EN | PROCESS_TDM_EN; in zx_tdm_rx_en()
[all …]
Dzx-i2s.c107 unsigned long val; in zx_i2s_tx_en() local
109 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en()
111 val |= ZX_I2S_PROCESS_TX_EN | ZX_I2S_PROCESS_I2S_EN; in zx_i2s_tx_en()
113 val &= ~(ZX_I2S_PROCESS_TX_EN | ZX_I2S_PROCESS_I2S_EN); in zx_i2s_tx_en()
114 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en()
119 unsigned long val; in zx_i2s_rx_en() local
121 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en()
123 val |= ZX_I2S_PROCESS_RX_EN | ZX_I2S_PROCESS_I2S_EN; in zx_i2s_rx_en()
125 val &= ~(ZX_I2S_PROCESS_RX_EN | ZX_I2S_PROCESS_I2S_EN); in zx_i2s_rx_en()
126 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en()
[all …]
Dzx-spdif.c143 u32 val, ch_num, rate; in zx_spdif_hw_params() local
149 val = readl_relaxed(zx_spdif->reg_base + ZX_CTRL); in zx_spdif_hw_params()
150 val &= ~ZX_CTRL_MODA_MASK; in zx_spdif_hw_params()
153 val |= ZX_CTRL_MODA_16; in zx_spdif_hw_params()
157 val |= ZX_CTRL_MODA_18; in zx_spdif_hw_params()
161 val |= ZX_CTRL_MODA_20; in zx_spdif_hw_params()
165 val |= ZX_CTRL_MODA_24; in zx_spdif_hw_params()
174 val |= ZX_CTRL_DOUBLE_TRACK; in zx_spdif_hw_params()
176 val |= ZX_CTRL_LEFT_TRACK; in zx_spdif_hw_params()
177 writel_relaxed(val, zx_spdif->reg_base + ZX_CTRL); in zx_spdif_hw_params()
[all …]
/sound/soc/
Dsoc-ops.c69 unsigned int val, item; in snd_soc_get_enum_double() local
76 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double()
77 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
80 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_get_enum_double()
81 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
104 unsigned int val; in snd_soc_put_enum_double() local
109 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_put_enum_double()
114 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r; in snd_soc_put_enum_double()
118 return snd_soc_component_update_bits(component, e->reg, mask, val); in snd_soc_put_enum_double()
142 unsigned int val; in snd_soc_read_signed() local
[all …]
Dsoc-io.c29 unsigned int reg, unsigned int *val) in snd_soc_component_read() argument
34 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read()
36 ret = component->read(component, reg, val); in snd_soc_component_read()
53 unsigned int reg, unsigned int val) in snd_soc_component_write() argument
56 return regmap_write(component->regmap, reg, val); in snd_soc_component_write()
58 return component->write(component, reg, val); in snd_soc_component_write()
66 unsigned int mask, unsigned int val, bool *change) in snd_soc_component_update_bits_legacy() argument
80 new = (old & ~mask) | (val & mask); in snd_soc_component_update_bits_legacy()
102 unsigned int reg, unsigned int mask, unsigned int val) in snd_soc_component_update_bits() argument
109 val, &change); in snd_soc_component_update_bits()
[all …]
/sound/soc/rockchip/
Drockchip_i2s.c94 unsigned int val = 0; in rockchip_snd_txctrl() local
124 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_txctrl()
127 while (val) { in rockchip_snd_txctrl()
128 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_txctrl()
141 unsigned int val = 0; in rockchip_snd_rxctrl() local
171 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_rxctrl()
174 while (val) { in rockchip_snd_rxctrl()
175 regmap_read(i2s->regmap, I2S_CLR, &val); in rockchip_snd_rxctrl()
190 unsigned int mask = 0, val = 0; in rockchip_i2s_set_fmt() local
196 val = I2S_CKR_MSS_MASTER; in rockchip_i2s_set_fmt()
[all …]
/sound/hda/
Dhdac_regmap.c156 unsigned int reg, unsigned int *val) in hda_reg_read_stereo_amp() argument
168 *val = left | (right << 8); in hda_reg_read_stereo_amp()
174 unsigned int reg, unsigned int val) in hda_reg_write_stereo_amp() argument
186 left = val & 0xff; in hda_reg_write_stereo_amp()
187 right = (val >> 8) & 0xff; in hda_reg_write_stereo_amp()
204 unsigned int *val) in hda_reg_read_coef() argument
217 return snd_hdac_exec_verb(codec, verb, 0, val); in hda_reg_read_coef()
222 unsigned int val) in hda_reg_write_coef() argument
235 (val & 0xffff); in hda_reg_write_coef()
239 static int hda_reg_read(void *context, unsigned int reg, unsigned int *val) in hda_reg_read() argument
[all …]
Dhdac_device.c217 u32 val, addr; in snd_hdac_make_cmd() local
227 val = addr << 28; in snd_hdac_make_cmd()
228 val |= (u32)nid << 20; in snd_hdac_make_cmd()
229 val |= verb << 8; in snd_hdac_make_cmd()
230 val |= parm; in snd_hdac_make_cmd()
231 return val; in snd_hdac_make_cmd()
303 unsigned int cmd, val; in snd_hdac_read_parm_uncached() local
306 if (snd_hdac_regmap_read_raw_uncached(codec, cmd, &val) < 0) in snd_hdac_read_parm_uncached()
308 return val; in snd_hdac_read_parm_uncached()
320 unsigned int parm, unsigned int val) in snd_hdac_override_parm() argument
[all …]
/sound/pci/lola/
Dlola_proc.c32 unsigned int val; in print_audio_widget() local
34 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_audio_widget()
35 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget()
36 lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); in print_audio_widget()
37 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget()
44 unsigned int val; in print_pin_widget() local
46 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_pin_widget()
47 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget()
48 if (val == 0x00400200) in print_pin_widget()
50 lola_read_param(chip, nid, ampcap, &val); in print_pin_widget()
[all …]
Dlola_clock.c69 unsigned int val, in check_gran_clock_compatibility() argument
75 if (val < LOLA_GRANULARITY_MIN || val > LOLA_GRANULARITY_MAX || in check_gran_clock_compatibility()
76 (val % LOLA_GRANULARITY_STEP) != 0) in check_gran_clock_compatibility()
79 if (val == LOLA_GRANULARITY_MIN) { in check_gran_clock_compatibility()
82 } else if (val < LOLA_GRANULARITY_MAX) { in check_gran_clock_compatibility()
89 int lola_set_granularity(struct lola *chip, unsigned int val, bool force) in lola_set_granularity() argument
94 if (val == chip->granularity) in lola_set_granularity()
101 if (!check_gran_clock_compatibility(chip, val, in lola_set_granularity()
106 chip->granularity = val; in lola_set_granularity()
107 val /= LOLA_GRANULARITY_STEP; in lola_set_granularity()
[all …]
Dlola_mixer.c34 unsigned int val; in lola_init_pin() local
38 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in lola_init_pin()
43 val &= 0x00f00fff; /* test TYPE and bits 0..11 */ in lola_init_pin()
44 if (val == 0x00400200) /* Type = 4, Digital = 1 */ in lola_init_pin()
46 else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ in lola_init_pin()
48 else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ in lola_init_pin()
51 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); in lola_init_pin()
61 err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); in lola_init_pin()
63 err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); in lola_init_pin()
69 pin->amp_mute = LOLA_AMP_MUTE_CAPABLE(val); in lola_init_pin()
[all …]
/sound/soc/sh/rcar/
Dctu.c133 u32 val = ctu->pass.val[i]; in rsnd_ctu_value_init() local
135 cpmdr |= val << (28 - (i * 4)); in rsnd_ctu_value_init()
137 if ((val > 0x8) && (scmdr < (val - 0x8))) in rsnd_ctu_value_init()
138 scmdr = val - 0x8; in rsnd_ctu_value_init()
150 rsnd_mod_write(mod, CTU_SV00R, ctu->sv0.val[0]); in rsnd_ctu_value_init()
151 rsnd_mod_write(mod, CTU_SV01R, ctu->sv0.val[1]); in rsnd_ctu_value_init()
152 rsnd_mod_write(mod, CTU_SV02R, ctu->sv0.val[2]); in rsnd_ctu_value_init()
153 rsnd_mod_write(mod, CTU_SV03R, ctu->sv0.val[3]); in rsnd_ctu_value_init()
154 rsnd_mod_write(mod, CTU_SV04R, ctu->sv0.val[4]); in rsnd_ctu_value_init()
155 rsnd_mod_write(mod, CTU_SV05R, ctu->sv0.val[5]); in rsnd_ctu_value_init()
[all …]
/sound/oss/
Dsound_timer.c184 int val; in timer_ioctl() local
189 val = TMR_INTERNAL; in timer_ioctl()
206 if (get_user(val, p)) in timer_ioctl()
208 if (val) in timer_ioctl()
210 if (val < 1) in timer_ioctl()
211 val = 1; in timer_ioctl()
212 if (val > 1000) in timer_ioctl()
213 val = 1000; in timer_ioctl()
214 curr_timebase = val; in timer_ioctl()
216 val = curr_timebase; in timer_ioctl()
[all …]
Dsys_timer.c188 int val; in def_tmr_ioctl() local
208 if (__get_user(val, p)) in def_tmr_ioctl()
210 if (val) { in def_tmr_ioctl()
211 if (val < 1) in def_tmr_ioctl()
212 val = 1; in def_tmr_ioctl()
213 if (val > 1000) in def_tmr_ioctl()
214 val = 1000; in def_tmr_ioctl()
215 curr_timebase = val; in def_tmr_ioctl()
220 if (__get_user(val, p)) in def_tmr_ioctl()
222 if (val) { in def_tmr_ioctl()
[all …]
/sound/pci/ice1712/
Dpontis.c91 static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put_nocache() argument
94 cval = (reg << 9) | val; in wm_put_nocache()
98 static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val) in wm_put() argument
100 wm_put_nocache(ice, reg, val); in wm_put()
102 ice->akm[0].images[reg] = val >> 8; in wm_put()
103 ice->akm[0].images[reg + 1] = val; in wm_put()
126 unsigned short val; in wm_dac_vol_get() local
131 val = wm_get(ice, WM_DAC_ATTEN_L + i) & 0xff; in wm_dac_vol_get()
132 val = val > DAC_MIN ? (val - DAC_MIN) : 0; in wm_dac_vol_get()
133 ucontrol->value.integer.value[i] = val; in wm_dac_vol_get()
[all …]
Dmaya44.c91 unsigned char reg, unsigned short val) in wm8776_write() argument
98 (reg << 1) | ((val >> 8) & 1), in wm8776_write()
99 val & 0xff); in wm8776_write()
100 wm->regs[reg] = val; in wm8776_write()
108 unsigned short mask, unsigned short val) in wm8776_write_bits() argument
110 val |= wm->regs[reg] & ~mask; in wm8776_write_bits()
111 if (val != wm->regs[reg]) { in wm8776_write_bits()
112 wm8776_write(ice, wm, reg, val); in wm8776_write_bits()
207 unsigned int val, data; in maya_vol_put() local
212 val = ucontrol->value.integer.value[ch]; in maya_vol_put()
[all …]
/sound/usb/
Dmixer_us16x08.c209 int val, val_org, err; in snd_us16x08_route_put() local
212 val = ucontrol->value.enumerated.item[0]; in snd_us16x08_route_put()
215 if (val < 0 || val > 9) in snd_us16x08_route_put()
221 if (val < 2) { in snd_us16x08_route_put()
223 val_org = val; in snd_us16x08_route_put()
228 val_org = val - 2; in snd_us16x08_route_put()
240 elem->cache_val[index] = val; in snd_us16x08_route_put()
276 int val, err; in snd_us16x08_master_put() local
280 val = ucontrol->value.integer.value[0]; in snd_us16x08_master_put()
283 if (val < SND_US16X08_KCMIN(kcontrol) in snd_us16x08_master_put()
[all …]
/sound/soc/codecs/
Dak4104.c70 int val = 0; in ak4104_set_dai_fmt() local
78 val |= AK4104_CONTROL1_DIF0; in ak4104_set_dai_fmt()
81 val |= AK4104_CONTROL1_DIF0 | AK4104_CONTROL1_DIF1; in ak4104_set_dai_fmt()
94 val); in ak4104_set_dai_fmt()
107 int ret, val = 0; in ak4104_hw_params() local
110 val |= IEC958_AES0_CON_NOT_COPYRIGHT; in ak4104_hw_params()
111 regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(0), val); in ak4104_hw_params()
113 val = 0; in ak4104_hw_params()
117 val |= IEC958_AES3_CON_FS_22050; in ak4104_hw_params()
120 val |= IEC958_AES3_CON_FS_24000; in ak4104_hw_params()
[all …]

12345678910>>...18