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) {
323 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(dai->component);
324 struct wl1273_core *core = wl1273->core;
336 if (wl1273->mode == WL1273_MODE_BT) {
350 if (wl1273->mode == WL1273_MODE_FM_TX &&
356 if (wl1273->mode == WL1273_MODE_FM_RX &&
362 if (wl1273->mode != WL1273_MODE_FM_RX &&
363 wl1273->mode != WL1273_MODE_FM_TX) {
364 pr_err("Unexpected mode: %d.\n", wl1273->mode);
372 wl1273->channels = params_channels(params);
373 r = snd_wl1273_fm_set_channel_number(core, wl1273->channels);
386 .name = "wl1273-fm",
405 struct wl1273_priv *wl1273;
410 wl1273 = snd_soc_component_get_drvdata(component);
412 switch (wl1273->mode) {
437 struct wl1273_priv *wl1273;
446 wl1273 = kzalloc(sizeof(struct wl1273_priv), GFP_KERNEL);
447 if (!wl1273)
450 wl1273->mode = WL1273_MODE_BT;
451 wl1273->core = *core;
453 snd_soc_component_set_drvdata(component, wl1273);
460 struct wl1273_priv *wl1273 = snd_soc_component_get_drvdata(component);
463 kfree(wl1273);
487 MODULE_ALIAS("platform:wl1273-codec");
491 .name = "wl1273-codec",