Lines Matching defs:wl1273

10 #include <linux/mfd/wl1273-core.h>
18 #include "wl1273.h"
162 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
164 ucontrol->value.enumerated.item[0] = wl1273->mode;
180 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
182 if (wl1273->mode == ucontrol->value.enumerated.item[0])
192 wl1273->mode = ucontrol->value.enumerated.item[0];
203 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
207 ucontrol->value.enumerated.item[0] = wl1273->core->audio_mode;
216 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
222 if (wl1273->core->audio_mode == val)
225 r = wl1273->core->set_audio(wl1273->core, val);
240 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
244 ucontrol->value.integer.value[0] = wl1273->core->volume;
253 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
258 r = wl1273->core->set_volume(wl1273->core,
291 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
293 switch (wl1273->mode) {
324 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(dai->component);
325 struct wl1273_core *core = wl1273->core;
337 if (wl1273->mode == WL1273_MODE_BT) {
351 if (wl1273->mode == WL1273_MODE_FM_TX &&
357 if (wl1273->mode == WL1273_MODE_FM_RX &&
363 if (wl1273->mode != WL1273_MODE_FM_RX &&
364 wl1273->mode != WL1273_MODE_FM_TX) {
365 pr_err("Unexpected mode: %d.\n", wl1273->mode);
373 wl1273->channels = params_channels(params);
374 r = snd_wl1273_fm_set_channel_number(core, wl1273->channels);
387 .name = "wl1273-fm",
406 struct wl1273_priv *wl1273;
411 wl1273 = snd_soc_component_get_drvdata(component);
413 switch (wl1273->mode) {
438 struct wl1273_priv *wl1273;
447 wl1273 = kzalloc(sizeof(struct wl1273_priv), GFP_KERNEL);
448 if (!wl1273)
451 wl1273->mode = WL1273_MODE_BT;
452 wl1273->core = *core;
454 snd_soc_component_set_drvdata(component, wl1273);
461 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
464 kfree(wl1273);
494 MODULE_ALIAS("platform:wl1273-codec");
498 .name = "wl1273-codec",