aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)AuthorFilesLines
2013-08-12ALSA: 6fire: make buffers DMA-able (midi)Torsten Schenk2-6/+16
Patch makes midi output buffer DMA-able by allocating it separately. Signed-off-by: Torsten Schenk <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-12ALSA: 6fire: make buffers DMA-able (pcm)Torsten Schenk2-2/+41
Patch makes pcm buffers DMA-able by allocating each one separately. Signed-off-by: Torsten Schenk <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-12ALSA: hda - Add pinfix for LG LW25 laptopTakashi Iwai1-0/+10
Correct the pins for a line-in and a headphone on LG LW25 laptop with ALC880 codec. Other pins seem fine. Reported-and-tested-by: Joonas Saarinen <[email protected]> Cc: <[email protected]> [v3.9+] Signed-off-by: Takashi Iwai <[email protected]>
2013-08-11sound/soc/pxa/mioa701_wm9713.c: Avoid using ARRAY_AND_SIZE(e) as a function ↵Julia Lawall1-2/+3
argument Replace ARRAY_AND_SIZE(e) in function argument position to avoid hiding the arity of the called function. The semantic match that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e,f; @@ f(..., - ARRAY_AND_SIZE(e) + e,ARRAY_SIZE(e) ,...) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-11ASoC: cs4271: Add DAPM supportMark Brown1-0/+24
This makes it possible to hook the device into a more complex board and ensures it will continue to work with non-DAPM support removed from the core. Signed-off-by: Mark Brown <[email protected]> Acked-by: Alexander Sverdlin <[email protected]>
2013-08-11ASoC: cs4271: Convert to table based control initMark Brown1-2/+4
Signed-off-by: Mark Brown <[email protected]> Acked-by: Alexander Sverdlin <[email protected]>
2013-08-11ASoC: max9768: Add DAPM supportMark Brown1-0/+16
This makes it possible to hook the device into a more complex board and ensures it will continue to work with non-DAPM support removed from the core. Signed-off-by: Mark Brown <[email protected]>
2013-08-11ASoC: Use snd_soc_info_enum_double() for SOC_ENUM_EXT controlsLars-Peter Clausen1-27/+0
snd_soc_info_enum_ext() and snd_soc_info_enum_double() are almost identical. The only difference is that snd_soc_info_enum_double() is also able to handle stereo controls. Using snd_soc_info_enum double() instead of snd_soc_info_enum_ext() for the SOC_ENUM_EXT control's info callback allows us to remove snd_soc_info_enum_ext(). Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-11ASoC: Remove unused snd_soc_info_volsw_ext()Lars-Peter Clausen1-26/+0
The SOC_SINGLE_EXT control has been using snd_soc_info_volsw() for its info callback since commit 1c433fb ("[ALSA] soc - 0.13 ASoC headers"). The snd_soc_info_volsw_ext() function has been unused ever since then, so remove it. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-11ASoC: imx-audmux: default configuration parser fixupsMarkus Pargmann1-2/+2
Signed-off-by: Markus Pargmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-10ASoC: Remove unused soc_pm_waitqLars-Peter Clausen1-2/+0
The soc_pm_waitq waitqueue has been around as long as the ASoC framework existed, but has never been used so far, so remove it. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-09sound: oss/dmabuf: remove an unneeded temporary variableDan Carpenter1-2/+1
We don't actually use the "go" variable so it can be removed. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-08ASoC: s6105-ipcam: Fix incorrect placement of __initdataSachin Kamat1-1/+1
__initdata should be placed between the variable name and equal sign for the variable to be placed in the intended section. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-08ASoC: ad73311: Add DAPM supportMark Brown1-1/+21
This makes it possible to hook up other devices in boards and is required by removal of support for non-DAPM CODECs in the core. Signed-off-by: Mark Brown <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]>
2013-08-08ASoC: pcm1681: Staticise DAI driverMark Brown1-1/+1
It is not exported so doesn't need to be in the global namespace and sparse warns on this. Signed-off-by: Mark Brown <[email protected]>
2013-08-08ALSA: don't push static constants on stack for %*phAndy Shevchenko2-4/+3
There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-08ALSA: usb-audio: do not trust too-big wMaxPacketSize valuesClemens Ladisch1-7/+6
The driver used to assume that the streaming endpoint's wMaxPacketSize value would be an indication of how much data the endpoint expects or sends, and compute the number of packets per URB using this value. However, the Focusrite Scarlett 2i4 declares a value of 1024 bytes, while only about 88 or 44 bytes are be actually used. This discrepancy would result in URBs with far too few packets, which would not work correctly on the EHCI driver. To get correct URBs, use wMaxPacketSize only as an upper limit on the packet size. Reported-by: James Stone <[email protected]> Tested-by: James Stone <[email protected]> Cc: <[email protected]> # 2.6.35+ Signed-off-by: Clemens Ladisch <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-07ASoC: ads711x: Add DAPM supportMark Brown1-1/+28
This makes it easier to hook into boards and ensures the driver continues to work with support for non-DAPM CODECs removed. Signed-off-by: Mark Brown <[email protected]>
2013-08-07ALSA: 6fire: fix DMA issues with URB transfer_buffer usageJussi Kivilinna2-6/+34
Patch fixes 6fire not to use stack as URB transfer_buffer. URB buffers need to be DMA-able, which stack is not. Furthermore, transfer_buffer should not be allocated as part of larger device structure because DMA coherency issues and patch fixes this issue too. Cc: [email protected] Signed-off-by: Jussi Kivilinna <[email protected]> Tested-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-07ASoC: ad1980: Provide stub DAPM supportMark Brown1-0/+43
Since non-DAPM devices are not going to be supported provide DAPM input and output widgets and hook them up to the DAIs. Signed-off-by: Mark Brown <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]>
2013-08-06ASoC: imx-mc13783: Make SND_SOC_IMX_MC13783 visible againFabio Estevam1-1/+1
Commit 02502da45 (ASoC: imx-mc13783: Depend on ARCH_ARM) introduced 'ARCH_ARM' as a dependency for SND_SOC_IMX_MC13783, but this is a non-existent symbol. This makes the selection of SND_SOC_IMX_MC13783 to be impossible. Use the correct 'ARM' symbol instead. Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: cs42l52: Add new TLV for Beep VolumeBrian Austin1-1/+4
CS42L52 Beep control uses 2dB scale from -56dB Signed-off-by: Brian Austin <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: cs42l52: Reorder Min/Max and update to SX_TLV for Beep VolumeBrian Austin1-1/+1
Beep Volume Min/Max was backwards. Change to SOC_SONGLE_SX_TLV for correct volume representation Signed-off-by: Brian Austin <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
2013-08-06ASoC: atmel: machine driver for at91sam9x5-wm8731 boardsNicolas Ferre3-0/+220
Description of the Asoc machine driver for an at91sam9x5 based board with a wm8731 audio DAC. Wm8731 is clocked by a crystal and used as a master on the SSC/I2S interface. Its connections are a headphone jack and an Line input jack. [Richard: this is based on an old patch from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Richard Genoud <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: fsl-ssi: Use generic DMA bindings if possibleMarkus Pargmann1-8/+12
There may be some platforms using fsl-ssi that do not have a DMA driver with generic DMA bindings. So this patch adds support for the generic DMA bindings, while still accepting the old "fsl,dma-events" property if "dmas" is not found. Signed-off-by: Markus Pargmann <[email protected]> Tested-by: Shawn Guo <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: fsl-ssi: Add support for imx-pcm-fiqMarkus Pargmann1-12/+67
Add support for non-dma pcm for imx platforms with imx-pcm-fiq support. Instead of imx-pcm-audio, in this case imx-pcm-fiq-audio device is added and the SIER flags are set differently. We need imx-pcm-fiq for some boards that use an incompatible codec. imx-pcm-fiq handles those codecs differently and allows to operate with them. DMA is not possible because some data sent by the codecs, e.g. wm9712, is not in the datastream. Also some data is mixed up in the fifos, so that we need to sort them out manually. Signed-off-by: Markus Pargmann <[email protected]> Tested-by: Shawn Guo <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: imx-audmux: Read default configuration from devicetreeMarkus Pargmann1-0/+62
Adds a function to parse a default port configuration from devicetree. Signed-off-by: Markus Pargmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: rsnd: scu: cleanup empty functionsKuninori Morimoto1-39/+0
This patch cleanups empty functions on scu Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: rsnd: SSI supports DMA transfer via BUSIFKuninori Morimoto4-7/+184
This patch adds BUSIF support for R-Car sound DMAEngine transfer. The sound data will be transferred via FIFO which can cover blank time which will happen when DMA channel is switching. Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: rsnd: SSI supports DMA transferKuninori Morimoto1-3/+107
This patch adds DMAEngine transfer on SSI. But, it transfers sound data from memory to SSI directly without using HPBIF at this time. It will be updated soon Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: rsnd: add common DMAEngine methodKuninori Morimoto2-0/+164
R-Car Sound driver will support DMA transfer in the future, then, SSI/SRU/SRC will use it. Current R-Car can't use soc-dmaengine-pcm.c since its DMAEngine doesn't support dmaengine_prep_dma_cyclic(), and SSI needs double plane transfer (which needs special submit) on DMAC. This patch adds common DMAEngine method for it Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: rsnd: remove platform dai and add dai_id on platform settingKuninori Morimoto4-23/+72
Current rsnd driver is using struct rsnd_dai_platform_info so that indicate sound DAI information (playback/capture SSI ID). But, SSI settings were also required separately. Thus, platform settings was very un-understandable. This patch adds dai_id to SSI settings, and removed rsnd_dai_platform_info. Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: wm5110: Correct input OSR bits for wm5110Charles Keepax3-8/+25
The input OSR bits are specified differently for wm5110 than for current revs of wm5102. This patch corrects support for this on wm5110. Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: twl4030: Remove embedded snd_soc_codec structs from private data structsLars-Peter Clausen1-2/+0
It is unused and a leftover of the pre multi-component era. Signed-off-by: Lars-Peter Clausen <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: mc13783: Remove embedded snd_soc_codec structs from private data structsLars-Peter Clausen1-1/+0
It is unused and a leftover of the pre multi-component era. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: tlv320aic26: Fix keyclick featureLars-Peter Clausen1-4/+7
The tlv320aic26 contains a embedded snd_soc_codec struct which is referenced in the keyclick code. That struct is never initialized though, replace the embedded struct with a pointer and use that in the keyclick code. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-06ASoC: wm8994: Fix class W controlsMark Brown1-1/+1
Commit 6e0650 (ASoC: wm8994: Use SOC_SINGLE_EXT() instead of open-coding it) went too far and converted a DAPM control to use SOC_SINGLE_EXT() which crashes. Revert that portion of the patch. Signed-off-by: Mark Brown <[email protected]>
2013-08-06ALSA: usb-audio: WARN_ON when alts is passed as NULLEldad Zack1-0/+3
Prevent NULL dereference in snd_usb_add_endpoints(), when alts is passed as NULL. In this case, WARN (since this is a non-fatal bug) and return NULL ep. Call sites treat a NULL return value as an error. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: remove implicit_fb from quirkEldad Zack1-7/+1
Since the quirks all apply to implicit feedback (the source endpoint is always a data endpoint), there's no need to set and check a flag for it. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: remove is_playback from implicit feedback quirksEldad Zack1-21/+19
An implicit feedback endpoint can only be a capture source. The consumer (sink) of the implicit feedback endpoint is therefore limited to playback EPs. Check if the target endpoint is a playback first and remove redundant checks. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: do not initialize and check implicit_fbEldad Zack1-5/+3
Since implicit_fb is not changed, !implicit_fb will always be true - it is set only after these checks. Similarly, there's also no need to set it at the top of the function. Change the type of implicit_fb to bool (more appropriate). Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: reverse condition logic in set_sync_endpointEldad Zack1-39/+42
Reverse logic on the conditions required to qualify for a sync endpoint and remove one level of indendation. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: move implicit fb quirks to separate functionEldad Zack1-15/+45
Separate setting implicit feedback quirks from setting a sync endpoint (which may also be explicit feedback or async). Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: separate sync endpoint setting from set_formatEldad Zack1-55/+73
Setting the sync endpoint currently takes up about half of set_format(). Move it to a dedicated function. No functional change. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: remove assignment from if conditionEldad Zack1-1/+2
Following general kernel style. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-06ALSA: usb-audio: remove disabled debug code in set_formatEldad Zack1-9/+0
Code block does not compile when enabled. Signed-off-by: Eldad Zack <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2013-08-05ASoC: mxs: add some error messages to help identifying problemsLothar Waßmann1-6/+23
Signed-off-by: Lothar Waßmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2013-08-05ASoC: pcm1792a: Fix build with !OFMark Brown1-3/+1
Signed-off-by: Mark Brown <[email protected]>
2013-08-05Merge remote-tracking branch 'asoc/topic/pcm1681' into asoc-new-pcmMark Brown3-0/+319
Trivial add/add conflicts: sound/soc/codecs/Kconfig sound/soc/codecs/Makefile
2013-08-05ASoC: kirkwood: move calculation of max buffer size to kirkwood.hRussell King2-1/+3
Signed-off-by: Russell King <[email protected]> Signed-off-by: Mark Brown <[email protected]>