From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: missing sound on kernel-5.15
Date: Mon, 22 Aug 2022 08:45:50 +0200 (CEST) [thread overview]
Message-ID: <20220822064550.B44A2F8026A@alsa1.perex.cz> (raw)
In-Reply-To: <1661150747490509987-webhooks-bot@alsa-project.org>
alsa-project/alsa-lib issue #264 was opened from chihhao-chen:
I am testing many types of headsets on Android platform with different kernel versions.
On kernel-5.10, calling sequence before playback is
snd_usb_hw_params -> set highest sampling rate, no SAMPLING_FREQ_CONTROL USB request in this stage
snd_pcm_release
snd_usb_hw_params -> set proper sampling rate, still no SAMPLING_FREQ_CONTROL USB request
snd_usb_pcm_parepare -> in configure_endpoint SAMPLING_FREQ_CONTROL USB request was sent
With the same calling sequence, a slightly behavior change on kernel-5.15 is
snd_usb_hw_params -> set highest sampling rate, SAMPLING_FREQ_CONTROL USB request was sent
snd_pcm_release
snd_usb_hw_params -> set proper sampling rate, SAMPLING_FREQ_CONTROL USB request was sent too
(because configure_endpoint was moved to snd_usb_hw_params function)
snd_usb_pcm_parepare -> no SAMPLING_FREQ_CONTROL USB request because of USB EP flag check
I checked all USB packets and confirmed audio data output was correct.
But there may be missing sound problem for the first sound with many headsets (for example Samsung headset).
I found this issue is related to two-times sampling rate set request.
(I tried forcibly skip first USB request, everything became okay.)
So do you guys know why configure_endpoint was moved to snd_usb_hw_params?
Or could you provide patch for this problem?
Many thanks
Chihhao
Issue URL : https://github.com/alsa-project/alsa-lib/issues/264
Repository URL: https://github.com/alsa-project/alsa-lib
next parent reply other threads:[~2022-08-22 6:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1661150747490509987-webhooks-bot@alsa-project.org>
2022-08-22 6:45 ` GitHub issues - opened [this message]
2022-08-22 8:06 missing sound on kernel-5.15 chihhao chen
2022-08-22 11:57 ` Geraldo Nascimento
2022-08-29 7:56 ` chihhao chen
2022-08-29 8:06 ` Takashi Iwai
2022-08-29 8:50 ` chihhao chen
2022-08-29 12:16 ` Takashi Iwai
2022-08-29 18:15 ` Takashi Iwai
2022-08-30 5:54 ` Takashi Iwai
2022-08-30 6:02 ` Takashi Iwai
2022-08-30 6:13 ` chihhao chen
2022-08-30 7:02 ` Takashi Iwai
2022-08-30 8:08 ` chihhao chen
2022-08-30 8:24 ` Takashi Iwai
2022-08-31 3:39 ` chihhao chen
2022-08-31 5:18 ` Takashi Iwai
2022-08-31 7:03 ` chihhao chen
2022-08-31 8:04 ` Takashi Iwai
2022-08-31 9:26 ` chihhao chen
2022-08-31 10:48 ` Takashi Iwai
2022-08-31 13:16 ` chihhao chen
2022-08-31 13:40 ` Takashi Iwai
2022-09-01 5:50 ` chihhao chen
2022-09-01 7:51 ` Takashi Iwai
2022-09-01 8:28 ` Takashi Iwai
2022-09-01 10:06 ` chihhao chen
2022-09-01 10:25 ` Takashi Iwai
2022-11-11 7:58 ` Chihhao Chen (陳志豪)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220822064550.B44A2F8026A@alsa1.perex.cz \
--to=github@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox