Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

udev rule

Status
Not open for further replies.

szpuni

Technical User
Feb 12, 2008
69
IE
Hello,

I have a problem with UDEV rule for USB microphone.
I want to use udev so when I connect microphone to my machine I will set up 100% gain on that microphone.

I was playing with different rules but none seem to work.

I'm using that command in shell to force it manually but I would like that this task is done by UDEV daemon.
Code:
/usr/bin/amixer -c 1 sset Mic,0 100%,100% unmute cap 2>&1 | logger

Any ideas?

Thanks

Below udevadm info about that device:

Code:
  looking at device '/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/sound/card1/dsp1':
    KERNEL=="dsp1"
    SUBSYSTEM=="sound"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/sound/card1':
    KERNELS=="card1"
    SUBSYSTEMS=="sound"
    DRIVERS==""
    ATTRS{id}=="default"
    ATTRS{number}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0':
    KERNELS=="7-1:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="snd-usb-audio"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bNumEndpoints}=="00"
    ATTRS{bInterfaceClass}=="01"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bInterfaceProtocol}=="00"
    ATTRS{modalias}=="usb:v0556p0001d0001dc00dsc00dp00ic01isc01ip00"
    ATTRS{supports_autosuspend}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb7/7-1':
    KERNELS=="7-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 2"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="80"
    ATTRS{bMaxPower}==" 90mA"
    ATTRS{urbnum}=="102645093"
    ATTRS{idVendor}=="0556"
    ATTRS{idProduct}=="0001"
    ATTRS{bcdDevice}=="0001"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{speed}=="12"
    ATTRS{busnum}=="7"
    ATTRS{devnum}=="2"
    ATTRS{version}==" 1.10"
    ATTRS{maxchild}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="AKM             "
    ATTRS{product}=="AK5370  "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top