Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830176 - media-sound/pulseaudio-15.0-r1 not changing sample rate with kernel 5.15.11
Summary: media-sound/pulseaudio-15.0-r1 not changing sample rate with kernel 5.15.11
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Igor V. Kovalenko
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-28 16:54 UTC by darkstalker
Modified: 2022-11-25 04:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info pulseaudio (emerge_info.txt,7.82 KB, text/plain)
2021-12-28 16:55 UTC, darkstalker
Details
pulseaudio output (pulse_out_with_5.15.txt.gz,50.72 KB, application/gzip)
2021-12-28 16:57 UTC, darkstalker
Details
kernel 5.15.11 config (config-5.15.11-gentoo,145.72 KB, text/plain)
2021-12-28 16:58 UTC, darkstalker
Details
/proc/asound/card3/stream0 on 5.10 (stream-5.10.txt,1021 bytes, text/plain)
2021-12-29 16:31 UTC, darkstalker
Details
/proc/asound/card3/stream0 on 5.15 (stream-5.15.txt,1.34 KB, text/plain)
2021-12-29 16:32 UTC, darkstalker
Details

Note You need to log in before you can comment on or make changes to this bug.
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?