[RFC PATCH 0/5] ASoC: SOF: Intel: SoundWire initial integration

2019-08-21 Thread Pierre-Louis Bossart
d the soundwire DAIs. This solution was tested on IceLake and CometLake, and captures the feedback from SOF contributors on an initial integration that was deemed too complicated (and rightly so). Pierre-Louis Bossart (5): ASoC: SOF: IPC: dai-intel: move ALH declarations in header file ASoC:

[RFC PATCH 5/5] ASoC: SOF: Intel: add support for SoundWire suspend/resume

2019-08-21 Thread Pierre-Louis Bossart
Somehow the core0 needs to be on to set-up the interrupts and power-up the SoundWire IP. Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/intel/hda-dsp.c | 11 +++ sound/soc/sof/intel/hda.c | 2 +- sound/soc/sof/intel/hda.h | 5 + 3 files changed, 17 insertions(+), 1

Re: [RFC PATCH 4/5] ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks

2019-08-22 Thread Pierre-Louis Bossart
Thanks for the review Guennadi +static int sdw_config_stream(void *arg, void *s, void *dai, +void *params, int link_id, int alh_stream_id) I realise, that these function prototypes aren't being introduced by these patches, but just wondering whether such overly gene

Re: [alsa-devel] [RFC PATCH 0/5] ASoC: SOF: Intel: SoundWire initial integration

2019-08-22 Thread Pierre-Louis Bossart
21, 2019 at 03:17:15PM -0500, Pierre-Louis Bossart wrote: This RFC is the companion of the other RFC 'soundwire: intel: simplify DAI/PDI handling​'. Our purpose at this point is to gather feedback on the interfaces between the Intel SOF parts and the SoundWire code. The suggested sol

Re: [alsa-devel] [PATCH] soundwire: bus: set initial value to port_status

2019-09-03 Thread Pierre-Louis Bossart
On 8/29/19 1:11 PM, Bard liao wrote: From: Bard Liao port_status[port_num] are assigned for each port_num in some if conditions. So some of the port_status may not be initialized. Reviewed-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 2 +- 1 file

Re: [alsa-devel] [RFC PATCH 31/40] soundwire: intel: move shutdown() callback and don't export symbol

2019-08-14 Thread Pierre-Louis Bossart
+void intel_shutdown(struct snd_pcm_substream *substream, +    struct snd_soc_dai *dai) +{ +    struct sdw_cdns_dma_data *dma; + +    dma = snd_soc_dai_get_dma_data(dai, substream); +    if (!dma) +    return; + +    snd_soc_dai_set_dma_data(dai, substream, NULL); +    kfree(dma);

Re: [alsa-devel] [PATCH v2 0/3] soundwire: debugfs support for 5.4

2019-08-16 Thread Pierre-Louis Bossart
On 8/16/19 4:43 AM, Vinod Koul wrote: On 12-08-19, 18:59, Pierre-Louis Bossart wrote: This patchset enables debugfs support and corrects all the feedback provided on an earlier RFC ('soundwire: updates for 5.4') There is one remaining hard-coded value in intel.c that will need t

Re: [alsa-devel] [PATCH 0/6] Small fixes

2019-08-27 Thread Pierre-Louis Bossart
: Intel: NHLT: Fix debug print format LGTM Reviewed-by: Pierre-Louis Bossart include/sound/soc-dapm.h | 3 +++ sound/soc/intel/common/sst-ipc.c | 2 ++ sound/soc/intel/skylake/skl-debug.c| 2 +- sound/soc/intel/skylake/skl-messages.c | 5 +++-- sound/soc/intel

Re: mmotm 2019-08-27-20-39 uploaded (sound/hda/intel-nhlt.c)

2019-08-28 Thread Pierre-Louis Bossart
On 8/28/19 1:30 PM, Randy Dunlap wrote: On 8/27/19 8:40 PM, a...@linux-foundation.org wrote: The mm-of-the-moment snapshot 2019-08-27-20-39 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ Th

Re: mmotm 2019-08-27-20-39 uploaded (sound/hda/intel-nhlt.c)

2019-08-28 Thread Pierre-Louis Bossart
On 8/28/19 4:06 PM, Randy Dunlap wrote: On 8/28/19 12:28 PM, Pierre-Louis Bossart wrote: On 8/28/19 1:30 PM, Randy Dunlap wrote: (from linux-next tree, but problem found/seen in mmotm) Sorry, I don't know who is responsible for this driver. That would be me. I just checked

Re: mmotm 2019-08-27-20-39 uploaded (sound/hda/intel-nhlt.c)

2019-08-28 Thread Pierre-Louis Bossart
I just checked with Mark Brown's for-next tree 8aceffa09b4b9867153bfe0ff6f40517240cee12 and things are fine in i386 mode, see below. next-20190828 also works fine for me in i386 mode. if you can point me to a tree and configuration that don't work I'll look into this, I'd need more info to

Re: [alsa-devel] [PATCH v3 0/4] soundwire: debugfs support for 5.4

2019-08-23 Thread Pierre-Louis Bossart
On 8/23/19 1:34 AM, Vinod Koul wrote: On 21-08-19, 13:58, Pierre-Louis Bossart wrote: This patchset enables debugfs support and corrects all the feedback provided on an earlier RFC ('soundwire: updates for 5.4') There is one remaining hard-coded value in intel.c that will need t

Re: [alsa-devel] [RESEND PATCH v4 1/4] dt-bindings: soundwire: add slave bindings

2019-08-23 Thread Pierre-Louis Bossart
On 8/22/19 6:37 PM, Srinivas Kandagatla wrote: This patch adds bindings for Soundwire Slave devices that includes how SoundWire enumeration address and Link ID are used to represented in SoundWire slave device tree nodes. Signed-off-by: Srinivas Kandagatla --- .../soundwire/soundwire-contr

Re: [alsa-devel] [RESEND PATCH v4 2/4] soundwire: core: add device tree support for slave devices

2019-08-23 Thread Pierre-Louis Bossart
On 8/22/19 6:37 PM, Srinivas Kandagatla wrote: This patch adds support to parsing device tree based SoundWire slave devices. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 2 ++ drivers/soundwire/bus.h | 1 + drivers/soundwire/slave.c | 52

Re: [alsa-devel] [RFC PATCH 31/40] soundwire: intel: move shutdown() callback and don't export symbol

2019-08-23 Thread Pierre-Louis Bossart
+void intel_shutdown(struct snd_pcm_substream *substream, +    struct snd_soc_dai *dai) +{ +    struct sdw_cdns_dma_data *dma; + +    dma = snd_soc_dai_get_dma_data(dai, substream); +    if (!dma) +    return; + +    snd_soc_dai_set_dma_data(dai, substream, NULL); +    kfree(dma);

Re: [alsa-devel] [RESEND PATCH v4 1/4] dt-bindings: soundwire: add slave bindings

2019-08-23 Thread Pierre-Louis Bossart
On 8/23/19 10:57 AM, Srinivas Kandagatla wrote: On 23/08/2019 16:41, Pierre-Louis Bossart wrote: On 8/22/19 6:37 PM, Srinivas Kandagatla wrote: This patch adds bindings for Soundwire Slave devices that includes how SoundWire enumeration address and Link ID are used to represented in

Re: [alsa-devel] [RESEND PATCH v4 1/4] dt-bindings: soundwire: add slave bindings

2019-08-26 Thread Pierre-Louis Bossart
+title: SoundWire Controller Generic Binding + +maintainers: +  - Srinivas Kandagatla + +description: | +  SoundWire busses can be described with a node for the SoundWire controller +  device and a set of child nodes for each SoundWire slave on the bus. + +properties: +  $nodename: +    pat

Re: [alsa-devel] [PATCH 1/6] soundwire: fix startup sequence for Intel/Cadence

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 2:11 AM, Vinod Koul wrote: On 13-08-19, 16:32, Pierre-Louis Bossart wrote: Multiple changes squashed in single patch to avoid tick-tock effect. 1. Per the hardware documentation, all changes to MCP_CONFIG, MCP_CONTROL, MCP_CMDCTRL and MCP_PHYCTRL need to be validated with a self

Re: [alsa-devel] [PATCH 2/6] soundwire: cadence_master: add hw_reset capability in debugfs

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 2:13 AM, Vinod Koul wrote: On 13-08-19, 16:32, Pierre-Louis Bossart wrote: Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really useful when some devices are no longer responsive and/or to check the software handling of

Re: [alsa-devel] [RFC PATCH 3/5] ASoC: SOF: Intel: hda: add SoundWire IP support

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 2:21 AM, Vinod Koul wrote: On 21-08-19, 15:17, Pierre-Louis Bossart wrote: The Core0 needs to be powered before the SoundWire IP is initialized. Call sdw_intel_init/exit and store the context. We only have one context, but depending on the hardware capabilities and BIOS settings may

Re: [alsa-devel] [RFC PATCH 4/5] ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 2:35 AM, Vinod Koul wrote: On 22-08-19, 08:53, Pierre-Louis Bossart wrote: Thanks for the review Guennadi +static int sdw_config_stream(void *arg, void *s, void *dai, +void *params, int link_id, int alh_stream_id) I realise, that these function

Re: [alsa-devel] [PATCH v2 1/5] soundwire: Add compute_params callback

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 4:28 AM, Vinod Koul wrote: On 13-08-19, 09:35, Srinivas Kandagatla wrote: From: Vinod Koul This callback allows masters to compute the bus parameters required. Applied this to help manage cross dependencies with various folks better, thanks Meh. doesn't really help, see my earlie

Re: [alsa-devel] [PATCH 2/6] soundwire: cadence_master: add hw_reset capability in debugfs

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 11:49 AM, Vinod Koul wrote: On 04-09-19, 08:18, Pierre-Louis Bossart wrote: On 9/4/19 2:13 AM, Vinod Koul wrote: On 13-08-19, 16:32, Pierre-Louis Bossart wrote: Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really

Re: [alsa-devel] [RFC PATCH 3/5] ASoC: SOF: Intel: hda: add SoundWire IP support

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 11:51 AM, Vinod Koul wrote: On 04-09-19, 08:25, Pierre-Louis Bossart wrote: On 9/4/19 2:21 AM, Vinod Koul wrote: On 21-08-19, 15:17, Pierre-Louis Bossart wrote: The Core0 needs to be powered before the SoundWire IP is initialized. Call sdw_intel_init/exit and store the context

Re: [alsa-devel] [RFC PATCH 4/5] ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks

2019-09-04 Thread Pierre-Louis Bossart
On 9/4/19 11:55 AM, Vinod Koul wrote: On 04-09-19, 08:31, Pierre-Louis Bossart wrote: On 9/4/19 2:35 AM, Vinod Koul wrote: On 22-08-19, 08:53, Pierre-Louis Bossart wrote: Thanks for the review Guennadi +static int sdw_config_stream(void *arg, void *s, void *dai

Re: [alsa-devel] [PATCH -next] ASoC: SOF: imx8: Fix COMPILE_TEST error

2019-09-05 Thread Pierre-Louis Bossart
ot Fixes: 202acc565a1f ("ASoC: SOF: imx: Add i.MX8 HW support") Signed-off-by: YueHaibing Reviewed-by: Pierre-Louis Bossart --- sound/soc/sof/imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/sof/imx/Kconfig b/sound/soc/sof/imx/Kconfig i

Re: [alsa-devel] [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint

2019-09-12 Thread Pierre-Louis Bossart
On 9/11/19 9:27 PM, Yu-Hsuan Hsu wrote: 24 bits recording from DMIC is not supported for KBL platform because the TDM slot between PCH and codec is 16 bits only. We should add a constraint to remove that unsupported format. Humm, when you use DMICs they are directly connected to the PCH with a

Re: [alsa-devel] [PATCH] ASoC: bdw-rt5677: channel constraint support

2019-09-12 Thread Pierre-Louis Bossart
On 9/12/19 1:00 AM, Lu, Brent wrote: The story is Chrome has a tool called alsa_conformance_test which runs capture or playback against a PCM port with all possible configurations (channel, format, rate) then measure if the sample rate is correct. Since the channel max number reported is 4, it t

Re: [alsa-devel] [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint

2019-09-13 Thread Pierre-Louis Bossart
an actual error and if yes can you share more information to help check where the problem happens, topology maybe? Pierre-Louis Bossart <mailto:pierre-louis.boss...@linux.intel.com>> 於 2019年9月12日 週四 下 午9:02寫道: On 9/11/19 9:27 PM, Yu-Hsuan Hsu wrote: > 24 bits reco

Re: [alsa-devel] [PATCH 1/6] soundwire: fix startup sequence for Intel/Cadence

2019-09-16 Thread Pierre-Louis Bossart
@@ -1043,8 +1043,6 @@ static int intel_probe(struct platform_device *pdev)   if (ret)   goto err_init; -    ret = sdw_cdns_enable_interrupt(&sdw->cdns); -   /* Read the PDI config and initialize cadence PDI */   intel_pdi_init(sdw, &config);   ret = sdw_cdns_pdi_init(&s

[PATCH 0/2] soundwire: Kconfig/build improvements

2019-09-16 Thread Pierre-Louis Bossart
The Intel kbuild test reported issues with COMPILE_TEST or cross-compilation when SOF is enabled, fix. This has no functional impact. Pierre-Louis Bossart (2): soundwire: intel: add missing headers for cross-compilation soundwire: intel: remove X86 dependency drivers/soundwire/Kconfig

[PATCH 1/2] soundwire: intel: add missing headers for cross-compilation

2019-09-16 Thread Pierre-Louis Bossart
readl/writel and ioread32 are used without the relevant headers, fix. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 1 + drivers/soundwire/intel_init.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index

[PATCH 2/2] soundwire: intel: remove X86 dependency

2019-09-16 Thread Pierre-Louis Bossart
This is not needed and may generate unmet dependencies when COMPILE_TEST is used for SOF. ACPI is required, and should be tested when selecting this option. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v2 0/5] soundwire: intel/cadence: better initialization

2019-09-16 Thread Pierre-Louis Bossart
le disable interrupts when exit_reset fails, updated error handling returned -EINVAL on debugfs invalid parameter Pierre-Louis Bossart (5): soundwire: intel/cadence: fix startup sequence soundwire: cadence_master: add hw_reset capability in debugfs soundwire: intel: add helper for init

[PATCH v2 2/5] soundwire: cadence_master: add hw_reset capability in debugfs

2019-09-16 Thread Pierre-Louis Bossart
Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really useful when some devices are no longer responsive and/or to check the software handling of resynchronization. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire

[PATCH v2 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-09-16 Thread Pierre-Louis Bossart
Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 18 -- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 12 +++- 3 files

[PATCH v2 3/5] soundwire: intel: add helper for initialization

2019-09-16 Thread Pierre-Louis Bossart
Move code to helper for reuse in power management routines Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 57e599919479

[PATCH v2 1/5] soundwire: intel/cadence: fix startup sequence

2019-09-16 Thread Pierre-Louis Bossart
. flush command FIFOs Better error handling will be provided after interrupt disable is provided in follow-up patches. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 80 +- drivers/soundwire/cadence_master.h | 1 + drivers/soundwire/intel.c

[PATCH v2 5/5] soundwire: cadence_master: make clock stop exit configurable on init

2019-09-16 Thread Pierre-Louis Bossart
-Louis Bossart --- drivers/soundwire/cadence_master.c | 15 --- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c

[PATCH 0/6] soundwire: intel/cadence: simplify PDI handling

2019-09-16 Thread Pierre-Louis Bossart
r ASoC/SOF integration, which is a larger change. Bard Liao (3): soundwire: intel: fix intel_register_dai PDI offsets and numbers soundwire: intel: remove playback/capture stream_name soundwire: cadence_master: improve PDI allocation Pierre-Louis Bossart (3): soundwire: remove DAI_ID_RANGE d

[PATCH 2/6] soundwire: remove DAI_ID_RANGE definitions

2019-09-16 Thread Pierre-Louis Bossart
There is no reason to reserve a range of DAI IDs for SoundWire. This is not scalable and it's better to let the ASoC core allocate the dai->id when registering a component. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 2 -- include/linux/soundwire/sdw.h |

[PATCH 1/6] soundwire: intel: fix intel_register_dai PDI offsets and numbers

2019-09-16 Thread Pierre-Louis Bossart
DIs. Again this was not detected since PDM was not supported earlier. Reported-by: Ranjani Sridharan Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/intel.c b/driv

[PATCH 6/6] soundwire: cadence_master: improve PDI allocation

2019-09-16 Thread Pierre-Louis Bossart
From: Bard Liao PDI number should match dai->id, there is no need to track if a PDI is allocated or not. Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 27 ++- drivers/soundwire/cadence_master.h | 4 +--- driv

[PATCH 3/6] soundwire: intel: remove playback/capture stream_name

2019-09-16 Thread Pierre-Louis Bossart
From: Bard Liao We will create dai widget in SOF. Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index c158a1d19a05

[PATCH 4/6] soundwire: cadence/intel: simplify PDI/port mapping

2019-09-16 Thread Pierre-Louis Bossart
allow for further simplifications where the PDIs are not dynamically allocated but instead described in a topology file. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 110 drivers/soundwire/cadence_master.h | 32 ++- drivers/soundwire/in

[PATCH 5/6] soundwire: intel: don't filter out PDI0/1

2019-09-16 Thread Pierre-Louis Bossart
smart unless we have to remove the smarts. This patch requires a topology change to use PDIs starting at offset 2 explicitly. Note that there is a known discrepancy between hardware documentation and what ALH stream works in practice, future fixes are likely. Signed-off-by: Pierre-Louis Bo

[RFC PATCH 2/9] soundwire: rename dev_to_sdw_dev macro

2019-09-16 Thread Pierre-Louis Bossart
Since we want to introduce master devices, rename macro so that we have consistency between slave and master device access, following the Grey Bus example. Signed-off-by: Pierre-Louis Bossart --- drivers/base/regmap/regmap-sdw.c | 4 ++-- drivers/soundwire/bus.c | 2 +- drivers

[RFC PATCH 0/9] soundwire: add Master device support, GreyBus style

2019-09-16 Thread Pierre-Louis Bossart
e any specific opinion on if/when additional renames should be done, as long as there is a means to clearly identify what is specific to a SoundWire Master I am fine. Feedback and reviews welcome. Bard Liao (1): soundwire: add device driver to sdw_md_driver Pierre-Louis Bossart (8): soundwire

[RFC PATCH 1/9] soundwire: renames to prepare support for master drivers/devices

2019-09-16 Thread Pierre-Louis Bossart
Add clearer references to sdw_slave_driver for internal macros No change for sdw_driver and module_sdw_driver to avoid compatibility issues with existing codec devices No functionality change. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/bus_type.c | 21

[RFC PATCH 3/9] soundwire: rename drv_to_sdw_slave_driver macro

2019-09-16 Thread Pierre-Louis Bossart
Align with previous renames and shorten macro No functionality change Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/bus_type.c | 9 - include/linux/soundwire/sdw_type.h | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/soundwire

[RFC PATCH 7/9] soundwire: add initial definitions for sdw_master_device

2019-09-16 Thread Pierre-Louis Bossart
Since we want an explicit support for the SoundWire Master device, add the definitions, following the Grey Bus example. Open: do we need to set a variable when dealing with the master uevent? Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/Makefile | 2 +- drivers/soundwire

[RFC PATCH 8/9] soundwire: intel: remove platform devices and provide new interface

2019-09-16 Thread Pierre-Louis Bossart
ware register setup. The data structures are also consolidated in a single file and comments added to help follow what is used for what. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 90 + drivers/soundwire/intel.h | 22 +-- drivers/soundwir

[RFC PATCH 5/9] soundwire: intel: rename res field as link_res

2019-09-16 Thread Pierre-Louis Bossart
There are too many fields called 'res' so add prefix to make it easier to track what the structures are. Pure rename, no functionality change Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 37 +++-- 1 file changed, 19 inserti

[RFC PATCH 6/9] soundwire: add support for sdw_slave_type

2019-09-16 Thread Pierre-Louis Bossart
Currently the bus does not have any explicit support for master devices. Add explicit support for sdw_slave_type, so that in follow-up patches we can add support for the sdw_md_type (md==Master Device), following the Grey Bus example. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire

[RFC PATCH 4/9] soundwire: bus_type: rename sdw_drv_ to sdw_slave_drv

2019-09-16 Thread Pierre-Louis Bossart
Before we add master driver support, make sure there is no ambiguity and no occirrences of sdw_drv_ functions. No functionality change. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/bus_type.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers

[RFC PATCH 9/9] soundwire: add device driver to sdw_md_driver

2019-09-16 Thread Pierre-Louis Bossart
From: Bard Liao Setting an device driver is necessary for ASoC to register DAI components. Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 4 drivers/soundwire/master.c| 2 ++ include/linux/soundwire/sdw.h | 1 + 3 files changed, 7

[RFC PATCH 00/12] soundwire/SOF: updated interfaces, functional integration

2019-09-16 Thread Pierre-Louis Bossart
lidation checks on CML/ICL, initialization and playback/capture worked fine, but we observed a reproducible system freeze while doing load/unload tests, so likely an initialization missing or a leak to be fixed. Comments and feedback welcome. Pierre-Louis Bossart (7): ASoC: soc-acpi: add link_ma

[RFC PATCH 03/12] soundwire: intel: update stream callbacks for hwparams/free stream operations

2019-09-16 Thread Pierre-Louis Bossart
allow for extensions as needed. Add the link_id and alh_stream_id parameters which are needed to align with firmware IPC needs. Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 39 +++- drivers/soundwire/intel_init

[RFC PATCH 01/12] ASoC: soc-acpi: add link_mask field

2019-09-16 Thread Pierre-Louis Bossart
configurations where multiple links are required need to be checked first. Additional criteria will be needed later, such as which SoundWire Slave devices are actually enabled, but for now this helps detect between basic configurations. Signed-off-by: Pierre-Louis Bossart --- include/sound/soc

[RFC PATCH 02/12] ASoC: SOF: support alternate list of machines

2019-09-16 Thread Pierre-Louis Bossart
For cases where an interface can be pin-muxed, we need to assess at probe time which configuration should be used. In cases such as SoundWire, we need to maintain an alternate list of machines and walk through them when the primary detection based on ACPI _HID fails. Signed-off-by: Pierre-Louis

[RFC PATCH 06/12] soundwire: intel: add prepare support in sdw dai driver

2019-09-16 Thread Pierre-Louis Bossart
From: Rander Wang It gets sdw runtime information from dai to prepare stream. Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire

[RFC PATCH 04/12] ASoC: SOF: Intel: add SoundWire configuration interface

2019-09-16 Thread Pierre-Louis Bossart
time being the default is to startup the IP after the firmware is downloaded. Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/intel/hda-loader.c | 9 ++ sound/soc/sof/intel/hda.c| 155 +++ sound/soc/sof/intel/hda.h| 36 +++ 3 files changed

[RFC PATCH 12/12] ASoC: SOF: Intel: hda: initial SoundWire machine driver autodetect

2019-09-16 Thread Pierre-Louis Bossart
ng dependencies since we don't know when those devices might become attached, so will only be only be looked at if we see limitations with static methods and the usual quirks based e.g. on DMI information. Signed-off-by: Pierre-Louis Bossart --- sound/soc/

[RFC PATCH 11/12] ASoC: SOF: Intel: hda: add SoundWire stream config/free callbacks

2019-09-16 Thread Pierre-Louis Bossart
These callbacks are invoked when a matching hw_params/hw_free() DAI operation takes place, and will result in IPC operations with the SOF firmware. Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/intel/hda.c | 70 +++ 1 file changed, 70 insertions

[RFC PATCH 08/12] soundwire: intel: add sdw_stream_setup helper for .startup callback

2019-09-16 Thread Pierre-Louis Bossart
From: Rander Wang The sdw stream is allocated and stored in dai to share the sdw runtime information. Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 65 +++ 1 file changed, 65 insertions(+) diff --git a

[RFC PATCH 10/12] ASoC: SOF: IPC: dai-intel: move ALH declarations in header file

2019-09-16 Thread Pierre-Louis Bossart
ALH was inserted in the wrong place during integration, add after DMIC to mirror the file used by SOF firmware. No functional change, just text move in the same file to better track changes, if any. Signed-off-by: Pierre-Louis Bossart --- include/sound/sof/dai-intel.h | 18

[RFC PATCH 05/12] ASoC: SOF: Intel: add build support for SoundWire

2019-09-16 Thread Pierre-Louis Bossart
Select SoundWire capabilities on newer Intel platforms, starting with CannonLake/CoffeeLake/CometLake. As done for HDaudio, the SoundWire link is an opt-in capability. We explicitly test for ACPI to avoid warnings on unmet dependencies on the SoundWire side. Signed-off-by: Pierre-Louis Bossart

[RFC PATCH 09/12] soundwire: intel: free all resources on hw_free()

2019-09-16 Thread Pierre-Louis Bossart
From: Rander Wang Make sure all calls to the SoundWire stream API are done and involve callback Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers

[RFC PATCH 07/12] soundwire: intel: add trigger support in sdw dai driver

2019-09-16 Thread Pierre-Louis Bossart
From: Rander Wang Sdw stream is enabled and disabled in trigger function. Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/soundwire/intel.c b

Re: [alsa-devel] [RFC PATCH 8/9] soundwire: intel: remove platform devices and provide new interface

2019-09-17 Thread Pierre-Louis Bossart
On 9/17/19 12:55 AM, Greg KH wrote: On Mon, Sep 16, 2019 at 04:23:41PM -0500, Pierre-Louis Bossart wrote: +/** + * sdw_intel_probe() - SoundWire Intel probe routine + * @parent_handle: ACPI parent handle + * @res: resource data + * + * This creates SoundWire Master and Slave devices below the

Re: [alsa-devel] Build failure after merge of the sound-current

2019-09-17 Thread Pierre-Louis Bossart
On 9/17/19 5:38 AM, Mark Brown wrote: After merging the sound-current tree, today's linux-next build for x86 allmodconfig failed like this: In file included from /home/broonie/next/next/sound/soc/intel/boards/sof_rt5682.c:23: /home/broonie/next/next/sound/soc/intel/boards/../common/soc-intel

Re: [alsa-devel] [PATCH 2/2] soundwire: depend on ACPI || OF

2019-10-02 Thread Pierre-Louis Bossart
On 10/2/19 3:33 AM, Michal Suchanek wrote: Now devicetree is supposrted for probing sondwire as well. typos... also it'd be simpler to squash the two patches together and add in the commit message a mention that the s390 builds without ACPI and without OF. Fixes: a2e484585ad3 ("soundwire:

Re: [alsa-devel] [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-27 Thread Pierre-Louis Bossart
On 9/27/19 3:39 PM, Andy Shevchenko wrote: On Fri, Sep 27, 2019 at 7:39 PM Pierre-Louis Bossart wrote: The problem with solution #1 is freeing orphaned pointer. It will work, but it's simple is not okay from object life time prospective. ?? I don't get your point at all Andy. Two a

Re: [alsa-devel] [PATCH] ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency

2019-10-01 Thread Pierre-Louis Bossart
On 10/1/19 9:20 AM, Arnd Bergmann wrote: CONFIG_SND_SOC_SOF_IMX depends on CONFIG_SND_SOC_SOF, but is in turn referenced by the sof-of-dev driver. This creates a reverse dependency that manifests in a link error when CONFIG_SND_SOC_SOF_OF is built-in but CONFIG_SND_SOC_SOF_IMX=m: sound/soc/sof/s

Re: [alsa-devel] [PATCH] ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency

2019-10-01 Thread Pierre-Louis Bossart
On 10/1/19 10:41 AM, Arnd Bergmann wrote: On Tue, Oct 1, 2019 at 5:32 PM Pierre-Louis Bossart wrote: On 10/1/19 9:20 AM, Arnd Bergmann wrote: CONFIG_SND_SOC_SOF_IMX depends on CONFIG_SND_SOC_SOF, but is in turn referenced by the sof-of-dev driver. This creates a reverse dependency that

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-10-09 Thread Pierre-Louis Bossart
On 10/9/19 3:32 AM, Srinivas Kandagatla wrote: Hi Pierre, On 14/08/2019 15:09, Pierre-Louis Bossart wrote: On 8/13/19 11:11 PM, Vinod Koul wrote: On 13-08-19, 20:58, Mark Brown wrote: On Tue, Aug 13, 2019 at 02:38:53PM -0500, Pierre-Louis Bossart wrote: Indeed. I don't have a

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-10-09 Thread Pierre-Louis Bossart
On 10/9/19 11:01 AM, Srinivas Kandagatla wrote: On 09/10/2019 15:29, Pierre-Louis Bossart wrote: On 10/9/19 3:32 AM, Srinivas Kandagatla wrote: Hi Pierre, On 14/08/2019 15:09, Pierre-Louis Bossart wrote: On 8/13/19 11:11 PM, Vinod Koul wrote: On 13-08-19, 20:58, Mark Brown wrote

Re: [alsa-devel] [RFC PATCH 8/9] soundwire: intel: remove platform devices and provide new interface

2019-09-18 Thread Pierre-Louis Bossart
On 9/18/19 7:06 AM, Greg KH wrote: On Tue, Sep 17, 2019 at 09:29:52AM -0500, Pierre-Louis Bossart wrote: On 9/17/19 12:55 AM, Greg KH wrote: On Mon, Sep 16, 2019 at 04:23:41PM -0500, Pierre-Louis Bossart wrote: +/** + * sdw_intel_probe() - SoundWire Intel probe routine + * @parent_handle

Re: [alsa-devel] [RFC PATCH 8/9] soundwire: intel: remove platform devices and provide new interface

2019-09-18 Thread Pierre-Louis Bossart
On 9/18/19 8:54 AM, Greg KH wrote: On Wed, Sep 18, 2019 at 03:53:02PM +0200, Greg KH wrote: On Wed, Sep 18, 2019 at 08:48:33AM -0500, Pierre-Louis Bossart wrote: On 9/18/19 7:06 AM, Greg KH wrote: On Tue, Sep 17, 2019 at 09:29:52AM -0500, Pierre-Louis Bossart wrote: On 9/17/19 12:55 AM, Greg

Re: [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-25 Thread Pierre-Louis Bossart
On 9/25/19 11:19 AM, Navid Emamdoost wrote: In snd_skl_parse_uuids if allocation for module->instance_id fails, the allocated memory for module shoulde be released. I changes the allocation for module to use devm_kzalloc to be resource_managed allocation and avoid the release in error path. if

Re: [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-27 Thread Pierre-Louis Bossart
On 9/26/19 9:55 PM, Navid Emamdoost wrote: On Wed, Sep 25, 2019 at 12:05:28PM -0500, Pierre-Louis Bossart wrote: On 9/25/19 11:19 AM, Navid Emamdoost wrote: In snd_skl_parse_uuids if allocation for module->instance_id fails, the allocated memory for module shoulde be released. I changes

Re: [alsa-devel] [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-27 Thread Pierre-Louis Bossart
The problem with solution #1 is freeing orphaned pointer. It will work, but it's simple is not okay from object life time prospective. ?? I don't get your point at all Andy. Two allocations happens in a loop and if the second fails, you free the first and then jump to free everything alloca

Re: [alsa-devel] [PATCH] ASoC: Intel: Atom: read timestamp moved to period_elapsed

2019-07-17 Thread Pierre-Louis Bossart
On 7/10/19 6:15 PM, Curtis Malainey wrote: On Tue, Jul 9, 2019 at 4:45 AM Andy Shevchenko wrote: On Mon, Jul 08, 2019 at 09:01:47PM -0700, Alex Levin wrote: sst_platform_pcm_pointer is called from both snd_pcm_period_elapsed and from snd_pcm_ioctl. Calling read timestamp results in recalcu

Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-05-01 Thread Pierre-Louis Bossart
On 5/1/20 2:31 PM, Radoslaw Biernacki wrote: This single fix address two issues on machines with nau88125: 1) Audio distortion, due to lack of required clock rate on MCLK line 2) Loud audible "pops" on headphones if there is no sysclk during nau8825 playback power up sequence Explanation

[PATCH] soundwire: intel: fix PDI/stream mapping for Bulk

2019-10-22 Thread Pierre-Louis Bossart
The previous formula is incorrect for PDI0/1, the mapping is not linear but has a discontinuity between PDI1 and PDI2. This change has no effect on PCM PDIs (same mapping). Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 10 -- 1 file changed, 8 insertions(+), 2

[PATCH] soundwire: slave: fix scanf format

2019-10-22 Thread Pierre-Louis Bossart
fix cppcheck warning: [drivers/soundwire/slave.c:145]: (warning) %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH 0/3] soundwire: use UniqueID only when relevant

2019-10-22 Thread Pierre-Louis Bossart
same type are detected. The loop to detect multiple identical devices is not super efficient but with typically fewer than 4 devices per link there's no real incentive to be smarter. This change is only implemented for ACPI platforms, for DeviceTree there is no change. Pierre-Louis

[PATCH 1/3] soundwire: remove bitfield for unique_id, use u8

2019-10-22 Thread Pierre-Louis Bossart
; value to account for firmware/BIOS creativity. Signed-off-by: Pierre-Louis Bossart --- include/linux/soundwire/sdw.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 688b40e65c89..28745b9ba279 100644 --- a/inc

[PATCH 3/3] soundwire: ignore uniqueID when irrelevant

2019-10-22 Thread Pierre-Louis Bossart
D, or differences between devID registers and ACPI _ADR fields. This patch suggests a filter on startup to identify 'single' devices and tag them accordingly. The uniqueID is then not used for the probe, and the device name omits the uniqueID as well. Signed-off-by: Pierre-Louis Bossar

[PATCH 2/3] soundwire: slave: add helper to extract slave ID

2019-10-22 Thread Pierre-Louis Bossart
Simplify the loop with a helper. The only functionality change is that we continue the loop even with an ACPI error. Follow-up patches will build on this change. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/slave.c | 50 --- 1 file changed, 31

[PATCH v3 0/5] soundwire: intel/cadence: better initialization

2019-10-22 Thread Pierre-Louis Bossart
iate variable disable interrupts when exit_reset fails, updated error handling returned -EINVAL on debugfs invalid parameter Pierre-Louis Bossart (5): soundwire: intel/cadence: fix startup sequence soundwire: cadence_master: add hw_reset capability in debugfs soundwire: intel: add helper

[PATCH v3 1/5] soundwire: intel/cadence: fix startup sequence

2019-10-22 Thread Pierre-Louis Bossart
. flush command FIFOs Better error handling will be provided after interrupt disable is provided in follow-up patches. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 80 +- drivers/soundwire/cadence_master.h | 1 + drivers/soundwire/intel.c

[PATCH v3 5/5] soundwire: cadence_master: make clock stop exit configurable on init

2019-10-22 Thread Pierre-Louis Bossart
-Louis Bossart --- drivers/soundwire/cadence_master.c | 15 --- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c

[PATCH v3 2/5] soundwire: cadence_master: add hw_reset capability in debugfs

2019-10-22 Thread Pierre-Louis Bossart
Provide debugfs capability to kick link and devices into hard-reset (as defined by MIPI). This capability is really useful when some devices are no longer responsive and/or to check the software handling of resynchronization. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire

[PATCH v3 3/5] soundwire: intel: add helper for initialization

2019-10-22 Thread Pierre-Louis Bossart
Move code to helper for reuse in power management routines Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 748f832e14f6

[PATCH v3 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-10-22 Thread Pierre-Louis Bossart
Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 18 -- drivers/soundwire/cadence_master.h | 2 +- drivers/soundwire/intel.c | 13 +++-- 3 files

Re: [alsa-devel] [PATCH] ASoC: Intel: eve: Enable mclk and ssp sclk early for rt5514

2019-10-23 Thread Pierre-Louis Bossart
On 10/23/19 10:16 AM, Brent Lu wrote: The first DMIC capture always fail (zero sequence data from PCM port) after using DSP hotwording function (i.e. Google assistant). The DMIC is attached to rt5514 which also require eaily mclk/sclk like rt5663. Therefore we add a dapm route to provide ssp mclk

Re: [alsa-devel] [PATCH v2 4/5] soundwire: intel/cadence: add flag for interrupt enable

2019-10-23 Thread Pierre-Louis Bossart
On 10/21/19 11:55 PM, Vinod Koul wrote: On 21-10-19, 05:26, Pierre-Louis Bossart wrote: On 10/20/19 11:14 PM, Vinod Koul wrote: On 16-09-19, 14:09, Pierre-Louis Bossart wrote: Prepare for future PM support and fix error handling by disabling interrupts as needed. Signed-off-by: Pierre

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-10-10 Thread Pierre-Louis Bossart
It's been a while since this thread started, and I still don't quite get the concepts or logic. First, I don't understand what the problem with "aux" devices is. All the SoundWire stuff is based on the concept of DAI, so I guess I am That is the actual problem! Some aux devices does not have

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-10-10 Thread Pierre-Louis Bossart
I still need to figure out prefixing multiple instances of this Amplifier controls with "Left" and "Right" FWIW we use the "snd_codec_conf" stuff to add a prefix for each amplifier, so that the controls are not mixed up between instances of the same amp, see e.g. static struct s

<    1   2   3   4   5   6   7   8   9   10   >