input: Change uinput name and add AVRCP suffix
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Tue, 3 Dec 2019 01:03:59 +0000 (17:03 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:47 +0000 (14:30 +0530)
commitff74eb9644fe8b6901a4bad49951f9b889f4241b
tree6453c4ed9fdfc9a7acda3051550cd43d2111fedb
parent6c36570112f2551358b8a9802c7ce8c7f6ae8b7d
input: Change uinput name and add AVRCP suffix

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}==""

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avctp.c