/* * ALSA SoC TLV320AIC23 codec driver * * Author: Arun KS, * Copyright: (C) 2008 Mistral Solutions Pvt Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _TLV320AIC23_H #define _TLV320AIC23_H struct device; struct regmap_config; extern const struct regmap_config tlv320aic23_regmap; int tlv320aic23_probe(struct device *dev, struct regmap *regmap); /* Codec TLV320AIC23 */ #define TLV320AIC23_LINVOL 0x00 #define TLV320AIC23_RINVOL 0x01 #define TLV320AIC23_LCHNVOL 0x02 #define TLV320AIC23_RCHNVOL 0x03 #define TLV320AIC23_ANLG 0x04 #define TLV320AIC23_DIGT 0x05 #define TLV320AIC23_PWR 0x06 #define TLV320AIC23_DIGT_FMT 0x07 #define TLV320AIC23_SRATE 0x08 #define TLV320AIC23_ACTIVE 0x09 #define TLV320AIC23_RESET 0x0F /* Left (right) line input volume control register */ #define TLV320AIC23_LRS_ENABLED 0x0100 #define TLV320AIC23_LIM_MUTED 0x0080 #define TLV320AIC23_LIV_DEFAULT 0x0017 #define TLV320AIC23_LIV_MAX 0x001f #define TLV320AIC23_LIV_MIN 0x0000 /* Left (right) channel headphone volume control register */ #define TLV320AIC23_LZC_ON 0x0080 #define TLV320AIC23_LHV_DEFAULT 0x0079 #define TLV320AIC23_LHV_MAX 0x007f #define TLV320AIC23_LHV_MIN 0x0000 /* Analog audio path control register */ #define TLV320AIC23_STA_REG(x) ((x)<<6) #define TLV320AIC23_STE_ENABLED 0x0020 #define TLV320AIC23_DAC_SELECTED 0x0010 #define TLV320AIC23_BYPASS_ON 0x0008 #define TLV320AIC23_INSEL_MIC 0x0004 #define TLV320AIC23_MICM_MUTED 0x0002 #define TLV320AIC23_MICB_20DB 0x0001 /* Digital audio path control register */ #define TLV320AIC23_DACM_MUTE 0x0008 #define TLV320AIC23_DEEMP_32K 0x0002 #define TLV320AIC23_DEEMP_44K 0x0004 #define TLV320AIC23_DEEMP_48K 0x0006 #define TLV320AIC23_ADCHP_ON 0x0001 /* Power control down register */ #define TLV320AIC23_DEVICE_PWR_OFF 0x0080 #define TLV320AIC23_CLK_OFF 0x0040 #define TLV320AIC23_OSC_OFF 0x0020 #define TLV320AIC23_OUT_OFF 0x0010 #define TLV320AIC23_DAC_OFF 0x0008 #define TLV320AIC23_ADC_OFF 0x0004 #define TLV320AIC23_MIC_OFF 0x0002 #define TLV320AIC23_LINE_OFF 0x0001 /* Digital audio interface register */ #define TLV320AIC23_MS_MASTER 0x0040 #define TLV320AIC23_LRSWAP_ON 0x0020 #define TLV320AIC23_LRP_ON 0x0010 #define TLV320AIC23_IWL_16 0x0000 #define TLV320AIC23_IWL_20 0x0004 #define TLV320AIC23_IWL_24 0x0008 #define TLV320AIC23_IWL_32 0x000C #define TLV320AIC23_FOR_I2S 0x0002 #define TLV320AIC23_FOR_DSP 0x0003 #define TLV320AIC23_FOR_LJUST 0x0001 /* Sample rate control register */ #define TLV320AIC23_CLKOUT_HALF 0x0080 #define TLV320AIC23_CLKIN_HALF 0x0040 #define TLV320AIC23_BOSR_384fs 0x0002 /* BOSR_272fs in USB mode */ #define TLV320AIC23_USB_CLK_ON 0x0001 #define TLV320AIC23_SR_MASK 0xf #define TLV320AIC23_CLKOUT_SHIFT 7 #define TLV320AIC23_CLKIN_SHIFT 6 #define TLV320AIC23_SR_SHIFT 2 #define TLV320AIC23_BOSR_SHIFT 1 /* Digital interface register */ #define TLV320AIC23_ACT_ON 0x0001 /* * AUDIO related MACROS */ #define TLV320AIC23_DEFAULT_OUT_VOL 0x70 #define TLV320AIC23_DEFAULT_IN_VOLUME 0x10 #define TLV320AIC23_OUT_VOL_MIN TLV320AIC23_LHV_MIN #define TLV320AIC23_OUT_VOL_MAX TLV320AIC23_LHV_MAX #define TLV320AIC23_OUT_VO_RANGE (TLV320AIC23_OUT_VOL_MAX - \ TLV320AIC23_OUT_VOL_MIN) #define TLV320AIC23_OUT_VOL_MASK TLV320AIC23_OUT_VOL_MAX #define TLV320AIC23_IN_VOL_MIN TLV320AIC23_LIV_MIN #define TLV320AIC23_IN_VOL_MAX TLV320AIC23_LIV_MAX #define TLV320AIC23_IN_VOL_RANGE (TLV320AIC23_IN_VOL_MAX - \ TLV320AIC23_IN_VOL_MIN) #define TLV320AIC23_IN_VOL_MASK TLV320AIC23_IN_VOL_MAX #define TLV320AIC23_SIDETONE_MASK 0x1c0 #define TLV320AIC23_SIDETONE_0 0x100 #define TLV320AIC23_SIDETONE_6 0x000 #define TLV320AIC23_SIDETONE_9 0x040 #define TLV320AIC23_SIDETONE_12 0x080 #define TLV320AIC23_SIDETONE_18 0x0c0 #endif /* _TLV320AIC23_H */ 7space:mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
commit4759d386d55fef452d692bf101167914437e848e (patch)
treee7109c192ec589fcea2a98f9702aa3c0e4009581 /tools/objtool/builtin.h
parent238d1d0f79f619d75c2cc741d6770fb0986aef24 (diff)
parent1db175428ee374489448361213e9c3b749d14900 (diff)
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull DAX updates from Dan Williams: "The completion of Jan's DAX work for 4.10. As I mentioned in the libnvdimm-for-4.10 pull request, these are some final fixes for the DAX dirty-cacheline-tracking invalidation work that was merged through the -mm, ext4, and xfs trees in -rc1. These patches were prepared prior to the merge window, but we waited for 4.10-rc1 to have a stable merge base after all the prerequisites were merged. Quoting Jan on the overall changes in these patches: "So I'd like all these 6 patches to go for rc2. The first three patches fix invalidation of exceptional DAX entries (a bug which is there for a long time) - without these patches data loss can occur on power failure even though user called fsync(2). The other three patches change locking of DAX faults so that ->iomap_begin() is called in a more relaxed locking context and we are safe to start a transaction there for ext4" These have received a build success notification from the kbuild robot, and pass the latest libnvdimm unit tests. There have not been any -next releases since -rc1, so they have not appeared there" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: ext4: Simplify DAX fault path dax: Call ->iomap_begin without entry lock during dax fault dax: Finish fault completely when loading holes dax: Avoid page invalidation races and unnecessary radix tree traversals mm: Invalidate DAX radix tree entries only if appropriate ext2: Return BH_New buffers for zeroed blocks
Diffstat (limited to 'tools/objtool/builtin.h')