summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/arizona.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge remote-tracking branch 'asoc/fix/arizona' into asoc-arizonaMark Brown2013-01-131-0/+3
| |\ \
| * | | ASoC: arizona: Factor out rate selection codeMark Brown2013-01-041-36/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for more advanced sample rate managment move the existing code out of the main hw_params() function. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * | | Merge branch 'fix/arizona' of ↵Mark Brown2013-01-041-7/+2
| |\ \ \ | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-arizona
| * | | | ASoC: arizona: Allow runtime reconfiguration of the output modeMark Brown2013-01-041-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some systems use external analogue switches to connect more analogue devices to the CODEC than are supported by the device. In some systems this requires changing the switched output from single ended to differential mode dynamically at runtime. Add a new function arizona_set_output_mode() to support this. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * | | | ASoC: wm5102: Implement routing and power management for ISRCsMark Brown2013-01-041-0/+48
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * | | | ASoC: arizona: Implement tristate supportMark Brown2012-12-241-0/+16
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * | | | ASoC: arizona: Add noise gate hold time enumerationMark Brown2012-12-241-0/+9
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | | | | ASoC: arizona: Fix debug logging level for FLLs and AIFsMark Brown2013-02-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use _dbg for debug messages. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | | | | ASoC: arizona: Fixed a bug in FLL fractional calculationRyo Tsutsui2013-02-041-1/+10
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously arizona_calc_fll() was checking if the target frequency is exactly divisible by reference frequency, but should have been product of the ratio and the reference frequency. Also scale down the Lamba and Theta coefficients be under 16-bits in order to match the registers. Signed-off-by: Ryo Tsutsui <ryo.tsutsui@wolfsonmicro.com> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
* | | | ASoC: arizona: Use actual rather than desired BCLK when calculating LRCLKMark Brown2013-01-171-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Otherwise we'll get the wrong LRCLK if we need to pick a higher BCLK than is required. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
* | | ASoC: arizona: Disable free-running mode on FLL1Charles Keepax2013-01-081-0/+3
| |/ |/| | | | | | | | | | | | | | | The free running mode can cause problems when attempting to bring up the FLL running from a defined clock source. This patch disables free-running mode. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | ASoC: arizona: Remove DSP B and left justified AIF modesMark Brown2013-01-041-6/+0
| | | | | | | | | | | | | | These are not supported. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
* | ASoC: arizona: Do proper shift for setting AIF rateAxel Lin2012-12-241-1/+2
|/ | | | | | | | | ARIZONA_AIF1_RATE_MASK is 0x7800 /* AIF1_RATE - [14:11] */ Thus we need left shift ARIZONA_AIF1_RATE_SHIFT when setting aif1 rate. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
* Merge remote-tracking branch 'asoc/topic/arizona' into asoc-nextMark Brown2012-12-101-1/+52
|\
| * ASoC: arizona: Add volume ramp controlsMark Brown2012-12-091-0/+25
| | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Log the clock we're setting the DAI to useMark Brown2012-12-071-0/+3
| | | | | | | | | | | | Useful for diagnostics. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Store the DAI clock ID when settingMark Brown2012-12-071-0/+2
| | | | | | | | | | | | | | So the code to suppress duplicate changes is effective. Reported-by: Kyung Kwee Ryu <Kyung-Kwee.Ryu@wolfsonmicro.comyu@wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Make FLL lock timeout very highMark Brown2012-12-061-1/+1
| | | | | | | | | | | | | | | | Provide robustness against low quality FLL sync clocks by increasing the timeout for lock to an absurdly high point; we should never get anywhere near hitting the timeout in a real system unless it is failing. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Record FLL setting when disablingMark Brown2012-11-281-0/+3
| | | | | | | | | | | | Otherwise we skip reenables. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Suppress noop FLL updatesMark Brown2012-11-271-0/+6
| | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| * ASoC: arizona: Support higher clock ratesMark Brown2012-11-271-0/+12
| | | | | | | | | | | | Some devices support higher clock rates, allow users to select these. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | ASoC: arizona: Fix typo - Swap value in 48k_rates[] and 44k1_rates[]Dimitris Papastamos2012-11-161-2/+2
|/ | | | | | Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
* ASoC: arizona: Add more clock ratesMark Brown2012-09-261-0/+6
| | | | | | Some devices support additional clock rates. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Add more DSP options for mixer input muxesMark Brown2012-09-261-0/+36
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* Merge tag 'v3.6-rc6' into for-3.7Mark Brown2012-09-221-1/+1
|\ | | | | | | | | | | | | Linux 3.6-rc6 has all our bug fixes. Conflicts (trivial overlap): sound/soc/omap/am3517evm.c
| * ASoC: arizona: Fix typo in 44.1kHz ratesHeather Lomond2012-09-061-1/+1
| | | | | | | | | | Signed-off-by: Heather Lomond <hlomond@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | ASoC: arizona: Clarify logging for FLL lock status interruptMark Brown2012-09-121-1/+1
| | | | | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | ASoC: arizona: Implement OPCLK supportMark Brown2012-08-091-0/+66
|/ | | | | | | | Arizona devices support two output system clocks. Provide support for configuring these via set_sysclk(). Once the clock API is more useful we should migrate over to that. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Support variable FLL VCO multipliersMark Brown2012-07-101-3/+3
| | | | | | | Some Arizona chips have a higher frequency for the FLL VCO, support this in the common code. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Add IN4 to the mixer tablesMark Brown2012-07-091-0/+4
| | | | | | Some devices have four input structures rather than three. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Export dai_opsMark Brown2012-07-091-0/+1
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Change DAPM routes for AIF clocks when we change themMark Brown2012-07-061-3/+29
| | | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
* ASoC: arizona: Enable ASYNCCLK domain for audio interfacesMark Brown2012-07-051-6/+24
| | | | | | | If an audio interface is configured to use ASYNCCLK then update the asynchronous sample rate rather than one of our primary sample rates. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Be more forgiving in BCLK selectionMark Brown2012-07-041-1/+2
| | | | | | | Allow any BCLK which can be divided down to generate LRCLK, not just the lowest possible BCLK to clock out the samples. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Implement AIF clock configurationMark Brown2012-07-041-0/+106
| | | | | | | | Allow the user to select which of the system clocks each AIF is referenced to and constran the DAI to the set of frequencies which can be generated from that clock. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: arizona: Rename current rates tables to bclk_ratesMark Brown2012-07-041-6/+6
| | | | | | | They're the rates for the BCLK, not for the sample rate, so rename so that we don't confuse ourselves. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Add shared code for Wolfson Arizona class devicesMark Brown2012-06-231-0/+781
The Wolfson Arizona series of audio hub CODECs can share a large amount of their driver code as the result of a common register map. This patch adds some of this core support, providing a basis for the initial WM5102 audio driver. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
OpenPOWER on IntegriCloud