input: Change uinput name and add AVRCP suffix

System Internals / BlueZ - Abhishek Pandit-Subedi [chromium.org] - 3 December 2019 17:12 EST

When creating the uinput device, change the name to the peer device name and add a "(AVRCP)" suffix.

The resulting uinput device will look like this:

$ udevadm info -a -p /sys/devices/virtual/input/input17

looking at device '/devices/virtual/input/input17': KERNEL=="input17" SUBSYSTEM=="input" DRIVER=="" ATTR{inhibited}=="0" ATTR{name}=="BeatsStudio Wireless (AVRCP)" ATTR{phys}=="00:00:00:6e:d0:74" ATTR{properties}=="0" ATTR{uniq}==""

29016d835 input: Change uinput name and add AVRCP suffix
profiles/audio/avctp.c | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)

Upstream: git.kernel.org


  • Share