diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 12:08:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 12:08:25 -0400 |
commit | b77279bc2e81545b20824da701b349272a78e4e7 (patch) | |
tree | d8f3a8ddf544cf201f8bdcb587cf360571487e5c /sound/soc/fsl/fsl_sai.h | |
parent | 15b588303155b22edd559672905db8e59a44ef9a (diff) | |
parent | 16088cb6c02d0b766b9b8d7edff98da7f1c93205 (diff) |
Merge tag 'sound-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into next
Pull sound updates from Takashi Iwai:
"At this time, majority of changes come from ASoC world while we got a
few new drivers in other places for FireWire and USB. There have been
lots of ASoC core cleanups / refactoring, but very little visible to
external users.
ASoC:
- Support for specifying aux CODECs in DT
- Removal of the deprecated mux and enum macros
- More moves towards full componentisation
- Removal of some unused I/O code
- Lots of cleanups, fixes and enhancements to the davinci, Freescale,
Haswell and Realtek drivers
- Several drivers exposed directly in Kconfig for use with
simple-card
- GPIO descriptor support for jacks
- More updates and fixes to the Freescale SSI, Intel and rsnd drivers
- New drivers for Cirrus CS42L56, Realtek RT5639, RT5642 and RT5651
and ST STA350, Analog Devices ADAU1361, ADAU1381, ADAU1761 and
ADAU1781, and Realtek RT5677
HD-audio:
- Clean up Dell headset quirks
- Noise fixes for Dell and Sony laptops
- Thinkpad T440 dock fix
- Realtek codec updates (ALC293,ALC233,ALC3235)
- Tegra HD-audio HDMI support
FireWire-audio:
- FireWire audio stack enhancement (AMDTP, MIDI), support for
incoming isochronous stream and duplex streams with timestamp
synchronization
- BeBoB-based devices support
- Fireworks-based device support
USB-audio:
- Behringer BCD2000 USB device support
Misc:
- Clean up of a few old drivers, atmel, fm801, etc"
* tag 'sound-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (480 commits)
ASoC: Fix wrong argument for card remove callbacks
ASoC: free jack GPIOs before the sound card is freed
ALSA: firewire-lib: Remove a comment about restriction of asynchronous operation
ASoC: cache: Fix error code when not using ASoC level cache
ALSA: hda/realtek - Fix COEF widget NID for ALC260 replacer fixup
ALSA: hda/realtek - Correction of fixup codes for PB V7900 laptop
ALSA: firewire-lib: Use IEC 61883-6 compliant labels for Raw Audio data
ASoC: add RT5677 CODEC driver
ASoC: intel: The Baytrail/MAX98090 driver depends on I2C
ASoC: rt5640: Add the function "get_clk_info" to RL6231 shared support
ASoC: rt5640: Add the function of the PLL clock calculation to RL6231 shared support
ASoC: rt5640: Add RL6231 class device shared support for RT5640, RT5645 and RT5651
ASoC: cache: Fix possible ZERO_SIZE_PTR pointer dereferencing error.
ASoC: Add helper functions to cast from DAPM context to CODEC/platform
ALSA: bebob: sizeof() vs ARRAY_SIZE() typo
ASoC: wm9713: correct mono out PGA sources
ALSA: synth: emux: soundfont.c: Cleaning up memory leak
ASoC: fsl: Remove dependencies of boards for SND_SOC_EUKREA_TLV320
ASoC: fsl-ssi: Use regmap
ASoC: fsl-ssi: reorder and document fsl_ssi_private
...
Diffstat (limited to 'sound/soc/fsl/fsl_sai.h')
-rw-r--r-- | sound/soc/fsl/fsl_sai.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai.h b/sound/soc/fsl/fsl_sai.h index a264185c7138..0e6c9f595d75 100644 --- a/sound/soc/fsl/fsl_sai.h +++ b/sound/soc/fsl/fsl_sai.h | |||
@@ -35,6 +35,16 @@ | |||
35 | #define FSL_SAI_RFR 0xc0 /* SAI Receive FIFO */ | 35 | #define FSL_SAI_RFR 0xc0 /* SAI Receive FIFO */ |
36 | #define FSL_SAI_RMR 0xe0 /* SAI Receive Mask */ | 36 | #define FSL_SAI_RMR 0xe0 /* SAI Receive Mask */ |
37 | 37 | ||
38 | #define FSL_SAI_xCSR(tx) (tx ? FSL_SAI_TCSR : FSL_SAI_RCSR) | ||
39 | #define FSL_SAI_xCR1(tx) (tx ? FSL_SAI_TCR1 : FSL_SAI_RCR1) | ||
40 | #define FSL_SAI_xCR2(tx) (tx ? FSL_SAI_TCR2 : FSL_SAI_RCR2) | ||
41 | #define FSL_SAI_xCR3(tx) (tx ? FSL_SAI_TCR3 : FSL_SAI_RCR3) | ||
42 | #define FSL_SAI_xCR4(tx) (tx ? FSL_SAI_TCR4 : FSL_SAI_RCR4) | ||
43 | #define FSL_SAI_xCR5(tx) (tx ? FSL_SAI_TCR5 : FSL_SAI_RCR5) | ||
44 | #define FSL_SAI_xDR(tx) (tx ? FSL_SAI_TDR : FSL_SAI_RDR) | ||
45 | #define FSL_SAI_xFR(tx) (tx ? FSL_SAI_TFR : FSL_SAI_RFR) | ||
46 | #define FSL_SAI_xMR(tx) (tx ? FSL_SAI_TMR : FSL_SAI_RMR) | ||
47 | |||
38 | /* SAI Transmit/Recieve Control Register */ | 48 | /* SAI Transmit/Recieve Control Register */ |
39 | #define FSL_SAI_CSR_TERE BIT(31) | 49 | #define FSL_SAI_CSR_TERE BIT(31) |
40 | #define FSL_SAI_CSR_FR BIT(25) | 50 | #define FSL_SAI_CSR_FR BIT(25) |
@@ -48,6 +58,7 @@ | |||
48 | #define FSL_SAI_CSR_FWF BIT(17) | 58 | #define FSL_SAI_CSR_FWF BIT(17) |
49 | #define FSL_SAI_CSR_FRF BIT(16) | 59 | #define FSL_SAI_CSR_FRF BIT(16) |
50 | #define FSL_SAI_CSR_xIE_SHIFT 8 | 60 | #define FSL_SAI_CSR_xIE_SHIFT 8 |
61 | #define FSL_SAI_CSR_xIE_MASK (0x1f << FSL_SAI_CSR_xIE_SHIFT) | ||
51 | #define FSL_SAI_CSR_WSIE BIT(12) | 62 | #define FSL_SAI_CSR_WSIE BIT(12) |
52 | #define FSL_SAI_CSR_SEIE BIT(11) | 63 | #define FSL_SAI_CSR_SEIE BIT(11) |
53 | #define FSL_SAI_CSR_FEIE BIT(10) | 64 | #define FSL_SAI_CSR_FEIE BIT(10) |
@@ -108,6 +119,8 @@ | |||
108 | #define FSL_SAI_CLK_MAST2 2 | 119 | #define FSL_SAI_CLK_MAST2 2 |
109 | #define FSL_SAI_CLK_MAST3 3 | 120 | #define FSL_SAI_CLK_MAST3 3 |
110 | 121 | ||
122 | #define FSL_SAI_MCLK_MAX 3 | ||
123 | |||
111 | /* SAI data transfer numbers per DMA request */ | 124 | /* SAI data transfer numbers per DMA request */ |
112 | #define FSL_SAI_MAXBURST_TX 6 | 125 | #define FSL_SAI_MAXBURST_TX 6 |
113 | #define FSL_SAI_MAXBURST_RX 6 | 126 | #define FSL_SAI_MAXBURST_RX 6 |
@@ -115,10 +128,13 @@ | |||
115 | struct fsl_sai { | 128 | struct fsl_sai { |
116 | struct platform_device *pdev; | 129 | struct platform_device *pdev; |
117 | struct regmap *regmap; | 130 | struct regmap *regmap; |
131 | struct clk *bus_clk; | ||
132 | struct clk *mclk_clk[FSL_SAI_MCLK_MAX]; | ||
118 | 133 | ||
119 | bool big_endian_regs; | 134 | bool big_endian_regs; |
120 | bool big_endian_data; | 135 | bool big_endian_data; |
121 | bool is_dsp_mode; | 136 | bool is_dsp_mode; |
137 | bool sai_on_imx; | ||
122 | 138 | ||
123 | struct snd_dmaengine_dai_dma_data dma_params_rx; | 139 | struct snd_dmaengine_dai_dma_data dma_params_rx; |
124 | struct snd_dmaengine_dai_dma_data dma_params_tx; | 140 | struct snd_dmaengine_dai_dma_data dma_params_tx; |