Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
369166ac
Commit
369166ac
authored
Feb 13, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udev ALSA: use vendor name if available
parent
d54c2b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+8
-6
No files found.
modules/services_discovery/udev.c
View file @
369166ac
...
@@ -490,15 +490,17 @@ static char *alsa_get_name (struct udev_device *dev)
...
@@ -490,15 +490,17 @@ static char *alsa_get_name (struct udev_device *dev)
static
char
*
alsa_get_cat
(
struct
udev_device
*
dev
)
static
char
*
alsa_get_cat
(
struct
udev_device
*
dev
)
{
{
char
*
name
;
const
char
*
vnd
;
unsigned
card
,
device
;
if
(
alsa_get_device
(
dev
,
&
card
,
&
device
))
dev
=
udev_device_get_parent
(
dev
);
if
(
dev
==
NULL
)
return
NULL
;
return
NULL
;
if
(
asprintf
(
&
name
,
_
(
"Card %u"
),
card
)
==
-
1
)
vnd
=
udev_device_get_property_value
(
dev
,
"ID_VENDOR_FROM_DATABASE"
);
name
=
NULL
;
if
(
vnd
==
NULL
)
return
name
;
/* FIXME: USB may take time to settle... the parent device */
vnd
=
udev_device_get_property_value
(
dev
,
"ID_BUS"
);
return
vnd
?
strdup
(
vnd
)
:
NULL
;
}
}
int
OpenALSA
(
vlc_object_t
*
obj
)
int
OpenALSA
(
vlc_object_t
*
obj
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment