aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-02-23ASoC: i.MX SSI: Fix DSP_A format.Javier Martin1-1/+1
According to i.MX27 Reference Manual (p 1593) TXBIT0 bit selects whether the most significant or the less significant part of the data word written to the FIFO is transmitted. As DSP_A is the same as DSP_B with a data offset of 1 bit, it doesn't make any sense to remove TXBIT0 bit here. Signed-off-by: Javier Martin <[email protected]> Acked-by: Sascha Hauer <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
2012-02-23ALSA: ctxfi: Fix typo in ctvmem.cMasanari Iida1-1/+1
Correct spelling "virtural" to "virtual" in sound/pci/ctxfi/ctvmem.c Signed-off-by: Masanari Iida <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-23ASoC: wm8962: Remove mistakenly committed debug loggingMark Brown1-4/+0
Signed-off-by: Mark Brown <[email protected]>
2012-02-23ASoC: ak4104: Convert to direct regmap API usageMark Brown1-75/+44
Since the cache is currently open coded this is more of a win than for most devices. Signed-off-by: Mark Brown <[email protected]> Acked-by: Daniel Mack <[email protected]>
2012-02-23ASoC: ak4104: Use snd_soc_write() rather than internal write functionMark Brown1-2/+2
Signed-off-by: Mark Brown <[email protected]> Acked-by: Daniel Mack <[email protected]>
2012-02-23ASoC: ak4104: Use snd_soc_update_bits() for read/modify/writeMark Brown1-23/+15
Don't use the internal I/O functions directly. Signed-off-by: Mark Brown <[email protected]> Acked-by: Daniel Mack <[email protected]>
2012-02-23ASoC: dapm: Check for bias level when powering downMark Brown1-3/+9
Recent enhancements in the bias management means that we might not be in standby when the CODEC is idle and can have active widgets without being in full power mode but the shutdown functionality assumes these things. Add checks for the bias level at each stage so that we don't do transitions other than the ON->PREPARE->STANDBY->OFF ones that the drivers are expecting. Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
2012-02-23ALSA: hda - add id for Atom Cedar Trail HDMI codecWu Fengguang1-0/+2
[the order sorted by tiwai] Signed-off-by: Wu Fengguang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-6fire: add analog input volume controlTorsten Schenk2-0/+73
Add a stereo volume control for analog input channel pair 1/2. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-6fire: add mute control for analog outputsTorsten Schenk2-0/+96
Add a mute control for every analog output channel. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-6fire: add individual volume control for analog channelsTorsten Schenk2-23/+126
Add a stereo volume control for every analog output pair 1/2, 3/4, 5/6. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-6fire: add tlv to controlsTorsten Schenk1-25/+9
Remove the soft log-conversion and add a dB scale according to the DAC documentation instead. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-6fire: remove driver version informationTorsten Schenk12-13/+1
Remove unused driver version information from the individual files. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ASoC: mxs-pcm: Request DMA channel earlyLars-Peter Clausen1-20/+8
Request the DMA channel in the PCM open callback instead of the hwparams callback, this allows us to let open fail if no dma channel is available. This also fixes a bug where the channel will be requested multiple times if hwparams is called multiple times. Signed-off-by: Lars-Peter Clausen <[email protected]> Tested-by: Shawn Guo <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-22ASoC: imx-pcm: Request DMA channel earlyLars-Peter Clausen1-46/+32
Request the DMA channel in the pcm open callback. This allows us to let open fail if there is no dma channel available. Signed-off-by: Lars-Peter Clausen <[email protected]> Tested-by: Shawn Guo <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-22ASoC: imx-ssi: Set dma data earlyLars-Peter Clausen1-8/+20
Move the call to snd_soc_dai_set_dma_data from the hw_params callback to the startup callback. This allows us to use the dma data in the pcm driver's open callback. Signed-off-by: Lars-Peter Clausen <[email protected]> Tested-by: Shawn Guo <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-22ALSA: hda/via - Add a few sanity checksTakashi Iwai1-1/+10
Added sanity checks in a few places not to assume the pins having the certain amp caps or the input-source being always assigned to a mux. No actual bugs have been triggered by these, but surely better to be a bit more robust. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: hda/via - Don't create duplicated boost controlsTakashi Iwai1-1/+8
The driver may create duplicated mic boost controls when there are multiple mics with the very same type / location, and this leads to the error at actual kcontrol creation. It needs to check the validity of the created control and add a proper index if it's duplicated. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-22ALSA: snd-usb-caiaq: Fix the return of XRUNMark Hills1-1/+4
Commit 3702b08 added a lock, but did not account for the case of SNDRV_PCM_POS_XRUN, which would get immediately overwritten. This could be bundled into one if-else-if statement, but the goto helps to clarify the 'exceptional' case. Thanks to Andreas Pape for spotting this. Signed-off-by: Mark Hills <[email protected]> Acked-by: Daniel Mack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ASoC: wm8994: Move wm_hubs callback before we start ramping VMIDMark Brown1-2/+2
Allows the generic code to set up for that. Signed-off-by: Mark Brown <[email protected]>
2012-02-21Merge tag 'asoc-3.3' of ↵Takashi Iwai2-16/+17
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus A couple of small, driver specific fixes - nothing too exciting going on.
2012-02-21ASoC: wm8996: Convert to use DAPM routes for stream connectionsMark Brown1-35/+39
Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm5100: Implement DRC coefficient configurationMark Brown1-0/+2
Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm8996: Implement DRC coefficient configurationMark Brown1-0/+6
Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: core: Add support for masking out parts of coefficient blocksMark Brown2-7/+76
Chip designers frequently include things like the enable and disable controls for algorithms in the register blocks which also hold the coefficients. Since it's desirable to split out the enable/disable control from userspace the plain SND_SOC_BYTES() isn't optimal for these devices. Add a SND_SOC_BYTES_MASK() which allows a bitmask from the first word of the block to be excluded from the control. This supports the needs of devices I've looked at and lets us have a reasonably simple API. Further controls can be added in future if that's needed. Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]>
2012-02-21ASoC: core: Add SND_SOC_BYTES control for coefficient blocksMark Brown2-0/+67
Allow devices to export blocks of registers to the application layer, intended for use for reading and writing coefficient data which can't usefully be worked with by the kernel at runtime (for example, due to requiring complex and expensive calculations or being the results of callibration procedures). Currently drivers are using platform data to provide configurations for coefficient blocks which isn't at all convenient for runtime management or configuration development. Currently only devices using regmap are supported, an error will be generated for any attempt to work with a byte control on a non-regmap device. There's no fundamental block to other devices so support could be added if required. Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]>
2012-02-21ASoC: io: Retrieve val_bytes from the regmap APIMark Brown1-0/+6
Allow us to build infrastructure which needs to know the size of a value without requiring regmap based drivers to supply this information to both ASoC and regmap by asking regmap for the value. Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]>
2012-02-21Merge tag 'topic/introspection' of ↵Mark Brown2-0/+16
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into HEAD New interfaces to allow other subsystems to gather information about the regmap, allowing them to build further subsystem specific generic features on top of the regmap. Merged into ASoC in order to allow us to implement SND_SOC_BYTES_MASK() controls which need to know the word size of the underlying registers.
2012-02-21ASoC: mxs-pcm: Remove unused fields from struct mxs_pcm_runtime_dataLars-Peter Clausen2-9/+0
Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: imx-pcm: Remove unused fields from imx_pcm_runtime_data structLars-Peter Clausen1-9/+0
Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: imx-pcm: Remove empty prepare callbackLars-Peter Clausen1-11/+0
Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm8994: Support external capacitors on MICBIAS2 with jack detectionMark Brown2-0/+27
When an external capacitor is connected to MICBIAS2 on devices with jack detection (which is not required but may be done in some systems) then the loading may mean that better performance is obtained when the microphone bias is enabled normally rather than using the low power mode. Provide platform data allowing systems to indicate if they require this. Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm8994: Actively discharge idle MICBIAS with jack detectMark Brown1-0/+9
This minimises the chance of any external capacitors that are fitted being discharged into headphones as they insert. Signed-off-by: Mark Brown <[email protected]>
2012-02-21ALSA: hda/realtek - Small code cleanupsTakashi Iwai1-135/+5
A few clean-ups for post-static-quirk time: - Call alc_auto_init_std() statically in alc_init() instead of setting spec->init_hook in each caller. spec->init_hook field is left unused for any future use. - Move the call of set_capture_mixer() to to alc_parse_auto_config() instead of each caller. - Get rid of the ADC-filling and imux check in each parser function. This is no longer needed since the auto-parser always check ADCs and imux. It was only for the static quirks. - Kill unused defines Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ALSA: hda/realtek - Fix the wrong offset for two-speaker systemsTakashi Iwai1-1/+5
When the machine has two speakers but wants to put more multi-io jacks, the parser shouldn't consider about the shared DAC but try to assign the individual DACs. Otherwise the channel mapping would be fairly confused and lead to the wrong DACs. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ALSA: hda/realtek - Fix the possible conflicts of Bass Speaker nameTakashi Iwai1-3/+6
When the multi-io is added to the two speaker output configuration, the parser would try to add yet another "Bass Speaker" control since it checks only cfg->line_outs. Add a workaround for it by simply passing the channel name in the case of multi-io outputs. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ALSA: hda/realtek - Create individual mute switches for shared DACTakashi Iwai1-30/+20
Even if the outputs are using shared DACs, we can still create individual mute siwtches since they are assigned per pin. This allows to create, e.g. Speaker and Bass Speaker mute switches while the single volume is used for these outputs. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ALSA: hda/realtek - Fix possible Oops with NULL input_muxTakashi Iwai1-0/+3
When BIOS is damn crazy and gives no pin-config at all, the driver might lead to a NULL dereference. Let's add a NULL check for such a case. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ASoC: wm8994: Enable headphone startup mode 1 for WM1811 and WM8958Mark Brown1-0/+2
The latest recommendation for optimal performance. Signed-off-by: Mark Brown <[email protected]>
2012-02-21ALSA: hda/realtek - Parse aa-loopback items dynamicallyTakashi Iwai1-82/+22
Similarly in patch_via.c, parse the active analog-loopback connections and create a list dynamically rather than static arrays. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ALSA: hda/realtek - Remove the last static quirks for ALC882Takashi Iwai4-1141/+93
Resitance is futile. The remaining static model quirks for Apple machines with ALC882-compatible codecs are converted to the auto-parser now. We can remove all alc*_quirks.c finally. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-21ASoC: ak4642: fixup HeadPhone L/R dapm settingsKuninori Morimoto1-15/+16
Current ak4642 driver had wrong dapm settings for headphone L/R. If you select headphone L, and select R after that, headphone L setting was removed by R settings. This patch fixes it up. It provides just "Headphone Enable" to user side Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: twl4030: Debug code cleanupPeter Ujfalusi1-16/+17
Replace the printk(KERN_ERR* instances with dev_err in the driver. While we are here clean up some of the debug messages as well. Signed-off-by: Peter Ujfalusi <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm_hubs: Convert headphone driver to output driver widgetMark Brown1-3/+2
Mostly for neatness, though it may help with sequencing in some situations. Signed-off-by: Mark Brown <[email protected]>
2012-02-21ASoC: wm8776: Add WM8775 device ID to the WM8776Mark Brown1-1/+7
The WM8775 is register compatible with the WM8776 so can be supported with the same driver though it is an ADC only part. Add the device ID to the WM8776 driver, further updates will be added in the future. Signed-off-by: Mark Brown <[email protected]>
2012-02-20ASoC: ak4104: Convert to module_spi_driver()Mark Brown1-11/+1
Signed-off-by: Mark Brown <[email protected]>
2012-02-20ASoC: ak4104: Remove uninformative print on probe()Mark Brown1-1/+0
Signed-off-by: Mark Brown <[email protected]>
2012-02-20regmap: Allow users to query the size of register valuesMark Brown2-0/+16
Generic infrastructure based on top of regmap may want to operate on blocks of data and therefore find it useful to find the size of the register values. Provide an accessor operation for this. Signed-off-by: Mark Brown <[email protected]>
2012-02-20ALSA: hda/realtek - Add model=fixup not to apply fix-upsTakashi Iwai1-0/+7
If anyone wants to debug the driver and avoid the existing fix-ups, pass model=nofixup option. Then the driver will skip to pick up the fixup list. Signed-off-by: Takashi Iwai <[email protected]>
2012-02-20ALSA: hda/realtek - Drop all ALC880 static quirksTakashi Iwai4-860/+195
Finally the all static quirks for ALC880 are converted to the auto-parser. Since we are never sure whether the BIOS on so many old machines are really correct, the quirk table entries are copied as they are, but just providing the proper pin-config values accordingly. Since alc880_quirks.c is removed, alc882_quirks.c has to be adjusted slightly to be built again. There might be some compile warnings due to the remaining alc882 quirks, but these shall be killed sooner or later, I don't care it much at this point. Signed-off-by: Takashi Iwai <[email protected]>