unblock restrictions on alsa (max id of card and sample rate for alsa Loopback)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ALSA Libraries |
New
|
Undecided
|
Unassigned | ||
Alsa utilities |
New
|
Undecided
|
Unassigned | ||
alsa-lib (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
alsa-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
SRU Justification:
[Impact] kernel, alsa-lib, alsa-utils
We are using more and more cards recognized as sound peripherals. When the number of loopback and hardware cards exceeds 32, we can no longer use them.
Also some new devices are already using 384khz but the limitation is for alsa Loopback.
I thinks we must increse CONFIG_
[Test Case]
sudo add-apt-repository -y universe
apt-get update && sudo apt-get upgrade -y
sudo apt-get install alsa alsa-*
shutdown -r now
sudo modprobe snd-aloop
sudo echo snd-aloop >> /etc/modules
sudo adduser $(whoami) audio
shutdown -r now
sudo apt-get install -y apt-get install alsa alsa-utils libasound2-dev
sudo apt-get install -y screen build-essential initramfs-tools fakeroot debconf-utils dpkg-dev debhelper bin86 flex bison pkgconf dkms python3-docutils \
libudev-dev mt-st cpufrequtils libpci-dev libssl-dev libiberty-dev libcap-dev asciidoc default-jdk libncurses-dev \
kernel-package kernel-wedge libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-dkms zfs-zed zfsutils-linux \
crash makedumpfile libncurses5 libncurses5-dev libelf-dev binutils-dev kexec-tools
screen
mkdir ~/megamod
cd ~/megamod
git clone git://kernel.
cd ubuntu-focal
sed -i 's/SNDRV_
sed -i 's/192000/768000/g' ./sound/
grep -rnl './' -e "CONFIG_
search and replace 32 by 256 in and ./debian.
fakeroot debian/rules clean
fakeroot debian/rules binary
dpkg -i ../linux*
shutdown -r now
sudo systemctl disable hv-kvp-
#######
echo "options snd-aloop \" >> /etc/modprobe.
echo "index=
echo "id=lp0,
echo "enable=
echo "pcm_substreams
sudo su
sudo mkdir /usr/src/alsa
cd /usr/src/alsa
git clone git://git.
cd /usr/src/
./gitcompile --with-
make install
cp /usr/lib/libasound* /usr/lib/
cd /usr/src/alsa
git clone git://git.
cd /usr/src/
./gitcompile --with-
make install
shutdown -r now
[Regression Potential]
* The regression can be considered as low, because this is because it's functional since 16.04
[Other]
* This requires a patch to be included into the kernel, alsa-lib and alsa-utils package. - please see [Test Case] description for more details.
* changes can be made independently and have no impact on others
[Patch]
In /sound/
L555 .rates = SNDRV_PCM_
to
L555 .rates = SNDRV_PCM_
In /sound/
L557 .rate_max = 192000,
to
L557 .rate_max = 768000,
In /sound/
L557 uinfo->
to
L557 uinfo->
In /debian.
L9069 CONFIG_
to
L9069 CONFIG_
and update debian.
For alsa-lib and alsa-util, package can be simply update with ./gitcompile --with-
Thanks everybody
Bugs in Ubuntu are never filed against the distribution as a whole, but rather, individual components/ packages. Removed affecting Ubuntu.