Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516746 - media-libs/alsa-lib on x32 - alsamixer: cannot load mixer controls: Inappropriate ioctl for device
Summary: media-libs/alsa-lib on x32 - alsamixer: cannot load mixer controls: Inappropr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32 gx86-multilib
  Show dependency tree
 
Reported: 2014-07-09 08:56 UTC by Thibaud CANALE
Modified: 2016-12-08 11:55 UTC (History)
5 users (show)

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


Attachments
emerge --info (file_516746.txt,5.53 KB, text/plain)
2014-07-09 08:56 UTC, Thibaud CANALE
Details
alsa-info (alsa-info.log,17.23 KB, text/plain)
2016-02-26 17:01 UTC, Dainius Masiliūnas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2014-07-09 08:56:26 UTC
Created attachment 380472 [details]
emerge --info

Hello,

Currently, ALSA is not working on my system with x86_x32 ABI, with the error "Inappropriate ioctl for device" :

% aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
% alsamixer 
cannot load mixer controls: Inappropriate ioctl for device

It is not a problem with my (config's) kernel, because it is working on a x86_64 ABI profile.

This problem occurs with current versions 1.0.27.2 and ~1.0.28

Note: I reported the package media-libs/alsa-lib, but are currently installed, and may be the source of the problem:
dev-python/pyalsa-1.0.26-r1
media-plugins/gst-plugins-alsa-0.10.36-r1
media-sound/alsa-tools-1.0.28
media-sound/alsa-utils-1.0.28
The message "Inappropriate ioctl for device" occurs in VLC too.

Thanks for support.
Comment 1 Chase Rayfield 2014-11-03 03:36:41 UTC
I also saw this in a Dell mini 1012... same driver slightly different chip though Alsamixer says it is a Realtek ALC272 works fine on 32bit Gentoo. I last tested it about 3 weeks ago.
Comment 2 Dainius Masiliūnas 2016-02-26 17:01:57 UTC
Created attachment 426652 [details]
alsa-info

Confirmed. I get the same errors when trying to access any of the audio devices. This goes for PulseAudio too: it fails to load ALSA modules and is only left with dummy outputs.

My alsa-info.sh output is attached.
Comment 3 EoD 2016-03-12 10:42:03 UTC
(In reply to Dainius Masiliūnas from comment #2)
> Created attachment 426652 [details]
> alsa-info
> 
> Confirmed. I get the same errors when trying to access any of the audio
> devices. This goes for PulseAudio too: it fails to load ALSA modules and is
> only left with dummy outputs.
> 
> My alsa-info.sh output is attached.

I had the very same issue when I tried executing any alsa command in an older system. After upgrading several non-alsa packages, alsamixer started to work again.

I can provide a full list of packages I installed after alsa, but it is very long.
Comment 4 Dainius Masiliūnas 2016-03-12 11:32:44 UTC
Actually, this particular bug has already been fixed; turns out it's a kernel bug.  The fix is in kernel 4.5-rc7 already.
Comment 5 EoD 2016-03-12 19:48:36 UTC
(In reply to Dainius Masiliūnas from comment #4)
> Actually, this particular bug has already been fixed; turns out it's a
> kernel bug.  The fix is in kernel 4.5-rc7 already.

I also upgraded to kernel 4.5-rc7. Thanks for figuring it out!
Comment 6 Dainius Masiliūnas 2016-07-29 10:50:44 UTC
I can also confirm that this was backported to 4.4.6, so this bug can be closed.
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2016-12-08 11:55:16 UTC
Fixed in upstream 4.6 kernels as per Dainius Masiliūnas.