linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] sound: add quirk for Huawei D15
@ 2021-12-24 13:09 Mauro Carvalho Chehab
  2021-12-24 13:09 ` [PATCH 1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021 Mauro Carvalho Chehab
  2022-02-18 14:28 ` [PATCH 0/1] sound: add quirk for Huawei D15 Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2021-12-24 13:09 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: Mauro Carvalho Chehab, Bard Liao, tiwai, alsa-devel, broonie,
	Huajun Li, Kai Vehmanen, Jaroslav Kysela, Takashi Iwai,
	linux-kernel

Hi Pierre-Louis,

Based on my tests, Huawei D15 (Intel) uses SSP0 on es8336.

Add a quirk for it.

Please notice that, currently, only the internal speaker is working.
The topology for the internal microphone and for the headphones
is wrong. Enabling/disabling the other two quirks (GPIO and/or DMIC) 
doesn't cause any audible results, nor change the devices listed
on pavucontrol (tested with pipewire-pulse).

Mauro Carvalho Chehab (1):
  ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021

 sound/soc/intel/boards/sof_es8336.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.33.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021
  2021-12-24 13:09 [PATCH 0/1] sound: add quirk for Huawei D15 Mauro Carvalho Chehab
@ 2021-12-24 13:09 ` Mauro Carvalho Chehab
  2022-02-18 14:28 ` [PATCH 0/1] sound: add quirk for Huawei D15 Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2021-12-24 13:09 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: Mauro Carvalho Chehab, Bard Liao, Huajun Li, Kai Vehmanen,
	Cezary Rojewski, Jaroslav Kysela, Jie Yang, Liam Girdwood,
	Mark Brown, Takashi Iwai, alsa-devel, linux-kernel, tiwai,
	Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

Huawei D15 uses SSP_CODEC(0).

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover.
See [PATCH 0/1] at: https://lore.kernel.org/all/cover.1640351150.git.mchehab@kernel.org/

 sound/soc/intel/boards/sof_es8336.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
index e38eafd19251..5427285f78d0 100644
--- a/sound/soc/intel/boards/sof_es8336.c
+++ b/sound/soc/intel/boards/sof_es8336.c
@@ -247,6 +247,14 @@ static const struct dmi_system_id sof_es8336_quirk_table[] = {
 					SOF_ES8336_TGL_GPIO_QUIRK |
 					SOF_ES8336_ENABLE_DMIC)
 	},
+	{
+		.callback = sof_es8336_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "HUAWEI"),
+			DMI_MATCH(DMI_BOARD_NAME, "BOHB-WAX9-PCB-B2"),
+		},
+		.driver_data = (void *)SOF_ES8336_SSP_CODEC(0)
+	},
 	{}
 };
 
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] sound: add quirk for Huawei D15
  2021-12-24 13:09 [PATCH 0/1] sound: add quirk for Huawei D15 Mauro Carvalho Chehab
  2021-12-24 13:09 ` [PATCH 1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021 Mauro Carvalho Chehab
@ 2022-02-18 14:28 ` Mark Brown
  2022-02-18 18:11   ` Pierre-Louis Bossart
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2022-02-18 14:28 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Pierre-Louis Bossart
  Cc: alsa-devel, Jaroslav Kysela, linux-kernel, Bard Liao, Huajun Li,
	tiwai, Takashi Iwai, Kai Vehmanen

On Fri, 24 Dec 2021 14:09:48 +0100, Mauro Carvalho Chehab wrote:
> Based on my tests, Huawei D15 (Intel) uses SSP0 on es8336.
> 
> Add a quirk for it.
> 
> Please notice that, currently, only the internal speaker is working.
> The topology for the internal microphone and for the headphones
> is wrong. Enabling/disabling the other two quirks (GPIO and/or DMIC)
> doesn't cause any audible results, nor change the devices listed
> on pavucontrol (tested with pipewire-pulse).
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021
      commit: ce6a70bfce21bb4edb7c0f29ecfb0522fa34ab71

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] sound: add quirk for Huawei D15
  2022-02-18 14:28 ` [PATCH 0/1] sound: add quirk for Huawei D15 Mark Brown
@ 2022-02-18 18:11   ` Pierre-Louis Bossart
  2022-02-18 23:46     ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre-Louis Bossart @ 2022-02-18 18:11 UTC (permalink / raw)
  To: Mark Brown, Mauro Carvalho Chehab
  Cc: alsa-devel, Jaroslav Kysela, linux-kernel, Bard Liao, Huajun Li,
	tiwai, Takashi Iwai, Kai Vehmanen



On 2/18/22 08:28, Mark Brown wrote:
> On Fri, 24 Dec 2021 14:09:48 +0100, Mauro Carvalho Chehab wrote:
>> Based on my tests, Huawei D15 (Intel) uses SSP0 on es8336.
>>
>> Add a quirk for it.
>>
>> Please notice that, currently, only the internal speaker is working.
>> The topology for the internal microphone and for the headphones
>> is wrong. Enabling/disabling the other two quirks (GPIO and/or DMIC)
>> doesn't cause any audible results, nor change the devices listed
>> on pavucontrol (tested with pipewire-pulse).
>>
>> [...]
> 
> Applied to
> 
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
> 
> Thanks!
> 
> [1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021
>       commit: ce6a70bfce21bb4edb7c0f29ecfb0522fa34ab71

I'll probably revert this change in my next update [1], I have a set of
changes where we can detect which SSP is used by parsing the NHTL
information in platform firmware.

I am still trying to figure out how to detect which MCLK is used, and
once this is done I'll send the patches upstream.

[1] https://github.com/thesofproject/linux/pull/3338

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] sound: add quirk for Huawei D15
  2022-02-18 18:11   ` Pierre-Louis Bossart
@ 2022-02-18 23:46     ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2022-02-18 23:46 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Mark Brown
  Cc: alsa-devel, Jaroslav Kysela, linux-kernel, Bard Liao, Huajun Li,
	tiwai, Takashi Iwai, Kai Vehmanen

Em Fri, 18 Feb 2022 12:11:59 -0600
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> escreveu:

> On 2/18/22 08:28, Mark Brown wrote:
> > On Fri, 24 Dec 2021 14:09:48 +0100, Mauro Carvalho Chehab wrote:  
> >> Based on my tests, Huawei D15 (Intel) uses SSP0 on es8336.
> >>
> >> Add a quirk for it.
> >>
> >> Please notice that, currently, only the internal speaker is working.
> >> The topology for the internal microphone and for the headphones
> >> is wrong. Enabling/disabling the other two quirks (GPIO and/or DMIC)
> >> doesn't cause any audible results, nor change the devices listed
> >> on pavucontrol (tested with pipewire-pulse).
> >>
> >> [...]  
> > 
> > Applied to
> > 
> >    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
> > 
> > Thanks!
> > 
> > [1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021
> >       commit: ce6a70bfce21bb4edb7c0f29ecfb0522fa34ab71  
> 
> I'll probably revert this change in my next update [1], I have a set of
> changes where we can detect which SSP is used by parsing the NHTL
> information in platform firmware.

Mark,

Yeah, I tested Pierre-Louis pull request from:

	https://github.com/thesofproject/linux/pull/3338

and indeed this quirk is not needed anymore for the speaker to work.

So, once his new update gets merged upstream, feel free to revert
this one.

Pierre-Louis,

When you submit your next update from PR#3338, feel free to add:

Tested-by: Mauro Carvalho Chehab <mchehab@kernel.org>

and my Acked-by at the revert patch:

Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>

> 
> I am still trying to figure out how to detect which MCLK is used, and
> once this is done I'll send the patches upstream.
> 
> [1] https://github.com/thesofproject/linux/pull/3338



Thanks,
Mauro

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-18 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-24 13:09 [PATCH 0/1] sound: add quirk for Huawei D15 Mauro Carvalho Chehab
2021-12-24 13:09 ` [PATCH 1/1] ASoC: Intel: sof_es8336: add quirk for Huawei D15 2021 Mauro Carvalho Chehab
2022-02-18 14:28 ` [PATCH 0/1] sound: add quirk for Huawei D15 Mark Brown
2022-02-18 18:11   ` Pierre-Louis Bossart
2022-02-18 23:46     ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).