Disable ATI HDMI audio from snd_hda_intel (was Re: Disable PCI devices via systemd)

Joshua C. joshuacov at gmail.com
Tue Jul 30 18:22:09 UTC 2013


2013/7/30 Raman Gupta <rocketraman at gmail.com>:
> On 07/30/2013 12:00 AM, poma wrote:
>> On 30.07.2013 05:47, Raman Gupta wrote:
>>> I cannot blacklist the module, because the "snd_hda_intel" module that
>>> drives the Intel sound card on my motherboard also recognizes the ATI
>>> cards, according to lspci-v.
>>>
>>> [...] is there an alternate approach to turn off the HDMI sound cards
>>> on the ATI cards?
>>>
>>
>> $ modinfo radeon | grep audio
>> parm:           audio:Audio enable (1 = enable) (int)
>>
>
> Note I use fglrx to drive the video cards -- I should have mentioned
> that before. With fglrx, it appears to be the snd_hda_intel module
> that is driving the HDMI devices. dmesg shows:
>
> [42595.178256] ALSA sound/pci/hda/hda_intel.c:3053 0000:01:00.1:
> Handle VGA-switcheroo audio client
> [...]
> [42595.277831] ALSA sound/pci/hda/hda_intel.c:3053 0000:02:00.1:
> Handle VGA-switcheroo audio client
>
> And lspci:
>
> # lspci -k | grep -E "Audio" -A 2
> 00:1b.0 Audio device: Intel Corporation Patsburg High Definition Audio
> Controller (rev 05)
>         Subsystem: ASUSTeK Computer Inc. Device 84d8
>         Kernel driver in use: snd_hda_intel
> --
> 01:00.1 Audio device: ATI Technologies Inc Device aaa0
>         Subsystem: Hightech Information System Ltd. Device aaa0
>         Kernel driver in use: snd_hda_intel
> --
> 02:00.1 Audio device: ATI Technologies Inc Device aaa0
>         Subsystem: Hightech Information System Ltd. Device aaa0
>         Kernel driver in use: snd_hda_intel
>
>
> Unlike "radeon", snd_hda_intel does not appear to have a param to just
> disable the VGA-switcheroo stuff without also disabling the audio from
> my motherboard.
>
> Any other ideas before I fall back to the hammer of disabling the PCI
> device completely?
>
> Regards,
> Raman
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org

I had exactly the same problem and put the following into a script
that is run at startup:

## Make sure only root can run our script
#if [[ $EUID -ne 0 ]]; then
#  echo "This script must be run as root"
#  exit 1
#fi

card=`lspci | grep -i audio | grep ATI | cut -d ' ' -f1`

if [ "$card" ]; then
  #echo 'card id is: ' $card
  device=`find /sys/devices -name *"$card"`
  if [ "$device" ]; then
    #echo 'device is: ' $device
    echo 1 > $device/remove
  fi
fi

This removes the ati-hdmi device (it's useless for me anyway).

-- 
--joshua


More information about the users mailing list