Bläddra i källkod

Revert "解决调节alsa软通道音量时打开软通道的问题"

This reverts commit d48f489df38c390ee0a3e526f6cd2842ae4abf41.
lixh 2 år sedan
förälder
incheckning
9ed14f50ba
1 ändrade filer med 0 tillägg och 19 borttagningar
  1. 0 19
      buildroot-2021.02.2/package/alsa-lib/003-Fix-softvol-bug.patch

+ 0 - 19
buildroot-2021.02.2/package/alsa-lib/003-Fix-softvol-bug.patch

@@ -1,19 +0,0 @@
-diff -uNr alsa-lib-1.2.4-pre/src/pcm/pcm_softvol.c alsa-lib-1.2.4/src/pcm/pcm_softvol.c
---- alsa-lib-1.2.4-pre/src/pcm/pcm_softvol.c	2020-10-19 02:45:13.000000000 -0700
-+++ alsa-lib-1.2.4/src/pcm/pcm_softvol.c	2022-11-01 00:55:34.868398000 -0700
-@@ -802,6 +802,15 @@
- 			SNDERR("Cannot add a control");
- 			return err;
- 		}
-+		if (svol->ctl) {
-+			snd_ctl_close(svol->ctl);
-+			svol->ctl = NULL;
-+		}
-+		err = snd_ctl_open(&svol->ctl, tmp_name, 0);
-+		if (err < 0) {
-+			SNDERR("Cannot open CTL %s", tmp_name);
-+			return err;
-+		}
- 	} else {
- 		if (! (cinfo.access & SNDRV_CTL_ELEM_ACCESS_USER)) {
- 			/* hardware control exists */