Symbol: max9768
sound/soc/codecs/max9768.c
138
struct max9768 *max9768 = snd_soc_component_get_drvdata(component);
sound/soc/codecs/max9768.c
141
if (max9768->flags & MAX9768_FLAG_CLASSIC_PWM) {
sound/soc/codecs/max9768.c
142
ret = regmap_write(max9768->regmap, MAX9768_CTRL,
sound/soc/codecs/max9768.c
148
if (max9768->mute) {
sound/soc/codecs/max9768.c
179
struct max9768 *max9768;
sound/soc/codecs/max9768.c
182
max9768 = devm_kzalloc(&client->dev, sizeof(*max9768), GFP_KERNEL);
sound/soc/codecs/max9768.c
183
if (!max9768)
sound/soc/codecs/max9768.c
187
max9768->mute = devm_gpiod_get_optional(&client->dev,
sound/soc/codecs/max9768.c
190
if (IS_ERR(max9768->mute))
sound/soc/codecs/max9768.c
191
return PTR_ERR(max9768->mute);
sound/soc/codecs/max9768.c
192
gpiod_set_consumer_name(max9768->mute, "MAX9768 Mute");
sound/soc/codecs/max9768.c
195
max9768->shdn = devm_gpiod_get_optional(&client->dev,
sound/soc/codecs/max9768.c
198
if (IS_ERR(max9768->shdn))
sound/soc/codecs/max9768.c
199
return PTR_ERR(max9768->shdn);
sound/soc/codecs/max9768.c
200
gpiod_set_consumer_name(max9768->shdn, "MAX9768 Shutdown");
sound/soc/codecs/max9768.c
203
max9768->flags = pdata->flags;
sound/soc/codecs/max9768.c
205
i2c_set_clientdata(client, max9768);
sound/soc/codecs/max9768.c
207
max9768->regmap = devm_regmap_init_i2c(client, &max9768_i2c_regmap_config);
sound/soc/codecs/max9768.c
208
if (IS_ERR(max9768->regmap))
sound/soc/codecs/max9768.c
209
return PTR_ERR(max9768->regmap);
sound/soc/codecs/max9768.c
44
struct max9768 *max9768 = snd_soc_component_get_drvdata(c);
sound/soc/codecs/max9768.c
45
int val = gpiod_get_value_cansleep(max9768->mute);
sound/soc/codecs/max9768.c
56
struct max9768 *max9768 = snd_soc_component_get_drvdata(c);
sound/soc/codecs/max9768.c
60
if (val != gpiod_get_value_cansleep(max9768->mute))
sound/soc/codecs/max9768.c
65
gpiod_set_value_cansleep(max9768->mute, val);