2 * ALSA SoC CX2070X Channel codec driver
4 * Copyright: (C) 2009/2010 Conexant Systems
6 * Based on sound/soc/codecs/tlv320aic2x.c by Vladimir Barinov
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
16 #define CONFIG_SND_DIGICOLOR_SOC_CHANNEL_VER_4_30F 1
18 #ifdef CONFIG_SND_SOC_CNXT_FW_UPDATE
19 #define CONFIG_SND_CX2070X_LOAD_FW 1
21 //#define CONFIG_SND_CX2070X_USE_FW_H 1
22 //#define CONFIG_CNXT_USING_SPI_BUS 1
24 #ifdef CONFIG_SND_SOC_CNXT_JACKSENSE
25 #define CONFIG_SND_CX2070X_GPIO_JACKSENSE 1
27 //#define CONFIG_SND_CX2070X_GPIO_RESET 1
28 #define CONFIG_SND_CXLIFEGUARD 1
29 //#define CONFIG_CXNT_SOFTWOARE_SIMULATION 1
30 #define DBG_MONITOR_REG 1
32 //#define GPIO_HP_JACKSENSE 178 //Tegra 250
33 //.#define JACK_SENSE_GPIO_PIN 178 // Tegra
34 //#define CODEC_RESET_GPIO_PIN 184 // Tegra
36 #define JACK_SENSE_GPIO_PIN 151 //s5pc110 GPH2_5
37 #define CODEC_RESET_GPIO_PIN 157 //s5pc110 reset pin.
40 #if (defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) ) && !defined(CONFIG_CNXT_USING_SPI_BUS)
44 #if defined(CONFIG_SPI_MASTER) && defined(CONFIG_CNXT_USING_SPI_BUS)
50 Cx_INPUT_SEL_BY_GPIO = 0,
57 Cx_OUTPUT_SEL_BY_GPIO = 0,
85 #define CX2070X_I2C_DRIVER_NAME "cx2070x-i2c"
86 #define CX2070X_SPI_DRIVER_NAME "cx2070x-spi"
87 #define CX2070X_FIRMWARE_FILENAME "cnxt/cx2070x.fw"
88 #define AUDDRV_VERSION(major0,major1, minor, build ) ((major0)<<24|(major1)<<16| (minor)<<8 |(build))