Lines Matching refs:val
108 u8 val;
110 val = snd_soc_component_read(component, AIC32X4_DINCTL);
112 ucontrol->value.integer.value[0] = (val & 0x01);
121 u8 val;
124 val = snd_soc_component_read(component, AIC32X4_DOUTCTL);
125 gpio_check = (val & AIC32X4_MFP_GPIO_ENABLED);
132 if (ucontrol->value.integer.value[0] == (val & AIC32X4_MFP2_GPIO_OUT_HIGH))
136 val |= ucontrol->value.integer.value[0];
138 val &= ~AIC32X4_MFP2_GPIO_OUT_HIGH;
140 snd_soc_component_write(component, AIC32X4_DOUTCTL, val);
149 u8 val;
151 val = snd_soc_component_read(component, AIC32X4_SCLKCTL);
153 ucontrol->value.integer.value[0] = (val & 0x01);
162 u8 val;
165 val = snd_soc_component_read(component, AIC32X4_MISOCTL);
166 gpio_check = (val & AIC32X4_MFP_GPIO_ENABLED);
173 if (ucontrol->value.integer.value[0] == (val & AIC32X4_MFP5_GPIO_OUT_HIGH))
177 val |= ucontrol->value.integer.value[0];
179 val &= ~AIC32X4_MFP5_GPIO_OUT_HIGH;
181 snd_soc_component_write(component, AIC32X4_MISOCTL, val);
190 u8 val;
192 val = snd_soc_component_read(component, AIC32X4_GPIOCTL);
193 ucontrol->value.integer.value[0] = ((val & 0x2) >> 1);
202 u8 val;
205 val = snd_soc_component_read(component, AIC32X4_GPIOCTL);
206 gpio_check = (val & AIC32X4_MFP5_GPIO_OUTPUT);
213 if (ucontrol->value.integer.value[0] == (val & 0x1))
217 val |= ucontrol->value.integer.value[0];
219 val &= 0xfe;
221 snd_soc_component_write(component, AIC32X4_GPIOCTL, val);