01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
        Subsystem: Toshiba America Info Systems Device ff50
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at cdefc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
        Subsystem: Toshiba America Info Systems Device ff50
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at f0900000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

#options snd_hda_intel model=toshiba index=1
#options snd-hda-intel position_fix=1 enable=yes

Headphones don't mute laptop speakers:
http://ubuntuforums.org/showthread.php?t=1324555
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/477154
http://ftp.kernel.org/pub/linux/kernel/people/tiwai/misc/hda-verb/hda-verb-0.3.tar.gz

hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x0

hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x40


#/bin/bash
if [  $(/usr/local/bin/hda-verb /dev/snd/hwC0D0 0x1f GET_PIN_WIDGET_CONTROL 0x0 | grep 0x0 | wc -l)  = 1 ];then hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x40;
echo 'unmuted';
else hda-verb /dev/snd/hwC0D0 0x1f SET_PIN_WIDGET_CONTROL 0x0;
fi
Back to top
toshiba_x500-11z_sound.txt · Last modified: 2011/09/20 20:43 (external edit)
Sitemap Search: