Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830176

Summary: media-sound/pulseaudio-15.0-r1 not changing sample rate with kernel 5.15.11
Product: Gentoo Linux Reporter: darkstalker <slayerbeast>
Component: Current packagesAssignee: Igor V. Kovalenko <igor.v.kovalenko>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jstein, leio, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info pulseaudio
pulseaudio output
kernel 5.15.11 config
/proc/asound/card3/stream0 on 5.10
/proc/asound/card3/stream0 on 5.15

Description darkstalker 2021-12-28 16:54:41 UTC
After upgrading to kernel 5.15.11, pulseaudio doesn't change it's sample rate anymore, it stays at 44100. No crashes observed. It works fine when reverting to the older kernel (5.10.76-gentoo-r1).

Steps to reproduce:
- play 96khz audio on media player
- check sample rate
$ grep rate /proc/asound/card?/pcm0p/sub0/hw_param
/proc/asound/card3/pcm0p/sub0/hw_params:rate: 44100 (44100/1)
Comment 1 darkstalker 2021-12-28 16:55:23 UTC
Created attachment 760665 [details]
emerge --info pulseaudio
Comment 2 darkstalker 2021-12-28 16:57:01 UTC
Created attachment 760666 [details]
pulseaudio output
Comment 3 darkstalker 2021-12-28 16:58:46 UTC
Created attachment 760667 [details]
kernel 5.15.11 config
Comment 4 Igor V. Kovalenko 2021-12-29 09:52:26 UTC
Check if list of supported output rates for your usb device is changed, it should be in 'Playback' section of one of '/proc/asound/card*/stream*' files.
Comment 5 darkstalker 2021-12-29 16:31:18 UTC
Created attachment 760753 [details]
/proc/asound/card3/stream0 on 5.10
Comment 6 darkstalker 2021-12-29 16:32:09 UTC
Created attachment 760754 [details]
/proc/asound/card3/stream0 on 5.15

Supported sample rates don't seem to change.
Comment 7 Igor V. Kovalenko 2022-03-18 05:43:15 UTC
Could you please try isolating this issue to exact kernel version which introduces it? There were lots of changes in usb-audio area regarding sample rates and your case may be one of those.

Alternatively verify the issue on most recent kernel and ask for help on alsa-devel mailing list (make sure you are subscribed there first.)
Comment 8 Igor V. Kovalenko 2022-03-18 06:03:01 UTC
I think most likely cause is the following change in 5.15.7

    ALSA: usb-audio: Restrict rates for the shared clocks

https://lore.kernel.org/all/20210929080844.11583-2-tiwai@suse.de/
https://bugzilla.suse.com/show_bug.cgi?id=1190418

Could you please try the same with 5.15.6 to see if sample rate change works there as expected?