Trouble installing ALSA driver

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
0106mas

Trouble installing ALSA driver

Post by 0106mas »

Im trying to install realtek high definition audio driver but have some problems and the sound is completely gone now. My OS is Linuxmint17 64 bit.Commands I run:

Code: Select all

cd /home/marcell/Downloads
tar jxpvf LinuxPkg_5.18rc8.tar.bz2
cd /home/marcell/Downloads/Rt-Linux-HDaudio-5.18
tar jxpvf alsa-driver-RTv5.18rc8.tar.bz2
cd /home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa
./configure
make
make install
then i get this error after 'make':

Code: Select all

/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb/misc/ua101.c: In function ‘ua101_disconnect’:
/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb/misc/ua101.c:1357:2: error: implicit declaration of function ‘__list_for_each’ [-Werror=implicit-function-declaration]
  __list_for_each(midi, &ua->midi_list)
  ^
/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb/misc/ua101.c:1358:3: error: expected ‘;’ before ‘snd_usbmidi_disconnect’
   snd_usbmidi_disconnect(midi);
   ^
cc1: some warnings being treated as errors
make[4]: *** [/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb/misc/ua101.o] Error 1
make[3]: *** [/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb/misc] Error 2
make[2]: *** [/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/usb] Error 2
make[1]: *** [_module_/home/marcell/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [compile] Error 2

i tried uninstalling and then reinstalling libasound but that didnt help either. Amixer does not recognize any sound cards but the inxi -Ax script returned the following:

Card-1: Intel 5 Series/3400 Series Chipset High Definition Audio bus-ID: 00:1b.0
Card-2: NVIDIA GF106 High Definition Audio Controller bus-ID: 02:00.1

Initially I had sound set to default (pulseaudio) and things went mute after I tried to configure realtek. Maybe it realy is just a compiler error and not something else, then it could easily be solved by correcting a few syntax errors.The file itself can be downloaded here:
http://s000.tinyupload.com/index.php?f ... 970030582
or download the whole package from:
http://www.realtek.com.tw/downloads/do ... Down=false

Thanks for the help!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RevHardt

Re: Trouble installing ALSA driver

Post by RevHardt »

  1. Add a function declaration preferably near the top of the file (around line 140):

    Code: Select all

    void __list_for_each(struct list_head *, struct list_head *);
  2. Append a semicolon to line 1357 (I believe), so that it looks like this:

    Code: Select all

    __list_for_each(midi, &ua->midi_list);
EDIT:
After doing all this today myself (see here), I lost my audio too. Reinstalling/updating the kernel got it back for me:

Code: Select all

sudo apt-get install -r linux-generic
Locked

Return to “Hardware Support”