Open Tatsh opened 2 years ago
@Tatsh Which OS are you using? ChromeOS or some Linux distro?
@Tatsh The attached wav file does not represent what you hear when the bug happens. Please record the output that you get.
@Tatsh Which OS are you using? ChromeOS or some Linux distro?
Gentoo
@Tatsh if this was due to the SOF firmware/driver, you would see the same effect on headphones, can you please double-check? If you don't then it's an amplifier issue.
@Tatsh if this was due to the SOF firmware/driver, you would see the same effect on headphones, can you please double-check? If you don't then it's an amplifier issue.
You are correct. With headphones the issue never occurs.
@Tatsh any idea on which speaker amplifier is used on your device ? There are Realtek folks here so may be able to provide help if it's a Realtek amp.
@lgirdwood it is Realtek. On the MSI website for Windows drivers:
@bardliao which Realtek folks would be able to give help here ?
Thanks for the additional testing @Tatsh, that clearly points us to an amplifier configuration issue.
Two additional things where you can help us debug further:
a) can you attach the result of 'alsa-info' so that we can see what hardware/amplifier you have
b) can you try to run the same test by adding this in /etc/modprobe.d/alsa-base.conf and reboot
options snd-intel-dspcfg dsp_driver=1
This is part of the usual suggestions in https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html and that will help check if you see the same issue with the HDaudio legacy driver.
In theory we share the same low-level driver between SOF and legacy drivers, so you should also see the same issue with the legacy snd-hda-intel driver, but as usual we may have a bug somewhere in the glue between SOF and legacy.
Thanks!
Here's alsa-info and I will report after rebooting on the option change. alsa-info.txt
Adding the option did not make a difference. I don't see proof that it used the option but I did try putting it on the command line with snd-intel-dspcfg.dsp_driver=1
and this did not make a difference either.
sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
Loading firmware: intel/sof-tplg/sof-hda-generic-2ch.tplg
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC298: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
snd_hda_codec_realtek ehdaudio0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
snd_hda_codec_realtek ehdaudio0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
snd_hda_codec_realtek ehdaudio0D0: mono: mono_out=0x0
snd_hda_codec_realtek ehdaudio0D0: inputs:
snd_hda_codec_realtek ehdaudio0D0: Mic=0x18
snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi3 overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi2 overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi1 overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Codec Output Pin1 overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Codec Input Pin1 overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Analog Codec Playback overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Digital Codec Playback overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Alt Analog Codec Playback overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Analog Codec Capture overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Digital Codec Capture overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Alt Analog Codec Capture overwritten
skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input10
input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input11
input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input15
input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input16
input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input17
snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
snd_hda_intel 0000:01:00.1: Disabling MSI
input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23
input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input24
input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input25
input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input26
Here's alsa-info and I will report after rebooting on the option change. alsa-info.txt
ok, so bog standard ALC298 codec with 2 DMICs. That's been used by tons of people...
@Tatsh the option clearly didn't take effect, you should only see snd-hda-intel instead.
@bardliao which Realtek folks would be able to give help here ?
I always ping @shumingfan :)
I think I booted correctly now. There is no mention of dsp in the boot log. pavucontrol shows more than just the Play HiFi
profile.
The issue persists in the no-SOF/DSP mode.
@Tatsh I reported this issue to the owner of Realtek engineer and copied his comments below.
Then end users can try Windows to see if the situation is the same. If it is, it is confirmed to be a hardware (hardware codec) problem, please end user to change the machine. If not, please end user to give us more details. "sudo su root" type password to enter root "echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef " "alsa-info --no-upload" give us "/tmp/alsa-info.txt.xxxx"
Updated alsa-info: alsa-info.txt
Windows does not have the problem. I ran the same videos, ran speech synthesis, and had no issues.
Describe the bug When I watch a Twitch stream or use the speech synthesis API in Chrome, the start of the TTS always gets skipped, and from there parts are skipped randomly.
If you try to have Chrome say 'Hello World', it just says 'o' and cuts off everything else. Longer messages play a bit more but the beginning is still cut off. The monitor shows the same result so it is not the speakers.
Sample: hello-world-tts.wav.zip
To Reproduce
In Chrome or similar, run the following in console:
Reproduction Rate All the time.
Expected behavior The speech should play normally.
Impact Very annoying to watch certain Twitch streams.
Environment 1) Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
sof-hda-generic-2ch.tplg
3) Name of the platform(s) on which the bug is observed.Kernel config: