• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# show information about card
2
3PRINT="CARDINFO:\n"
4PRINT="  CARDINFO{id}=\"$CARDINFO{id}\"\n"
5PRINT="  CARDINFO{card}=\"$CARDINFO{card}\"\n"
6PRINT="  CARDINFO{driver}=\"$CARDINFO{driver}\"\n"
7PRINT="  CARDINFO{name}=\"$CARDINFO{name}\"\n"
8PRINT="  CARDINFO{longname}=\"$CARDINFO{longname}\"\n"
9PRINT="  CARDINFO{mixername}=\"$CARDINFO{mixername}\"\n"
10PRINT="  CARDINFO{components}=\"$CARDINFO{components}\"\n"
11
12# sysfs stuff
13PRINT="sysfs:\n"
14ATTR{bus}=="*", PRINT="  ATTR{bus}=\"$ATTR{bus}\"\n"
15ATTR{class}=="*", PRINT="  ATTR{class}=\"$ATTR{class}\"\n"
16ATTR{driver}=="*", PRINT="  ATTR{driver}=\"$ATTR{driver}\"\n"
17ATTR{vendor}=="*", PRINT="  ATTR{vendor}=\"$ATTR{vendor}\"\n"
18ATTR{device}=="*", PRINT="  ATTR{device}=\"$ATTR{device}\"\n"
19ATTR{subsystem_vendor}=="*", \
20  PRINT="  ATTR{subsystem_vendor}=\"$ATTR{subsystem_vendor}\"\n"
21ATTR{subsystem_device}=="*", \
22  PRINT="  ATTR{subsystem_device}=\"$ATTR{subsystem_device}\"\n"
23