Commit 33cf45c8 authored by Dimitris Papastamos's avatar Dimitris Papastamos Committed by Mark Brown

ASoC: WM8804: Initial driver

The WM8804 is a high performance consumer mode S/PDIF transceiver with
support for 1 received channel and 1 transmitted channel.
Signed-off-by: default avatarDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6b90b55c
......@@ -56,6 +56,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_WM8750 if SND_SOC_I2C_AND_SPI
select SND_SOC_WM8753 if SND_SOC_I2C_AND_SPI
select SND_SOC_WM8776 if SND_SOC_I2C_AND_SPI
select SND_SOC_WM8804 if SND_SOC_I2C_AND_SPI
select SND_SOC_WM8900 if I2C
select SND_SOC_WM8903 if I2C
select SND_SOC_WM8904 if I2C
......@@ -237,6 +238,9 @@ config SND_SOC_WM8753
config SND_SOC_WM8776
tristate
config SND_SOC_WM8804
tristate
config SND_SOC_WM8900
tristate
......
......@@ -41,6 +41,7 @@ snd-soc-wm8741-objs := wm8741.o
snd-soc-wm8750-objs := wm8750.o
snd-soc-wm8753-objs := wm8753.o
snd-soc-wm8776-objs := wm8776.o
snd-soc-wm8804-objs := wm8804.o
snd-soc-wm8900-objs := wm8900.o
snd-soc-wm8903-objs := wm8903.o
snd-soc-wm8904-objs := wm8904.o
......@@ -114,6 +115,7 @@ obj-$(CONFIG_SND_SOC_WM8741) += snd-soc-wm8741.o
obj-$(CONFIG_SND_SOC_WM8750) += snd-soc-wm8750.o
obj-$(CONFIG_SND_SOC_WM8753) += snd-soc-wm8753.o
obj-$(CONFIG_SND_SOC_WM8776) += snd-soc-wm8776.o
obj-$(CONFIG_SND_SOC_WM8804) += snd-soc-wm8804.o
obj-$(CONFIG_SND_SOC_WM8900) += snd-soc-wm8900.o
obj-$(CONFIG_SND_SOC_WM8903) += snd-soc-wm8903.o
obj-$(CONFIG_SND_SOC_WM8904) += snd-soc-wm8904.o
......
This diff is collapsed.
/*
* wm8804.h -- WM8804 S/PDIF transceiver driver
*
* Copyright 2010 Wolfson Microelectronics plc
*
* Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
*
* 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 _WM8804_H
#define _WM8804_H
/*
* Register values.
*/
#define WM8804_RST_DEVID1 0x00
#define WM8804_DEVID2 0x01
#define WM8804_DEVREV 0x02
#define WM8804_PLL1 0x03
#define WM8804_PLL2 0x04
#define WM8804_PLL3 0x05
#define WM8804_PLL4 0x06
#define WM8804_PLL5 0x07
#define WM8804_PLL6 0x08
#define WM8804_SPDMODE 0x09
#define WM8804_INTMASK 0x0A
#define WM8804_INTSTAT 0x0B
#define WM8804_SPDSTAT 0x0C
#define WM8804_RXCHAN1 0x0D
#define WM8804_RXCHAN2 0x0E
#define WM8804_RXCHAN3 0x0F
#define WM8804_RXCHAN4 0x10
#define WM8804_RXCHAN5 0x11
#define WM8804_SPDTX1 0x12
#define WM8804_SPDTX2 0x13
#define WM8804_SPDTX3 0x14
#define WM8804_SPDTX4 0x15
#define WM8804_SPDTX5 0x16
#define WM8804_GPO0 0x17
#define WM8804_GPO1 0x18
#define WM8804_GPO2 0x1A
#define WM8804_AIFTX 0x1B
#define WM8804_AIFRX 0x1C
#define WM8804_SPDRX1 0x1D
#define WM8804_PWRDN 0x1E
#define WM8804_REGISTER_COUNT 30
#define WM8804_MAX_REGISTER 0x1E
#define WM8804_TX_CLKSRC_MCLK 1
#define WM8804_TX_CLKSRC_PLL 2
#define WM8804_CLKOUT_SRC_CLK1 3
#define WM8804_CLKOUT_SRC_OSCCLK 4
#define WM8804_CLKOUT_DIV 1
#endif /* _WM8804_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment