Lines Matching refs:wm8940
2 * wm8940.c -- WM8940 ALSA Soc Audio driver
42 #include "wm8940.h"
584 struct wm8940_priv *wm8940 = snd_soc_codec_get_drvdata(codec);
592 wm8940->sysclk = freq;
760 static int wm8940_register(struct wm8940_priv *wm8940,
763 struct wm8940_setup_data *pdata = wm8940->codec.dev->platform_data;
764 struct snd_soc_codec *codec = &wm8940->codec;
775 snd_soc_codec_set_drvdata(codec, wm8940);
783 codec->reg_cache = &wm8940->reg_cache;
836 static void wm8940_unregister(struct wm8940_priv *wm8940)
838 wm8940_set_bias_level(&wm8940->codec, SND_SOC_BIAS_OFF);
840 snd_soc_unregister_codec(&wm8940->codec);
841 kfree(wm8940);
849 struct wm8940_priv *wm8940;
852 wm8940 = kzalloc(sizeof *wm8940, GFP_KERNEL);
853 if (wm8940 == NULL)
856 codec = &wm8940->codec;
858 i2c_set_clientdata(i2c, wm8940);
862 ret = wm8940_register(wm8940, SND_SOC_I2C);
864 kfree(wm8940);
871 struct wm8940_priv *wm8940 = i2c_get_clientdata(client);
873 wm8940_unregister(wm8940);
879 { "wm8940", 0 },