summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-12-19 13:38:23 +0100
committerTakashi Iwai <tiwai@suse.de>2017-12-19 13:38:23 +0100
commit56a23ee52611ca76421f3d7cac100e1616716dae (patch)
tree22d1f1a6e3621161fcb05e4928fca2e9b0eed28b /drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
parent50947fb04f3a8a5dbc355893c5bf25acaff71e86 (diff)
downloadtalos-op-linux-56a23ee52611ca76421f3d7cac100e1616716dae.tar.gz
talos-op-linux-56a23ee52611ca76421f3d7cac100e1616716dae.zip
ALSA: usb-audio: Proper fallback at get_term_name()
get_term_name() calls snd_usb_copy_string_desc() for retrieving the name when a specific ID (name field) is given. When this returns an error (zero), however, it simply returns as is. This will end up in a fixed name string in the caller side, which often is meaningless. For giving a bit more useful name string depending on the terminal type, change the get_term_name() function to go through the fallback mode. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4_en.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud