- 17 2月, 2018 1 次提交
-
-
由 Akshu Agrawal 提交于
When we have same register to tell capture and playback capability of a device and we want separate cpu dais for playback and capture. Then, DW_I2S_QUIRK_COMP_PARAM1 is used to enable one capability per dai. Signed-off-by: NAkshu Agrawal <akshu.agrawal@amd.com> Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 15 8月, 2017 1 次提交
-
-
由 Markus Elfring 提交于
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: NMarkus Elfring <elfring@users.sourceforge.net> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 17 7月, 2017 1 次提交
-
-
由 Gustavo A. R. Silva 提交于
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 29 6月, 2017 1 次提交
-
-
由 Vijendar Mukunda 提交于
Added quirk DW_I2S_QUIRK_16BIT_IDX_OVERRIDE to Designware driver. This quirk will set idx value to 1. By setting this quirk, it will override supported format as 16 bit resolution and bus width as 2 Bytes. Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NVijendar Mukunda <Vijendar.Mukunda@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 30 4月, 2017 1 次提交
-
-
由 Jose Abreu 提交于
Designware PCM is an extension to Designware I2S and they are dependent on each other. For this reason, make Designware PCM a boolean which will compile with Desigwnare I2S module. The name of the module is not changed but the name of the files need to be changed. Also, without this commit we get errors when probbing designware_i2s module because of unspecified license: designware_pcm: module license 'unspecified' taints kernel. Disabling lock debugging due to kernel taint designware_pcm: Unknown symbol __rcu_read_lock (err 0) designware_pcm: Unknown symbol devm_snd_soc_register_platform (err 0) designware_pcm: Unknown symbol synchronize_rcu (err 0) designware_pcm: Unknown symbol __rcu_read_unlock (err 0) designware_pcm: Unknown symbol snd_soc_set_runtime_hwparams (err 0) So, this is really needed as a fix. Fixes: 79361b2b ("ASoC: dwc: Add PIO PCM extension") Signed-off-by: NLubomir Rintel <lkundrak@v3.sk> Signed-off-by: NJose Abreu <joabreu@synopsys.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 09 1月, 2017 1 次提交
-
-
由 Jose Abreu 提交于
Up until now PIO mode offered only playback support. With this patch we add support for record mode. The PCM was refactored so that we could reuse the existing infrastructure without many changes. We have support for 16 and 32 bits of sample size using only 2 channels. Tested in a x86_64 platform and in ARC AXS101 SDP platform. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 14 12月, 2016 1 次提交
-
-
由 Jose Abreu 提交于
We can no longer rely on the return value of devm_snd_dmaengine_pcm_register(...) to check if the DMA handle is declared in the DT. Previously this check activated PIO mode but currently dma_request_chan returns either a valid channel or -EPROBE_DEFER. In order to activate PIO mode check instead if the interrupt line is declared. This reflects better what is documented in the DT bindings (see Documentation/devicetree/bindings/sound/ designware-i2s.txt). Also, initialize use_pio variable which was never being set causing PIO mode to never work. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 08 8月, 2016 1 次提交
-
-
由 Sylwester Nawrocki 提交于
The dw_configure_dai_by_dt() function and further dev->{play,capture} _dma_data.dt data structures seem to be used in this driver only in case of a system using devicetree, thus chan_name assignments have no effect since they will be ignored in dmaengine_pcm_request_chan_of() call and will be substituted with values taken form dmaengine_pcm_dma_channel_names[] table ("tx", "rx"). Also there is no any "TX", "RX" dma-names entries in arch/arm/boot/dts, only lower case "tx", "rx" seem to be used. Lastly, this driver doesn't set SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag when registering a dmaengine PCM to indicate the chan_name should be used. My intention is to eventually remove the struct snd_dmaengine_dai_dma_data chan_name field as there is also a chan_names[] field in struct snd_dmaengine_pcm_config which can be used for same purpose. Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 26 6月, 2016 1 次提交
-
-
由 Colin Ian King 提交于
trivial fix to spelling mistake in dev_err message Signed-off-by: NColin Ian King <colin.king@canonical.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 14 6月, 2016 1 次提交
-
-
由 Jose Abreu 提交于
A PCM extension was added to I2S driver so that audio samples are transferred using PIO mode. The PCM supports two channels @ 16 or 32 bits with rates 32k, 44.1k and 48k. Although the mainline I2S driver uses ALSA DMA engine the I2S controller can be built without DMA support, therefore this is the reason why this extension was added. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Cc: Carlos Palminha <palminha@synopsys.com> Cc: Mark Brown <broonie@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: Rob Herring <robh@kernel.org> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: linux-snps-arc@lists.infradead.org Cc: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 30 5月, 2016 1 次提交
-
-
由 Jose Abreu 提交于
Helper functions to disable and enable the I2S interrupts were added. Only the interrupts of the used channels are enabled. Also, there is no need to enable irqs at dw_i2s_config(), they are already enabled at startup. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Cc: Carlos Palminha <palminha@synopsys.com> Cc: Mark Brown <broonie@kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: Rob Herring <robh@kernel.org> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: linux-snps-arc@lists.infradead.org Cc: alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 08 4月, 2016 1 次提交
-
-
由 Jose Abreu 提交于
This patch makes Designware I2S driver use the fifo depth value to program the fifo configuration register instead of using hardcoded values. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 06 4月, 2016 1 次提交
-
-
由 Jose Abreu 提交于
There is no need to unmask all interrupts at I2S start. This can cause performance issues in slower platforms. Unmask only the interrupts for the used channels. Signed-off-by: NJose Abreu <joabreu@synopsys.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 03 2月, 2016 1 次提交
-
-
由 Jon Medhurst (Tixy) 提交于
In the case that the driver is configured from device-tree i2s_reg_comp1 and i2s_reg_comp2 aren't initialised, breaking the driver. Fix this by unconditionally setting these values before checking for quirks. Fixes: a242cac1 ("ASoC: dwc: add quirk to override COMP_PARAM_1 register") Signed-off-by: NJon Medhurst <tixy@linaro.org> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 10 1月, 2016 1 次提交
-
-
DWC for capture in ACP 2.x IP reports playback and capture capabilities though it supports only capture. Added a quirk to override default value to represent capture capability only. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 08 12月, 2015 3 次提交
-
-
DWC IP can be powered off during system suspend in some platforms. After system is resumed, dwc needs to be programmed again to continue audio use case. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
DWC in ACP 2.x IP has different offsets for I2S_COMP_PARAM_* registers. Added a quirk to support the same. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
When DW controller is in master mode, it can disable/enable clock during the device runtime suspend/resume sequence. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 24 10月, 2015 1 次提交
-
-
DW i2s controller's master/slave config can be read from a read-only register. Machine driver can try to set a master/slave format on cpu-dai using 'set_fmt' of dai ops. A check is added to verify codec is master when dwc is slave and vice-versa. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 05 10月, 2015 1 次提交
-
-
dw i2s controller can work in slave mode, codec being master. dw i2s is made to support master/slave operation, by reading dwc register. Signed-off-by: NMaruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Signed-off-by: NAlex Deucher <alexander.deucher@amd.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 03 10月, 2015 1 次提交
-
-
由 yitian 提交于
Designware I2S uses tx empty and rx available signals as the DMA handshaking signals. during music playing, if XRUN occurs, i2s_stop() function will be executed and both tx and rx irq are masked, when music continues to be played, i2s_start() is executed but both tx and rx irq are not unmasked which cause I2S stop sending DMA handshaking signal to DMA controller, and it finally causes music playing will be stopped once XRUN occurs for the first time. [On list discussion suggests this may be partly a race condition on slow systems -- broonie] Signed-off-by: NYitian Bu <yitian.bu@tangramtek.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 02 10月, 2015 1 次提交
-
-
由 Yitian Bu 提交于
from Designware I2S datasheet, tx/rx XRUN irq is cleared by reading register TOR/ROR, rather than by writing into them. Signed-off-by: NYitian Bu <yitian.bu@tangramtek.com> Signed-off-by: NMark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
-
- 29 1月, 2015 1 次提交
-
-
由 Andrew Jackson 提交于
of_match_ptr is already conditionally compiled based on CONFIG_OF so further conditional compilation is not required. Remove conditional compilation surrounding of_match_ptr. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 31 12月, 2014 5 次提交
-
-
由 Andrew Jackson 提交于
Allow the driver to be configured through a device tree rather than platform data. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
Register SOC component using managed interface to simplify error handling and future introduction of device tree. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
Some I2S clocks may require some time to get the clock ready for operation and so need to be prepared before they are enabled. So, prepare the clock as well as enabling it, but combine the two through clk_prepare_enable. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
The I2S block provides component parameter registers which describe how the block is instantiated. Use these registers to extract the block's configuration rather than relying on platform data. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
Simplify error handling during probe by using managed clock resources. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 22 12月, 2014 4 次提交
-
-
由 Andrew Jackson 提交于
The Designware core can be configured with up to four stereo channels. Each stereo channel is individually configured so, when the driver's hw_params call is made, each requested stereo channel has to be programmed. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
Flush the FIFOs when the stream is prepared for use. This avoids an inadvertent swapping of the left/right channels if the FIFOs are not empty at startup. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
-
由 Andrew Jackson 提交于
Move code that configures the DAI and DMA into a separate function. This reduces the size of the dw_i2s_probe function and will make it easier to add support for device tree to the driver. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Andrew Jackson 提交于
The devm_XXX allocation functions print a message on failure, so additional messages are not required. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 04 12月, 2014 1 次提交
-
-
由 Andrew Jackson 提交于
Prepare for the introduction of device-tree support by re-ordering some of the allocations and using devm_iomap_resource to simplify IO mapping. Signed-off-by: NAndrew Jackson <Andrew.Jackson@arm.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 20 10月, 2014 1 次提交
-
-
由 Wolfram Sang 提交于
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
-
- 09 9月, 2014 1 次提交
-
-
由 Rajeev Kumar 提交于
I moved from ST Microelectronics and so updating email-id to personal one. Signed-off-by: NRajeev Kumar <rajeevkumar.linux@gmail.com> Signed-off-by: NMark Brown <broonie@linaro.org>
-
- 06 9月, 2014 1 次提交
-
-
由 Rajeev Kumar 提交于
I moved from ST Microelectronics and the email-id no longer exists. Update email-id to personal one, Signed-off-by: NRajeev Kumar <rajeevkumar.linux@gmail.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 29 8月, 2013 1 次提交
-
-
由 Fabio Estevam 提交于
Driver core clears the driver data to NULL after device_release or on probe failure, so just remove it from here. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Signed-off-by: NMark Brown <broonie@linaro.org>
-
- 12 6月, 2013 2 次提交
-
-
由 Rajeev Kumar 提交于
Folder path correction in file header. Signed-off-by: NRajeev Kumar <rajeevk-dlh.kumar@st.com> Signed-off-by: NMark Brown <broonie@linaro.org>
-
由 Rajeev Kumar 提交于
Debug message correction. Signed-off-by: NRajeev Kumar <rajeevk-dlh.kumar@st.com> Signed-off-by: NMark Brown <broonie@linaro.org>
-
- 27 3月, 2013 1 次提交
-
-
由 Kuninori Morimoto 提交于
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
-