home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / alsa / init / 00main next >
Encoding:
Text File  |  2009-04-07  |  1.6 KB  |  47 lines

  1. # This is toplevel configuration for for 'alsactl init'.
  2. # See 'man alsactl_init' for syntax.
  3.  
  4. # set root device directory in sysfs for soundcard for ATTR{} command
  5. CONFIG{sysfs_device}="/class/sound/controlC$cardinfo{card}/device"
  6.  
  7. # test for extra commands
  8. ENV{CMD}=="help", INCLUDE="help", GOTO="00main_end"
  9. ENV{CMD}=="info", INCLUDE="info", GOTO="00main_end"
  10. ENV{CMD}=="default", INCLUDE="default", GOTO="00main_end"
  11. ENV{CMD}=="test", INCLUDE="test", GOTO="00main_end"
  12. ENV{CMD}=="*", ERROR="Unknown command '$env{CMD}'\n", GOTO="00main_end"
  13.  
  14. # include files with real configuration
  15. #
  16. # steps are:
  17. #   1) look for preinit subdirectory and parse all files in it
  18. #   2) if RESULT=="skip", skip ALSA standard configuration files
  19. #   3) do ALSA standard configuration
  20. #   4) look for postinit subdirectory and parse all files in it
  21. #   5) if RESULT!="true", initialize hardware using a guess method,
  22. #      print an error message and return with exit code 99
  23. #   6) return with exit code 0 (success)
  24. #
  25.  
  26. RESULT="unknown"
  27. ACCESS=="preinit", INCLUDE="preinit"
  28. RESULT=="skip", GOTO="init_end"
  29.  
  30. # real ALSA configuration database
  31. CARDINFO{driver}=="HDA-Intel", INCLUDE="hda", GOTO="init_end"
  32. CARDINFO{driver}=="Test", INCLUDE="test", GOTO="init_end"
  33.  
  34. LABEL="init_end"
  35. ACCESS=="postinit", INCLUDE="postinit"
  36. RESULT=="true", GOTO="00_mainend"
  37. ERROR="Unknown hardware: \"$cardinfo{driver}\" \"$cardinfo{mixername}\" \"$cardinfo{components}\" \"$attr{subsystem_vendor}\" \"$attr{subsystem_device}\"\n"
  38. ERROR="Hardware is initialized using a guess method\n"
  39. INCLUDE="default"
  40. EXIT="99"
  41.  
  42. #
  43. # label identifying end of main file
  44. #
  45.  
  46. LABEL="00main_end"
  47.