ak4671.c (cf0dbba515415bb19b11f9323d5f7bebd7f24fd6) | ak4671.c (b2c812e22de88bb79c290c0e718280f10b64a48d) |
---|---|
1/* 2 * ak4671.c -- audio driver for AK4671 3 * 4 * Copyright (C) 2009 Samsung Electronics Co.Ltd 5 * Author: Joonyoung Shim <jy0922.shim@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the 9 * Free Software Foundation; either version 2 of the License, or (at your 10 * option) any later version. 11 * 12 */ 13 14#include <linux/module.h> 15#include <linux/init.h> 16#include <linux/i2c.h> 17#include <linux/delay.h> | 1/* 2 * ak4671.c -- audio driver for AK4671 3 * 4 * Copyright (C) 2009 Samsung Electronics Co.Ltd 5 * Author: Joonyoung Shim <jy0922.shim@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the 9 * Free Software Foundation; either version 2 of the License, or (at your 10 * option) any later version. 11 * 12 */ 13 14#include <linux/module.h> 15#include <linux/init.h> 16#include <linux/i2c.h> 17#include <linux/delay.h> |
18#include <linux/slab.h> | |
19#include <sound/soc.h> 20#include <sound/soc-dapm.h> 21#include <sound/initval.h> 22#include <sound/tlv.h> 23 24#include "ak4671.h" 25 26static struct snd_soc_codec *ak4671_codec; --- 670 unchanged lines hidden (view full) --- 697 ret = -EINVAL; 698 goto err; 699 } 700 701 mutex_init(&codec->mutex); 702 INIT_LIST_HEAD(&codec->dapm_widgets); 703 INIT_LIST_HEAD(&codec->dapm_paths); 704 | 18#include <sound/soc.h> 19#include <sound/soc-dapm.h> 20#include <sound/initval.h> 21#include <sound/tlv.h> 22 23#include "ak4671.h" 24 25static struct snd_soc_codec *ak4671_codec; --- 670 unchanged lines hidden (view full) --- 696 ret = -EINVAL; 697 goto err; 698 } 699 700 mutex_init(&codec->mutex); 701 INIT_LIST_HEAD(&codec->dapm_widgets); 702 INIT_LIST_HEAD(&codec->dapm_paths); 703 |
705 codec->private_data = ak4671; | 704 snd_soc_codec_set_drvdata(codec, ak4671); |
706 codec->name = "AK4671"; 707 codec->owner = THIS_MODULE; 708 codec->bias_level = SND_SOC_BIAS_OFF; 709 codec->set_bias_level = ak4671_set_bias_level; 710 codec->dai = &ak4671_dai; 711 codec->num_dai = 1; 712 codec->reg_cache_size = AK4671_CACHEREGNUM; 713 codec->reg_cache = &ak4671->reg_cache; --- 103 unchanged lines hidden --- | 705 codec->name = "AK4671"; 706 codec->owner = THIS_MODULE; 707 codec->bias_level = SND_SOC_BIAS_OFF; 708 codec->set_bias_level = ak4671_set_bias_level; 709 codec->dai = &ak4671_dai; 710 codec->num_dai = 1; 711 codec->reg_cache_size = AK4671_CACHEREGNUM; 712 codec->reg_cache = &ak4671->reg_cache; --- 103 unchanged lines hidden --- |