start_udev後報GOTO 'pulseraudio_check_usb' has no matching label in ...

wangyiou1988發表於2015-03-24
    今天在執行redhat 6.6 上執行 start_udev的時候報錯:GOTO 'pulseraudio_check_usb' has no matching label in '/lib/udev/rules.d/90-pulseaudio.rules' 在網上搜了一圈也沒找到辦法,懷疑是版本導致,最後自己琢磨了一下,在網上找到了一個疑似90-pulseaudio.rules的檔案,照著一改,搞定!分享一下。
解決方法如下:

修改'/lib/udev/rules.d/90-pulseaudio.rules'檔案:
原檔案:

SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="usb", GOTO="pulseaudio_check_usb"

SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"

# NVidia and Intel HDAs often have more than one HDMI codec/port on the same card
ATTRS{vendor}=="0x10de", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
ATTRS{vendor}=="0x8086", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
GOTO="pulseaudio_end"

LABEL="pulseaudio_end"

修改為:

SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="usb", GOTO="pulseaudio_check_usb"
LABEL="ppulseaudio_check_usb"

ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf"
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf"
ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"

# NVidia and Intel HDAs often have more than one HDMI codec/port on the same card
ATTRS{vendor}=="0x10de", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
ATTRS{vendor}=="0x8086", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
GOTO="pulseaudio_end"

LABEL="pulseaudio_end"


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25116248/viewspace-1471867/,如需轉載,請註明出處,否則將追究法律責任。

相關文章