[PATCH 07/21] ASoC: max98383: fix boolean assignments to true/false

2019-01-04 Thread Pierre-Louis Bossart
Reported by Coccinelle: sound/soc/codecs/max98373.c:411:2-20: WARNING: Assignment of bool to 0/1 sound/soc/codecs/max98373.c:922:2-27: WARNING: Assignment of bool to 0/1 sound/soc/codecs/max98373.c:924:2-27: WARNING: Assignment of bool to 0/1 Signed-off-by: Pierre-Louis Bossart --- sound/soc

[PATCH 05/21] ASoC: rt5645: remove unused mux define

2019-01-04 Thread Pierre-Louis Bossart
From: Bard liao rt5645_if3_adc_in_mux, rt5645_inr_mux, and rt5645_inl_mux are not used. Remove them from the driver. Signed-off-by: Bard liao Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt5645.c | 36 1 file changed, 36 deletions(-) diff

[PATCH 06/21] ASoC: rt5670: remove unused mux/mixer define

2019-01-04 Thread Pierre-Louis Bossart
From: Bard liao Some mux/mixer are not used. Remove them from the driver. Signed-off-by: Bard liao Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt5670.c | 54 --- 1 file changed, 54 deletions(-) diff --git a/sound/soc/codecs/rt5670.c b/sound

Re: [alsa-devel] ALSA:usb audio Higher sample rates on usb audio no longer working.

2019-01-04 Thread Pierre-Louis Bossart
On 1/4/19 10:52 AM, Gopal, Saranya wrote: [ Adding linux-usb ML to Cc, as it's a core USB issue ] So the device seems incorrectly advertising as if it were supporting UAC3 -- assuming the device is still not UAC3-capable. IOW, it's a buggy firmware. We need some blacklisting, or revert the c

Re: [alsa-devel] ALSA:usb audio Higher sample rates on usb audio no longer working.

2019-01-04 Thread Pierre-Louis Bossart
[ Adding linux-usb ML to Cc, as it's a core USB issue ] So the device seems incorrectly advertising as if it were supporting UAC3 -- assuming the device is still not UAC3-capable. IOW, it's a buggy firmware. We need some blacklisting, or revert the commit for now, unless any real UAC3 device

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-03 Thread Pierre-Louis Bossart
arch/ia64/Kconfig:126:error: recursive dependency detected! arch/ia64/Kconfig:126:choice contains symbol IA64_HP_SIM arch/ia64/Kconfig:200:symbol IA64_HP_SIM is part of choice PM kernel/power/Kconfig:144:symbol PM is selected by PM_SLEEP kernel/power/Kconfig:104:symbol PM_SLEEP

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Pierre-Louis Bossart
On 1/2/19 4:58 PM, Sinan Kaya wrote: On Wed, Jan 2, 2019 at 10:50 PM Pierre-Louis Bossart wrote: This is pointing to a kconfig issue on ia64 arch. arch/ia64/Kconfig:128:error: recursive dependency detected! arch/ia64/Kconfig:128:choice contains symbol IA64_HP_SIM arch/ia64/Kconfig

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Pierre-Louis Bossart
otherwise. it doesn't but that's not a good enough reason to lay on the tracks. I'll follow-up with a cleanup for the Intel audio parts when this series is merged. The PCI dependency could be moved to the top-level since it's pretty much required for all platforms except for compilation tests, and there are multiple dependencies that repeated for no good reason, so FWIW Acked-by: Pierre-Louis Bossart

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Pierre-Louis Bossart
I have three opens with this ACPI/PCI change 1. the baseline change fails on my cross-compilation checks, see below the result of the attached script (simplification of the one I use to avoid 0day reports). 2. there are different patterns to express the dependency on PCI e.g.  config MMC_SDH

Re: [alsa-devel] [PATCH v4 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Pierre-Louis Bossart
Please check out this tag next-20181224 and apply the patches afterwards. Thanks, will do. I think this patchset will uncover additional inconsistencies, e.g. for legacy Haswell/Broadwell/Baytrail the machine drivers depend on X86_INTEL_LPSS, which depends in turn on PCI, but the platform dr

Re: [PATCH v4 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2018-12-31 Thread Pierre-Louis Bossart
On 12/31/18 2:35 PM, Sinan Kaya wrote: On Mon, Dec 31, 2018 at 11:29 PM Pierre-Louis Bossart wrote: On 12/31/18 1:35 PM, Sinan Kaya wrote: On Mon, Dec 31, 2018 at 10:30 PM Mark Brown wrote: On Mon, Dec 31, 2018 at 08:52:52PM +0300, Sinan Kaya wrote: On Mon, Dec 31, 2018 at 8:47 PM Mark

Re: [PATCH v4 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2018-12-31 Thread Pierre-Louis Bossart
On 12/31/18 1:35 PM, Sinan Kaya wrote: On Mon, Dec 31, 2018 at 10:30 PM Mark Brown wrote: On Mon, Dec 31, 2018 at 08:52:52PM +0300, Sinan Kaya wrote: On Mon, Dec 31, 2018 at 8:47 PM Mark Brown wrote: I don't have the cover letter or anything for this series, what's going on with dependenci

Re: [GIT PULL] sound updates for 4.21

2018-12-31 Thread Pierre-Louis Bossart
On 12/31/18 12:15 PM, Takashi Iwai wrote: On Mon, 31 Dec 2018 11:24:41 +0100, Pierre-Louis Bossart wrote: On 12/31/18 2:11 AM, Takashi Iwai wrote: On Mon, 31 Dec 2018 00:17:58 +0100, Pierre-Louis Bossart wrote: BTW, one thing I'd really like to avoid is to rearrange the probe procedu

Re: [GIT PULL] sound updates for 4.21

2018-12-31 Thread Pierre-Louis Bossart
On 12/31/18 7:43 AM, Azat Khuzhin wrote: +/* CFL and later models, preferring ASoC when DSP is available */ +#define IS_CFL_PLUS(pci)\ + ((pci)->vendor == 0x8086 && \ +((pci)->device == 0xa348 || \ + (pci)->device == 0x9dc8 || \ + (pci)->device == 0x34

Re: [GIT PULL] sound updates for 4.21

2018-12-31 Thread Pierre-Louis Bossart
On 12/31/18 2:11 AM, Takashi Iwai wrote: On Mon, 31 Dec 2018 00:17:58 +0100, Pierre-Louis Bossart wrote: BTW, one thing I'd really like to avoid is to rearrange the probe procedure of the legacy HDA driver (so that we can get codec_mask during pci probe() call). The async probe is the r

Re: [GIT PULL] sound updates for 4.21

2018-12-30 Thread Pierre-Louis Bossart
On 12/30/18 6:19 PM, Linus Torvalds wrote: On Sun, Dec 30, 2018 at 3:18 PM Pierre-Louis Bossart wrote: The KabyLake Dell XPS13 was initially used for the ASoC driver for HDaudio, so there is no known hardware-related reason why this problem happens. Mine isn't the Kabylake one, it&

Re: [PATCH] sound: atom: fix a missing check of snd_pcm_lib_malloc_pages

2018-12-26 Thread Pierre-Louis Bossart
On 12/25/18 8:29 PM, Kangjie Lu wrote: snd_pcm_lib_malloc_pages() may fail, so let's check its status and return its error code upstream. Acked-by: Pierre-Louis Bossart Signed-off-by: Kangjie Lu --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 8 +++- 1 file chang

Re: [PATCH v3 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2018-12-26 Thread Pierre-Louis Bossart
On 12/23/18 5:25 PM, Sinan Kaya wrote: Code does unconditional select for IOSF_MBI. IOSF_MBI driver depends on CONFIG_PCI set but this is not specified anywhere. Can you please share the .config that exposes this problem? This hasn't changed in a long time and I wonder why this pops up now.

[PATCH] ASoC: Intel: fix unmet dependencies in Kconfig

2018-12-21 Thread Pierre-Louis Bossart
Remove warnings by selecting SND_HDA_INTEL_DSP_DETECTION_XYZ only when SND_HDA_INTEL is part of the config. Fixes: c337104b1a16 ('ALSA: HD-Audio: SKL+: abort probe if DSP is present and Skylake driver selected') Reported-by: Randy Dunlap Signed-off-by: Pierre-Louis Bossart --- sound

Re: [alsa-devel] linux-next: Tree for Dec 21 (SND_HDA_INTEL_DSP_DETECTION)

2018-12-21 Thread Pierre-Louis Bossart
On 12/21/18 12:02 PM, Randy Dunlap wrote: On 12/21/18 12:32 AM, Stephen Rothwell wrote: Hi all, News: there will be no linux-next release until Jan 2. Have a good break. Changes since 20181220: on x86_64: A new group of Kconfig "select"s is causing kconfig warnings: WARNING: unmet direc

Re: [alsa-devel] [PATCH] ASoC: Intel: kbl_da7219_max98927: fix the audio jack button remapping

2018-12-10 Thread Pierre-Louis Bossart
guess this is the v2 Acked-by: Pierre-Louis Bossart As discussed in the v1 thread, we'll need to align other DA7219-based devices to use the same mapping. --- sound/soc/intel/boards/kbl_da7219_max98927.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/

Re: [PATCH v1] ASoC: Intel: kbl_da7219_max98927: fix the audio jack button remapping

2018-12-07 Thread Pierre-Louis Bossart
On 12/7/18 3:05 AM, Zhuohao Lee wrote: From the da7219 spec, the button A, B, C and D are remapped to 0, 1, 2 and 3 respectively where button A is KEY_PLAYPAUSE, B is KEY_VOLUMEUP, C is KEY_VOLUMEDOWN and D is KEY_VOICECOMMAND Ok, but could fix all da7219-based machine drivers then, the mapp

Re: [PATCH AUTOSEL 4.19 031/123] ASoC: Intel: Power down links before turning off display audio power

2018-12-05 Thread Pierre-Louis Bossart
On 12/5/18 3:48 AM, Mark Brown wrote: On Wed, Dec 05, 2018 at 04:34:23AM -0500, Sasha Levin wrote: From: Pierre-Louis Bossart [ Upstream commit 4c10473d6ddf12ec124c9ff71a5d23bb5388478b ] On certain platforms, Display HDMI HDA codec was not going to sleep state after the use when links are

Re: [RFC PATCH 0/6] ASoC:Intel:Skylake: Enable HDaudio legacy fallback

2018-11-28 Thread Pierre-Louis Bossart
On 11/21/18 4:32 AM, Takashi Iwai wrote: On Tue, 20 Nov 2018 22:36:38 +0100, Pierre-Louis Bossart wrote: This patchset is provided as an RFC and should not be merged as is (Turkey break in the USA and more validation needed). This is however a good time to gather comments. This work is the

Re: [alsa-devel] [RFC PATCH 1/6] ASoC: Intel: Skylake: Add CFL-S support

2018-11-23 Thread Pierre-Louis Bossart
On 11/22/18 3:56 AM, Andy Shevchenko wrote: On Wed, Nov 21, 2018 at 11:17:41PM +0100, Takashi Iwai wrote: On Wed, 21 Nov 2018 18:38:41 +0100, Andy Shevchenko wrote: Compare: /* CFL */ { PCI_DEVICE(0x8086, 0xa348), .driver_data = (unsigned long)&snd_soc_acpi_in

Re: [RFC PATCH 2/6] ASoC: Intel: Skylake: stop init/probe if DSP is not present

2018-11-21 Thread Pierre-Louis Bossart
On 11/21/18 8:29 AM, Andy Shevchenko wrote: On Tue, Nov 20, 2018 at 03:36:40PM -0600, Pierre-Louis Bossart wrote: Check immediately if the DSP can be found, bail and avoid doing inits to enable legacy fallback without delay. It does slightly more than described. Please do either remove

Re: [RFC PATCH 1/6] ASoC: Intel: Skylake: Add CFL-S support

2018-11-21 Thread Pierre-Louis Bossart
On 11/21/18 8:27 AM, Andy Shevchenko wrote: On Tue, Nov 20, 2018 at 03:36:39PM -0600, Pierre-Louis Bossart wrote: From: Takashi Iwai It's with CNP, supposed to be equivalent with CNL entry. May you consider to switch to PCI_DEVICE_DATA() first? Is this really the recommended path?

[RFC PATCH 0/6] ASoC:Intel:Skylake: Enable HDaudio legacy fallback

2018-11-20 Thread Pierre-Louis Bossart
individually and last provide a dynamic fallback mechanism when two drivers are registered for the same PCI ID. When the SOF driver is released, the same mechanism will be used to enable the SOF-legacy fallback. There will be no plans to enable an SOF->SST falback. Pierre-Louis Bossart (4): A

[RFC PATCH 1/6] ASoC: Intel: Skylake: Add CFL-S support

2018-11-20 Thread Pierre-Louis Bossart
From: Takashi Iwai It's with CNP, supposed to be equivalent with CNL entry. Signed-off-by: Takashi Iwai Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/skylake/skl-messages.c | 8 sound/soc/intel/skylake/skl.c | 3 +++ 2 files changed, 11 insertions(+) diff --

[RFC PATCH 5/6] ALSA: hda: Allow fallback binding with legacy HD-audio for Intel SKL+

2018-11-20 Thread Pierre-Louis Bossart
es. Credits to Takashi for the initial code shared on the alsa-devel mailing list. Testing with base-defconfig, sst-defconfig and hdaudio-defconfigs provided at https://github.com/thesofproject/kconfig Signed-off-by: Takashi Iwai Signed-off-by: Pierre-Louis Bossart --- include/sound/hdaudio.h

[RFC PATCH 3/6] ASoC: Intel: Skylake: remove useless tests on DSP presence

2018-11-20 Thread Pierre-Louis Bossart
bus->ppcap is now tested upfront, there is no need to re-check if the DSP is present. Remove tests and remove indentation. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/skylake/skl.c | 40 --- 1 file changed, 18 insertions(+), 22 deletions(-) d

[RFC PATCH 6/6] ALSA: hda: add fallback capabilities for SKL+ platforms

2018-11-20 Thread Pierre-Louis Bossart
Enable fallback for select PCI IDs Signed-off-by: Pierre-Louis Bossart --- sound/pci/hda/Kconfig | 40 +++ sound/pci/hda/hda_intel.c | 19 +-- sound/soc/intel/Kconfig | 6 ++ 3 files changed, 59 insertions(+), 6 deletions(-) diff

[RFC PATCH 2/6] ASoC: Intel: Skylake: stop init/probe if DSP is not present

2018-11-20 Thread Pierre-Louis Bossart
Check immediately if the DSP can be found, bail and avoid doing inits to enable legacy fallback without delay. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/skylake/skl.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/sound/soc/intel

[RFC PATCH 4/6] ASoC: Intel: Skylake: Add more platform granularity

2018-11-20 Thread Pierre-Louis Bossart
ed choices in supported platforms. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig| 73 ++ sound/soc/intel/boards/Kconfig | 16 +++- sound/soc/intel/skylake/skl.c | 12 ++ 3 files changed, 92 insertions(+), 9 deletions(-) diff --g

Re: sound/soc/intel/skylake/skl.c:874: undefined reference to `snd_soc_hdac_hda_get_ops'

2018-11-19 Thread Pierre-Louis Bossart
Th On 11/19/18 7:26 AM, kbuild test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6 commit: 6bae5ea9498926440ffc883f3dbceb0adc65e492 ASoC: hdac_hda: add asoc extension for legacy HDA codec drivers d

Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-06 Thread Pierre-Louis Bossart
On 11/5/18 6:58 PM, He, Bo wrote: Hi, I submit the patch based on tag v4.19. Please don't post on mailing lists. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.o

Re: [alsa-devel] [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA

2018-11-05 Thread Pierre-Louis Bossart
We have this ("strange") lines over the drivers: config BAR depends on FOO || FOO=n which guarantees that FOO will be not module when BAR is built-in. That's what I normally use, but I could not figure this one out. One problem is that SND_SOC_ALL_CODECS selects SND_SOC_HDAC_HDA, and SND_SOC

Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread Pierre-Louis Bossart
On 11/5/18 2:29 AM, He, Bo wrote: skl->dais is allocated with devm_kcalloc, can't free with the krealloc. Memory allocated with devm API is automatically freed on driver detach, Like all other devres resources. Refer to drivers/base/devres.c devm_kmalloc for more details. What code are you l

Re: [alsa-devel] [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA

2018-11-04 Thread Pierre-Louis Bossart
On 11/2/18 5:03 PM, Arnd Bergmann wrote: On 11/2/18, Pierre-Louis Bossart wrote: On 11/2/18 6:24 AM, Arnd Bergmann wrote: The skylake sound support is written to work both with or without CONFIG_SND_SOC_HDAC_HDA, and uses an #ifdef to decide whether it should link against that. However

Re: [alsa-devel] [PATCH] ASoC: Intel: mrfld: fix uninitialized variable access

2018-11-04 Thread Pierre-Louis Bossart
ails. yes indeed, good catch. Acked-by: Pierre-Louis Bossart Fixes: 9012c9544eea ("ASoC: Intel: mrfld - Add DSP load and management") Signed-off-by: Arnd Bergmann --- sound/soc/intel/atom/sst/sst_loader.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA

2018-11-02 Thread Pierre-Louis Bossart
On 11/2/18 6:24 AM, Arnd Bergmann wrote: The skylake sound support is written to work both with or without CONFIG_SND_SOC_HDAC_HDA, and uses an #ifdef to decide whether it should link against that. However, this fails with SND_SOC_ALL_CODECS=m or SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=m when th

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-31 Thread Pierre-Louis Bossart
Just thought it worth mentioning, this new patch that fixes sound again, seems to have ressurected an old issue with PLL unlock. I'm seeing journal entries after fresh boot .. ``` picard kernel: max98090 i2c-193C9890:00: PLL unlocked picard systemd[462]: Started Sound Service. picard kern

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Pierre-Louis Bossart
On 10/30/18 11:02 AM, Hans de Goede wrote: Hi, On 30-10-18 16:46, Hans de Goede wrote: Hi, On 30-10-18 16:04, Pierre-Louis Bossart wrote: On 10/30/18 9:38 AM, Dean Wallace wrote: On 30-10-18, Hans de Goede wrote: Hi Dean, Attached are 2 different attempts at fixing this. When trying

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Pierre-Louis Bossart
On 10/30/18 10:46 AM, Hans de Goede wrote: Hi, On 30-10-18 16:04, Pierre-Louis Bossart wrote: On 10/30/18 9:38 AM, Dean Wallace wrote: On 30-10-18, Hans de Goede wrote: Hi Dean, Attached are 2 different attempts at fixing this. When trying these patches do not forget to remove the

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Pierre-Louis Bossart
On 10/30/18 10:03 AM, Andy Shevchenko wrote: On Tue, Oct 30, 2018 at 4:48 PM Hans de Goede wrote: On 30-10-18 15:38, Dean Wallace wrote: Excellent work Hans. Compiled 4.19 with 0001-ASoC-intel-cht_bsw_max98090_ti-Use-pmc_plt_clk_0-ins.patch, sound works as before. for i in /sys/kernel/debu

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Pierre-Louis Bossart
e problem of trying to manage from the kernel what the firmware already manages. Regards, Hans On 29-10-18 23:03, Pierre-Louis Bossart wrote: On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-29 Thread Pierre-Louis Bossart
On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as well. On Mon, Oct 29, 2018 at 7:48 PM Stephen Boyd wrote: Quoting Dean Wallace (2018-10-25 16:25:17) I have found a regression in 4.18.15 that

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Pierre-Louis Bossart
Good to hear, applied the patch now. BTW looking at the structures in intel_hdmi_lpe_audio.h, the field format:3 in audio_ch_status_0 is misleading at best, it should be the emphasis if I look at the SPDIF/AES docs. It's not used but I'll have to relook at all this when I find some time... We

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-06 Thread Pierre-Louis Bossart
This val_bit is only there for debug/test, it should be set to one by default and has nothing to do with the lpcm_id. This variable was set even in patches before upstream submission and was never needed, I guess it must be a 9-yr old issue. Good catch! Acked-by: Pierre-Louis Bossart BTW

Re: [alsa-devel] [PATCH 9/9] ALSA: intel_hdmi: remove redundant variable cfg_val

2018-08-01 Thread Pierre-Louis Bossart
On 8/1/18 4:00 AM, Takashi Iwai wrote: On Wed, 01 Aug 2018 12:47:42 +0200, Colin King wrote: From: Colin Ian King Variable cfg_val is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cfg_val' set but not used [-Wunused-but

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-30 Thread Pierre-Louis Bossart
On 7/27/18 11:28 PM, Agrawal, Akshu wrote: On 7/27/2018 8:39 PM, Pierre-Louis Bossart wrote: On 7/27/18 5:13 AM, Akshu Agrawal wrote: There are cases where a pointer function populates runtime->delay, such as: ./sound/pci/hda/hda_controller.c ./sound/soc/intel/atom/sst-mfld-platform-pc

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-27 Thread Pierre-Louis Bossart
On 7/27/18 5:13 AM, Akshu Agrawal wrote: There are cases where a pointer function populates runtime->delay, such as: ./sound/pci/hda/hda_controller.c ./sound/soc/intel/atom/sst-mfld-platform-pcm.c Also, in some cases cpu dai used is generic and the pcm driver needs to set delay. This delay was

Re: [alsa-devel] [PATCH] ASoC: core: add support to card re-bind/unbind using component framework

2018-07-12 Thread Pierre-Louis Bossart
On 7/12/18 10:42 AM, Takashi Iwai wrote: On Thu, 12 Jul 2018 17:26:00 +0200, Pierre-Louis Bossart wrote: On 7/11/18 3:43 AM, Srinivas Kandagatla wrote: This patch aims at add achieving dynamic behaviour of audio card when the dependent components disappear and reappear. With this patch the

Re: [alsa-devel] [PATCH v2 1/3] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-06-06 Thread Pierre-Louis Bossart
On 06/01/2018 12:08 PM, Mark Brown wrote: On Fri, Jun 01, 2018 at 10:19:58AM -0500, Pierre-Louis Bossart wrote: I wanted to ack this patch but the Intel validation folks asked for a couple of days to finish their tests on a variety of Chromebooks (e.g. Lars) and double-check which models

Re: [alsa-devel] [PATCH v2 1/3] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-06-01 Thread Pierre-Louis Bossart
On 6/1/18 8:17 AM, Guenter Roeck wrote: On 06/01/2018 03:25 AM, Mark Brown wrote: On Thu, May 24, 2018 at 12:49:21PM -0700, Guenter Roeck wrote: From: Guenter Roeck Commit dc31e741db49 ("ASoC: topology: ABI - Add the types for BE DAI") introduced sound topology files version 5. Initially, thi

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Pierre-Louis Bossart
+static int skl_tplg_get_pvt_data_v4(struct snd_soc_tplg_dapm_widget *tplg_w, + struct skl *skl, struct device *dev, + struct skl_module_cfg *mconfig) +{ + struct skl_dfw_v4_module *dfw = + (struct

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Pierre-Louis Bossart
ave any devices on which I can test but the code looks ok compared to chromeos-3.18 (minor comments below). Reviewed-by: Pierre-Louis Bossart --- Tested on Caroline (Samsung Chromebook Pro) running v4.17-rc6 plus this patch, with original (v4) configuration file. Also tested on several other Chro

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-23 Thread Pierre-Louis Bossart
On 5/23/18 3:24 AM, Mark Brown wrote: On Tue, May 22, 2018 at 02:59:35PM -0500, Pierre-Louis Bossart wrote: I am also not convinced by the notion that maintaining topology files is only a userspace/distro issue. This would mean some distros will have access to the required topology files

Re: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files

2018-05-22 Thread Pierre-Louis Bossart
On 05/22/2018 11:58 AM, Guenter Roeck wrote: From: Guenter Roeck Commit dc31e741db49 ("ASoC: topology: ABI - Add the types for BE DAI") introduced sound topology files version 5. Initially, this change made the topology code incompatible with v4 topology files. Backwards compatibility with v4

[PATCH] MAINTAINERS: update sound/soc/intel maintainers

2018-05-16 Thread Pierre-Louis Bossart
ed F: drivers/video/fbdev/i810/ -INTEL ASoC BDW/HSW DRIVERS +INTEL ASoC DRIVERS +M: Pierre-Louis Bossart +M: Liam Girdwood M: Jie Yang L: alsa-de...@alsa-project.org (moderated for non-subscribers) S: Supported -F: sound/soc/intel/common/sst-dsp* -F: sound/soc/intel/c

Re: [alsa-devel] [PATCH] ASoC: Intel: bytcr_rt565: fix missing assignment to ret_val

2018-05-02 Thread Pierre-Louis Bossart
for rt5640. Acked-by: Pierre-Louis Bossart Fixes: 02c0a3b3047f ("ASoC: Intel: bytcr_rt5651: add MCLK, quirks and cleanups") Signed-off-by: Colin Ian King --- sound/soc/intel/boards/bytcr_rt5651.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/so

Re: [alsa-devel] [PATCH v2] ASoC: da7219: read fmw property to get mclk for non-dts systems

2018-05-01 Thread Pierre-Louis Bossart
On 5/1/18 9:31 AM, Agrawal, Akshu wrote: On 4/30/2018 9:54 PM, Pierre-Louis Bossart wrote: On 4/30/18 4:23 AM, Akshu Agrawal wrote: Non-dts based systems can use ACPI DSDT to pass on the mclk to da7219. This enables da7219 mclk to be linked to system clock. Enable/Disable of the mclk is

Re: [alsa-devel] [PATCH v2] ASoC: da7219: read fmw property to get mclk for non-dts systems

2018-04-30 Thread Pierre-Louis Bossart
On 4/30/18 4:23 AM, Akshu Agrawal wrote: Non-dts based systems can use ACPI DSDT to pass on the mclk to da7219. This enables da7219 mclk to be linked to system clock. Enable/Disable of the mclk is already handled in the codec so platform drivers don't have to explicitly do handling of mclk. Sign

Re: [alsa-devel] [PATCH] sound: soc: intel: bxt_da7219_max98357a: Replace GFP_ATOMIC with GFP_KERNEL in broxton_audio_probe

2018-04-09 Thread Pierre-Louis Bossart
On 4/9/18 5:46 AM, Jia-Ju Bai wrote: broxton_audio_probe() is never called in atomic context. This function is only set as ".probe" in "struct platform_driver". Despite never getting called from atomic context, broxton_audio_probe() calls devm_kzalloc() with GFP_ATOMIC, which waits busily for al

Re: x86/dma conversion for v4.17-rc1 breaks sound / sst-acpi (commit 6e4bf5867783)

2018-04-06 Thread Pierre-Louis Bossart
On 04/05/2018 08:14 PM, Mark Brown wrote: On Thu, Apr 05, 2018 at 10:56:57PM +0200, Dominik Brodowski wrote: Christoph, unfortunately, commit 6e4bf5867783 breaks sound on my Dell XPS13, see the dmesg diff between fec777c385b6 and 6e4bf5867783: Adding Vinod and Pierre from Intel in case they

Re: [alsa-devel] [PATCH v4 0/3] ASoC: topology: Improve hw_configs

2018-04-04 Thread Pierre-Louis Bossart
On 4/3/18 11:19 PM, Kirill Marinushkin wrote: Hello Mark, This patch series waits since 20th of February, because it modifies UAPI headers and should be done in sync with ALSA. I see that previously there was no clear understanding, how to do this in sync. Two days ago I discussed with Takashi,

Re: [alsa-devel] [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-03 Thread Pierre-Louis Bossart
On 4/3/18 1:16 PM, Kirill Marinushkin wrote: On 04/03/18 19:21, Pierre-Louis Bossart wrote: On 04/03/2018 12:15 AM, Kirill Marinushkin wrote: On 04/03/18 02:57, Pierre-Louis Bossart wrote: On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: Hello Pierre-Louis, I explicitly clarified with

Re: [alsa-devel] [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-03 Thread Pierre-Louis Bossart
On 04/03/2018 12:15 AM, Kirill Marinushkin wrote: On 04/03/18 02:57, Pierre-Louis Bossart wrote: On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: Hello Pierre-Louis, I explicitly clarified with Takashi: to have this patch series merged, we need a tag "Reviewed-by" from you.

Re: [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-02 Thread Pierre-Louis Bossart
On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: Hello Pierre-Louis, I explicitly clarified with Takashi: to have this patch series merged, we need a tag "Reviewed-by" from you. I am fine with the changes, but maybe while we are at it, we should clarify what mclk_direction means?     __u8

[PATCH][RESEND] ASoC: Intel: atom: fix ACPI/PCI Kconfig

2018-04-02 Thread Pierre-Louis Bossart
n Fixes: 4772c16ede52 ("ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies") Signed-off-by: Pierre-Louis Bossart --- already sent on January 23 but apparently missed sound/soc/intel/Kconfig | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-)

Re: [alsa-devel] [PATCH 0/1] Re: Applied "ASoC: topology: Fix logical inversion in set_link_hw_format()" to the asoc tree

2018-02-27 Thread Pierre-Louis Bossart
'slave' in M4 files but expand to 'codec_slave' in the .conf to avoid making this exception visible). Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Pierre-Louis Bossart Cc: Pan Xiuli Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-de...@alsa-project.org

Re: ERROR: "sst_context_init" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined!

2018-02-14 Thread Pierre-Louis Bossart
On 02/14/2018 01:23 PM, kbuild test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6556677a80400ca5744340d8ff6fbed22621293e commit: 4772c16ede522d46219a59646503d2020841a6f4 ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies date

[PATCH] ASoC: Intel: atom: fix ACPI/PCI Kconfig

2018-01-23 Thread Pierre-Louis Bossart
n Fixes: 4772c16ede52 ("ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies") Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/sound/soc/intel/Kconfig b/sound/soc/inte

Re: [alsa-devel] [PATCH] ASoC: intel: clean up CONFIG_SND_SST_IPC handling

2018-01-22 Thread Pierre-Louis Bossart
On 1/22/18 5:39 AM, Andy Shevchenko wrote: On Mon, 2018-01-22 at 11:58 +0100, Arnd Bergmann wrote: On Mon, Jan 22, 2018 at 10:51 AM, Andy Shevchenko wrote: On Sun, 2018-01-21 at 23:14 +0100, Arnd Bergmann wrote: Slightly later, commit 05f4434bc130 ("ASoC: Intel: remove mfld_machine") was ad

Re: [alsa-devel] [PATCH] ASoC: intel: clean up CONFIG_SND_SST_IPC handling

2018-01-22 Thread Pierre-Louis Bossart
On 1/21/18 4:14 PM, Arnd Bergmann wrote: In a configuration with SND_SST_ATOM_HIFI2_PLATFORM_PCI=y and SND_SST_ATOM_HIFI2_PLATFORM=m, we get this module link failure: ERROR: "sst_context_init" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined! ERROR: "sst_context_cleanup" [sound/soc/in

Re: [alsa-devel] [PATCH] ASoC: Intel: remove select on non-existing SND_SOC_INTEL_COMMON

2018-01-17 Thread Pierre-Louis Bossart
the only place this remains. Thanks for the patch. Acked-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig index b0bd1938b71e..f2c9e8c5970a 100644 --- a/sound/soc/intel/Kconfig +++ b/sound/so

Re: [alsa-devel] [PATCH v6 07/14] regmap: Add SoundWire bus support

2018-01-05 Thread Pierre-Louis Bossart
On 1/5/18 11:04 AM, Mark Brown wrote: On Thu, Dec 14, 2017 at 11:19:38AM +0530, Vinod Koul wrote: + /* SoundWire register address are contiguous */ + if (config->reg_stride != 0) + return -ENOTSUPP; That doesn't mean the chip hasn't decided not to use half the addres

Re: [alsa-devel] [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface

2018-01-05 Thread Pierre-Louis Bossart
On 1/5/18 4:06 AM, Sagar Arun Kamble wrote: On 1/3/2018 1:23 AM, Pierre-Louis Bossart wrote: On 1/2/18 12:21 PM, Richard Cochran wrote: On Tue, Jan 02, 2018 at 11:15:45AM -0600, Pierre-Louis Bossart wrote: I wrote the code for HDaudio and I remember wasting time trying to figure out the

[PATCH v3 03/10] ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies

2018-01-04 Thread Pierre-Louis Bossart
by anyone, and with Edison now defunct support for Merrifield/Edison is to be determined. The dependency on SND_DMA_SGBUF for Haswell is not clear at this point and may have to be further updated. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/Kconfig

[PATCH v3 04/10] ASoC: Intel: document what Kconfig options do

2018-01-04 Thread Pierre-Louis Bossart
Document in comments what the options are supposed to mean, before clean-up in next patch. No functionality change here. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/Kconfig | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff

[PATCH v3 01/10] ASoC: acpi: add missing includes for non-ACPI platforms

2018-01-04 Thread Pierre-Louis Bossart
hid[ACPI_ID_LEN]) sound/soc/soc-acpi.c: At top level: >> sound/soc/soc-acpi.c:174:16: error: expected declaration specifiers or '...' before string constant MODULE_LICENSE("GPL v2"); Add missing include files. Fixes: 7feb2f786a46 ("ASoC: move ACPI common

[PATCH v3 08/10] ASoC: Intel: boards: align/fix SKL/BXT/KBL Kconfigs

2018-01-04 Thread Pierre-Louis Bossart
No reason why SND_SOC_INTEL_SST should be set here. Also make sure same dependencies are used everywhere (only last one has SPI in addition). Replace X86_INTEL_LPSS by MFD_INTEL_LPSS since the former makes no sense for Skylake+ devices Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy

[PATCH v3 02/10] ASoC: Intel: Fix Kconfig with top-level selector

2018-01-04 Thread Pierre-Louis Bossart
the near future to allow for this option to be selected by both SST and SOF drivers (simplification with submenu for machine drivers by Vinod Koul) Fixes: f6a118a800e3 ("ASoC: Intel: clarify Kconfig dependencies") Reported-by: Linus Torvalds Signed-off-by: Pierre-Louis Bossart Sig

[PATCH v3 09/10] ASoC: Intel: kconfig: add some comments for if symbols

2018-01-04 Thread Pierre-Louis Bossart
From: Vinod Koul Help in finding matching "if" endings by commenting the "endif". Signed-off-by: Vinod Koul Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/boards/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[PATCH v3 05/10] ASoC: Intel: Fix nested/unnecessary Kconfig dependencies

2018-01-04 Thread Pierre-Louis Bossart
ested with each of Haswell, Baytrail legacy, HiFi2, SKL cases selected independently. 0-day and explicit randconfig tests did not report additional issues and no functionality loss was observed in Intel tests on HIFI2 and SKYLAKE platforms Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevc

[PATCH v3 06/10] ASoC: Intel: boards: align Kconfig dependencies for Haswell/Broadwell

2018-01-04 Thread Pierre-Louis Bossart
Make sure that the same I2C/I2C_DESIGNWARE_PLATFORM are selected. The latter might actually need to be moved to the SOC side of things, it really has no place in a machine driver dependency Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/boards/Kconfig | 2

[PATCH v3 10/10] ASoC: Intel: kconfig: drop boiler plate text from config items

2018-01-04 Thread Pierre-Louis Bossart
From: Vinod Koul Drop "Intel ASoC SST driver for " platforms and "SOC Machine Audio driver for Intel" for machines.. Signed-off-by: Vinod Koul Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/Kconfig| 10 +- sound/soc/

[PATCH v3 00/10] ASoC: Intel: Kconfig+acpi fixes

2018-01-04 Thread Pierre-Louis Bossart
+ devices Fixed a couple of indentation issues Pierre-Louis Bossart (8): ASoC: acpi: add missing includes for non-ACPI platforms ASoC: Intel: Fix Kconfig with top-level selector ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies ASoC: Intel: document what Kconfig options do ASo

[PATCH v3 07/10] ASoC: Intel: boards: align Kconfig configurations for HiFi2

2018-01-04 Thread Pierre-Louis Bossart
Make sure all the configs are aligned Also add the missing dependencies on SOC_ACPI stuff used to fix DAI names based on HID and fix a couple of indentation issues Signed-off-by: Pierre-Louis Bossart Reviewed-by: Andy Shevchenko --- sound/soc/intel/boards/Kconfig | 33

Re: [PATCH v2 9/9] ASoC: Intel: kconfig: add some comments for if symbols

2018-01-03 Thread Pierre-Louis Bossart
On 01/03/2018 01:25 PM, Randy Dunlap wrote: On 01/03/2018 08:50 AM, Pierre-Louis Bossart wrote: From: Vinod Koul Helps in finding if endings That partial sentence is confusing. I couldn't decode it without reading the entire patch. That shouldn't be necessary. How about: Help

Re: [PATCH v2 0/9] ASoC: Intel: Kconfig+acpi fixes

2018-01-03 Thread Pierre-Louis Bossart
On 01/03/2018 11:09 AM, Andy Shevchenko wrote: On Wed, 2018-01-03 at 10:50 -0600, Pierre-Louis Bossart wrote: The first patch solves issues reported by 0day with non-ACPI platforms The second patch implements what Linus, Takashi and Mark requested: a top-level selector defaulting to '

[PATCH v2 1/9] ASoC: acpi: add missing includes for non-ACPI platforms

2018-01-03 Thread Pierre-Louis Bossart
: move ACPI common code out of Intel/sst tree") Signed-off-by: Pierre-Louis Bossart --- include/sound/soc-acpi-intel-match.h | 1 + include/sound/soc-acpi.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/sound/soc-acpi-intel-match.h b/include/sound/soc-acpi-intel-ma

[PATCH v2 4/9] ASoC: Intel: document what Kconfig options do

2018-01-03 Thread Pierre-Louis Bossart
Document in comments what the options are supposed to mean, before clean-up in next patch. No functionality change here. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sound/soc/intel

[PATCH v2 5/9] ASoC: Intel: Fix nested/unnecessary Kconfig dependencies

2018-01-03 Thread Pierre-Louis Bossart
ested with each of Haswell, Baytrail legacy, HiFi2, SKL cases selected independently. 0-day and explicit randconfig tests did not report additional issues and no functionality loss was observed in Intel tests on HIFI2 and SKYLAKE platforms Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kc

[PATCH v2 3/9] ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies

2018-01-03 Thread Pierre-Louis Bossart
by anyone, and with Edison now defunct support for Merrifield/Edison is to be determined. The dependency on SND_DMA_SGBUF for Haswell is not clear at this point and may have to be further updated. Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig| 27

[PATCH v2 6/9] ASoC: Intel: boards: align Kconfig dependencies for Haswell/Broadwell

2018-01-03 Thread Pierre-Louis Bossart
Make sure that the same I2C/I2C_DESIGNWARE_PLATFORM are selected. The latter might actually need to be moved to the SOC side of things, it really has no place in a machine driver dependency Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/Kconfig | 2 +- 1 file changed, 1

[PATCH v2 9/9] ASoC: Intel: kconfig: add some comments for if symbols

2018-01-03 Thread Pierre-Louis Bossart
From: Vinod Koul Helps in finding if endings Signed-off-by: Vinod Koul Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/Kconfig| 10 sound/soc/intel/boards/Kconfig | 52 +- 2 files changed, 31 insertions(+), 31 deletions

[PATCH v2 8/9] ASoC: Intel: boards: align/fix SKL/BXT/KBL Kconfigs

2018-01-03 Thread Pierre-Louis Bossart
No reason why SND_SOC_INTEL_SST should be set here. Also make sure same dependencies are used everywhere (only last one has SPI in addition). Replace X86_INTEL_LPSS by MFD_INTEL_LPSS since the former makes no sense for Skylake+ devices Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel

[PATCH v2 7/9] ASoC: Intel: boards: align Kconfig configurations for HiFi2

2018-01-03 Thread Pierre-Louis Bossart
Make sure all the configs are aligned Also add the missing dependencies on SOC_ACPI stuff used to fix DAI names based on HID and fix a couple of indentation issues Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/Kconfig | 33 +++-- 1 file changed, 19

[PATCH v2 2/9] ASoC: Intel: Fix Kconfig with top-level selector

2018-01-03 Thread Pierre-Louis Bossart
the near future to allow for this option to be selected by both SST and SOF drivers (simplification with submenu for machine drivers by Vinod Koul) Fixes: f6a118a800e3 ("ASoC: Intel: clarify Kconfig dependencies") Reported-by: Linus Torvalds Signed-off-by: Pierre-Louis Bossart Sig

<    6   7   8   9   10   11   12   >