Advertisement
st1905

Untitled

Oct 27th, 2020 (edited)
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.43 KB | None | 0 0
  1. cd into
  2.  
  3. /usr/ports/audio/linux-c7-alsa-plugins-oss
  4.  
  5. uninstall it
  6.  
  7. make deinstall
  8.  
  9. then issue
  10.  
  11. make
  12.  
  13. while it configures, interrupt it with ctrl+c
  14.  
  15. then cd into /usr/ports/audio/linux-c7-alsa-plugins-oss/work/alsa-plugins-1.1.6
  16.  
  17. save below as patch
  18.  
  19. diff --git a/oss/ctl_oss.c b/oss/ctl_oss.c
  20. index b8847b1..b05ba18 100644
  21. --- a/oss/ctl_oss.c
  22. +++ b/oss/ctl_oss.c
  23. @@ -52,7 +52,7 @@ static const char *const vol_devices[SOUND_MIXER_NRDEVICES] = {
  24.     [SOUND_MIXER_CD]"CD Playback Volume",
  25.     [SOUND_MIXER_IMIX] =    "Monitor Mix Playback Volume",
  26.     [SOUND_MIXER_ALTPCM]"Headphone Playback Volume",
  27. -   [SOUND_MIXER_RECLEV]"Capture Volume",
  28. +   [SOUND_MIXER_RECLEV]"Master Capture Volume",
  29.     [SOUND_MIXER_IGAIN] =   "Capture Volume",
  30.     [SOUND_MIXER_OGAIN] =   "Playback Volume",
  31.     [SOUND_MIXER_LINE1] =   "Aux Playback Volume",
  32.  
  33. then apply it under /usr/ports/audio/linux-c7-alsa-plugins-oss/work/alsa-plugins-1.1.6
  34.  
  35. patch -p1 < patch
  36.  
  37.  
  38. Hmm...  Looks like a unified diff to me...
  39. The text leading up to this was:
  40. --------------------------
  41. |diff --git a/oss/ctl_oss.c b/oss/ctl_oss.c
  42. |index b8847b1..b05ba18 100644
  43. |--- a/oss/ctl_oss.c
  44. |+++ b/oss/ctl_oss.c
  45. --------------------------
  46. Patching file oss/ctl_oss.c using Plan A...
  47. Hunk #1 succeeded at 52.
  48. done
  49.  
  50. then cd back to /usr/ports/audio/linux-c7-alsa-plugins-oss
  51.  
  52. make install clean
  53.  
  54. now you can chroot into /compat/linux and run amixer and alsamixer  both will work.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement