summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm3168a.h
blob: 56c8332d82fb7fd70378e162f7bec47c17d0e4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
 * PCM3168A codec driver header
 *
 * Copyright (C) 2015 Imagination Technologies Ltd.
 *
 * Author: Damien Horsley <Damien.Horsley@imgtec.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 */

#ifndef __PCM3168A_H__
#define __PCM3168A_H__

extern const struct dev_pm_ops pcm3168a_pm_ops;
extern const struct regmap_config pcm3168a_regmap;

extern int pcm3168a_probe(struct device *dev, struct regmap *regmap);
extern void pcm3168a_remove(struct device *dev);

#define PCM3168A_RST_SMODE			0x40
#define PCM3168A_MRST_MASK			0x80
#define PCM3168A_SRST_MASK			0x40
#define PCM3168A_DAC_SRDA_SHIFT			0
#define PCM3168A_DAC_SRDA_MASK			0x3

#define PCM3168A_DAC_PWR_MST_FMT		0x41
#define PCM3168A_DAC_PSMDA_SHIFT		7
#define PCM3168A_DAC_PSMDA_MASK			0x80
#define PCM3168A_DAC_MSDA_SHIFT			4
#define PCM3168A_DAC_MSDA_MASK			0x70
#define PCM3168A_DAC_FMT_SHIFT			0
#define PCM3168A_DAC_FMT_MASK			0xf

#define PCM3168A_DAC_OP_FLT			0x42
#define PCM3168A_DAC_OPEDA_SHIFT		4
#define PCM3168A_DAC_OPEDA_MASK			0xf0
#define PCM3168A_DAC_FLT_SHIFT			0
#define PCM3168A_DAC_FLT_MASK			0xf

#define PCM3168A_DAC_INV			0x43

#define PCM3168A_DAC_MUTE			0x44

#define PCM3168A_DAC_ZERO			0x45

#define PCM3168A_DAC_ATT_DEMP_ZF		0x46
#define PCM3168A_DAC_ATMDDA_MASK		0x80
#define PCM3168A_DAC_ATMDDA_SHIFT		7
#define PCM3168A_DAC_ATSPDA_MASK		0x40
#define PCM3168A_DAC_ATSPDA_SHIFT		6
#define PCM3168A_DAC_DEMP_SHIFT			4
#define PCM3168A_DAC_DEMP_MASK			0x30
#define PCM3168A_DAC_AZRO_SHIFT			1
#define PCM3168A_DAC_AZRO_MASK			0xe
#define PCM3168A_DAC_ZREV_MASK			0x1
#define PCM3168A_DAC_ZREV_SHIFT			0

#define PCM3168A_DAC_VOL_MASTER			0x47

#define PCM3168A_DAC_VOL_CHAN_START		0x48

#define PCM3168A_ADC_SMODE			0x50
#define PCM3168A_ADC_SRAD_SHIFT			0
#define PCM3168A_ADC_SRAD_MASK			0x3

#define PCM3168A_ADC_MST_FMT			0x51
#define PCM3168A_ADC_MSAD_SHIFT			4
#define PCM3168A_ADC_MSAD_MASK			0x70
#define PCM3168A_ADC_FMTAD_SHIFT		0
#define PCM3168A_ADC_FMTAD_MASK			0x7

#define PCM3168A_ADC_PWR_HPFB			0x52
#define PCM3168A_ADC_PSVAD_SHIFT		4
#define PCM3168A_ADC_PSVAD_MASK			0x70
#define PCM3168A_ADC_BYP_SHIFT			0
#define PCM3168A_ADC_BYP_MASK			0x7

#define PCM3168A_ADC_SEAD			0x53

#define PCM3168A_ADC_INV			0x54

#define PCM3168A_ADC_MUTE			0x55

#define PCM3168A_ADC_OV				0x56

#define PCM3168A_ADC_ATT_OVF			0x57
#define PCM3168A_ADC_ATMDAD_MASK		0x80
#define PCM3168A_ADC_ATMDAD_SHIFT		7
#define PCM3168A_ADC_ATSPAD_MASK		0x40
#define PCM3168A_ADC_ATSPAD_SHIFT		6
#define PCM3168A_ADC_OVFP_MASK			0x1
#define PCM3168A_ADC_OVFP_SHIFT			0

#define PCM3168A_ADC_VOL_MASTER			0x58

#define PCM3168A_ADC_VOL_CHAN_START		0x59

#endif
api/linux/atalk.h?id=e40d5d78df539c0c9b6625cdf5b1bc4b14c4d8bf'>logplain -rw-r--r--atm.h7874logplain -rw-r--r--atm_eni.h585logplain -rw-r--r--atm_he.h343logplain -rw-r--r--atm_idt77105.h892logplain -rw-r--r--atm_nicstar.h1215logplain -rw-r--r--atm_tcp.h1574logplain -rw-r--r--atm_zatm.h1477logplain -rw-r--r--atmapi.h889logplain -rw-r--r--atmarp.h1233logplain -rw-r--r--atmbr2684.h3208logplain -rw-r--r--atmclip.h513logplain -rw-r--r--atmdev.h7636logplain -rw-r--r--atmioc.h1583logplain -rw-r--r--atmlec.h2318logplain -rw-r--r--atmmpc.h4163logplain -rw-r--r--atmppp.h576logplain -rw-r--r--atmsap.h4907logplain -rw-r--r--atmsvc.h1790logplain -rw-r--r--audit.h19048logplain -rw-r--r--auto_dev-ioctl.h5093logplain -rw-r--r--auto_fs.h2260logplain -rw-r--r--auto_fs4.h4010logplain -rw-r--r--auxvec.h1448logplain -rw-r--r--ax25.h2761logplain -rw-r--r--b1lli.h1654logplain -rw-r--r--batman_adv.h8612logplain -rw-r--r--baycom.h820logplain -rw-r--r--bcache.h8237logplain -rw-r--r--bcm933xx_hcs.h356logplain -rw-r--r--bfs_fs.h1830logplain -rw-r--r--binfmts.h580logplain -rw-r--r--blkpg.h1620logplain -rw-r--r--blktrace_api.h4505logplain -rw-r--r--blkzoned.h5105logplain -rw-r--r--bpf.h19098logplain -rw-r--r--bpf_common.h1245logplain -rw-r--r--bpf_perf_event.h483logplain -rw-r--r--bpqether.h918logplain -rw-r--r--bsg.h2446logplain -rw-r--r--bt-bmc.h523logplain -rw-r--r--btrfs.h25922logplain -rw-r--r--btrfs_tree.h25015logplain d---------byteorder117logplain d---------caif112logplain -rw-r--r--can.h7808logplain d---------can204logplain -rw-r--r--capability.h11387logplain -rw-r--r--capi.h3094logplain -rw-r--r--cciss_defs.h3218logplain -rw-r--r--cciss_ioctl.h2727logplain -rw-r--r--cdrom.h28839logplain -rw-r--r--cec-funcs.h54313logplain -rw-r--r--cec.h37095logplain -rw-r--r--cgroupstats.h2155logplain -rw-r--r--chio.h5288logplain d---------cifs40logplain -rw-r--r--cm4000_cs.h1758logplain -rw-r--r--cn_proc.h3285logplain -rw-r--r--coda.h17682logplain -rw-r--r--coda_psdev.h735logplain -rw-r--r--coff.h12413logplain -rw-r--r--connector.h2204logplain -rw-r--r--const.h673logplain -rw-r--r--coresight-stm.h611logplain -rw-r--r--cramfs_fs.h2764logplain -rw-r--r--cryptouser.h3336logplain -rw-r--r--cuda.h857logplain -rw-r--r--cyclades.h17060logplain -rw-r--r--cycx_cfm.h2926logplain -rw-r--r--dcbnl.h24849logplain -rw-r--r--dccp.h6384logplain -rw-r--r--devlink.h4649logplain -rw-r--r--dlm.h2505logplain -rw-r--r--dlm_device.h2536logplain -rw-r--r--dlm_netlink.h1064logplain -rw-r--r--dlm_plock.h846logplain -rw-r--r--dlmconstants.h5017logplain -rw-r--r--dm-ioctl.h10703logplain -rw-r--r--dm-log-userspace.h15126logplain -rw-r--r--dma-buf.h1295logplain -rw-r--r--dn.h4579logplain -rw-r--r--dqblk_xfs.h8934logplain d---------dvb310logplain -rw-r--r--edd.h5556logplain -rw-r--r--efs_fs_sb.h2164logplain -rw-r--r--elf-em.h2166logplain -rw-r--r--elf-fdpic.h1075logplain