wm8974.c (cf0dbba515415bb19b11f9323d5f7bebd7f24fd6) | wm8974.c (b2c812e22de88bb79c290c0e718280f10b64a48d) |
---|---|
1/* 2 * wm8974.c -- WM8974 ALSA Soc Audio driver 3 * 4 * Copyright 2006-2009 Wolfson Microelectronics PLC. 5 * 6 * Author: Liam Girdwood <linux@wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 4 unchanged lines hidden (view full) --- 13#include <linux/module.h> 14#include <linux/moduleparam.h> 15#include <linux/kernel.h> 16#include <linux/init.h> 17#include <linux/delay.h> 18#include <linux/pm.h> 19#include <linux/i2c.h> 20#include <linux/platform_device.h> | 1/* 2 * wm8974.c -- WM8974 ALSA Soc Audio driver 3 * 4 * Copyright 2006-2009 Wolfson Microelectronics PLC. 5 * 6 * Author: Liam Girdwood <linux@wolfsonmicro.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 4 unchanged lines hidden (view full) --- 13#include <linux/module.h> 14#include <linux/moduleparam.h> 15#include <linux/kernel.h> 16#include <linux/init.h> 17#include <linux/delay.h> 18#include <linux/pm.h> 19#include <linux/i2c.h> 20#include <linux/platform_device.h> |
21#include <linux/slab.h> | |
22#include <sound/core.h> 23#include <sound/pcm.h> 24#include <sound/pcm_params.h> 25#include <sound/soc.h> 26#include <sound/soc-dapm.h> 27#include <sound/initval.h> 28#include <sound/tlv.h> 29 --- 642 unchanged lines hidden (view full) --- 672 dev_err(codec->dev, "Another WM8974 is registered\n"); 673 return -EINVAL; 674 } 675 676 mutex_init(&codec->mutex); 677 INIT_LIST_HEAD(&codec->dapm_widgets); 678 INIT_LIST_HEAD(&codec->dapm_paths); 679 | 21#include <sound/core.h> 22#include <sound/pcm.h> 23#include <sound/pcm_params.h> 24#include <sound/soc.h> 25#include <sound/soc-dapm.h> 26#include <sound/initval.h> 27#include <sound/tlv.h> 28 --- 642 unchanged lines hidden (view full) --- 671 dev_err(codec->dev, "Another WM8974 is registered\n"); 672 return -EINVAL; 673 } 674 675 mutex_init(&codec->mutex); 676 INIT_LIST_HEAD(&codec->dapm_widgets); 677 INIT_LIST_HEAD(&codec->dapm_paths); 678 |
680 codec->private_data = wm8974; | 679 snd_soc_codec_set_drvdata(codec, wm8974); |
681 codec->name = "WM8974"; 682 codec->owner = THIS_MODULE; 683 codec->bias_level = SND_SOC_BIAS_OFF; 684 codec->set_bias_level = wm8974_set_bias_level; 685 codec->dai = &wm8974_dai; 686 codec->num_dai = 1; 687 codec->reg_cache_size = WM8974_CACHEREGNUM; 688 codec->reg_cache = &wm8974->reg_cache; --- 110 unchanged lines hidden --- | 680 codec->name = "WM8974"; 681 codec->owner = THIS_MODULE; 682 codec->bias_level = SND_SOC_BIAS_OFF; 683 codec->set_bias_level = wm8974_set_bias_level; 684 codec->dai = &wm8974_dai; 685 codec->num_dai = 1; 686 codec->reg_cache_size = WM8974_CACHEREGNUM; 687 codec->reg_cache = &wm8974->reg_cache; --- 110 unchanged lines hidden --- |