pcm1681.c (acc8da7642c8d8dc408d9713de61273950c20714) pcm1681.c (193a47162c93afa09fffd04a04443f14d402c606)
1/*
2 * PCM1681 ASoC codec driver
3 *
4 * Copyright (c) StreamUnlimited GmbH 2013
5 * Marek Belisko <marek.belisko@streamunlimited.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 7 unchanged lines hidden (view full) ---

16 */
17
18#include <linux/module.h>
19#include <linux/slab.h>
20#include <linux/delay.h>
21#include <linux/gpio.h>
22#include <linux/i2c.h>
23#include <linux/regmap.h>
1/*
2 * PCM1681 ASoC codec driver
3 *
4 * Copyright (c) StreamUnlimited GmbH 2013
5 * Marek Belisko <marek.belisko@streamunlimited.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 7 unchanged lines hidden (view full) ---

16 */
17
18#include <linux/module.h>
19#include <linux/slab.h>
20#include <linux/delay.h>
21#include <linux/gpio.h>
22#include <linux/i2c.h>
23#include <linux/regmap.h>
24#include <linux/of.h>
24#include <linux/of_device.h>
25#include <linux/of_gpio.h>
26#include <sound/pcm.h>
27#include <sound/pcm_params.h>
28#include <sound/soc.h>
29#include <sound/tlv.h>
30
31#define PCM1681_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \

--- 233 unchanged lines hidden (view full) ---

265 { }
266};
267MODULE_DEVICE_TABLE(of, pcm1681_dt_ids);
268#endif
269
270static const struct regmap_config pcm1681_regmap = {
271 .reg_bits = 8,
272 .val_bits = 8,
25#include <linux/of_device.h>
26#include <linux/of_gpio.h>
27#include <sound/pcm.h>
28#include <sound/pcm_params.h>
29#include <sound/soc.h>
30#include <sound/tlv.h>
31
32#define PCM1681_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \

--- 233 unchanged lines hidden (view full) ---

266 { }
267};
268MODULE_DEVICE_TABLE(of, pcm1681_dt_ids);
269#endif
270
271static const struct regmap_config pcm1681_regmap = {
272 .reg_bits = 8,
273 .val_bits = 8,
273 .max_register = 0x13,
274 .max_register = ARRAY_SIZE(pcm1681_reg_defaults) + 1,
274 .reg_defaults = pcm1681_reg_defaults,
275 .num_reg_defaults = ARRAY_SIZE(pcm1681_reg_defaults),
276 .writeable_reg = pcm1681_writeable_reg,
277 .readable_reg = pcm1681_accessible_reg,
278};
279
280static struct snd_soc_codec_driver soc_codec_dev_pcm1681 = {
281 .controls = pcm1681_controls,

--- 58 unchanged lines hidden ---
275 .reg_defaults = pcm1681_reg_defaults,
276 .num_reg_defaults = ARRAY_SIZE(pcm1681_reg_defaults),
277 .writeable_reg = pcm1681_writeable_reg,
278 .readable_reg = pcm1681_accessible_reg,
279};
280
281static struct snd_soc_codec_driver soc_codec_dev_pcm1681 = {
282 .controls = pcm1681_controls,

--- 58 unchanged lines hidden ---