Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
46235557
Commit
46235557
authored
May 13, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access/alsa.c: print the subdevices also
parent
bb9c9396
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
modules/access/alsa.c
modules/access/alsa.c
+17
-0
No files found.
modules/access/alsa.c
View file @
46235557
...
...
@@ -207,9 +207,26 @@ static char *ListAvailableDevices( demux_t *p_demux, bool b_probe )
if
(
snd_ctl_pcm_info
(
p_ctl
,
p_pcminfo
)
<
0
)
continue
;
if
(
!
b_probe
)
{
msg_Dbg
(
p_demux
,
" hw:%d,%d : %s (%s)"
,
i_card
,
i_dev
,
snd_pcm_info_get_id
(
p_pcminfo
),
snd_pcm_info_get_name
(
p_pcminfo
)
);
int
count
=
snd_pcm_info_get_subdevices_count
(
p_pcminfo
);
msg_Dbg
(
p_demux
,
" subdevices: %i/%i"
,
snd_pcm_info_get_subdevices_avail
(
p_pcminfo
),
count
);
for
(
int
idx
=
0
;
idx
<
count
;
idx
++
)
{
snd_pcm_info_set_subdevice
(
p_pcminfo
,
idx
);
int
err
=
snd_ctl_pcm_info
(
p_ctl
,
p_pcminfo
);
if
(
err
<
0
)
msg_Err
(
p_demux
,
"control digital audio playback info (%i): %s"
,
i_card
,
snd_strerror
(
err
)
);
else
msg_Dbg
(
p_demux
,
" %i: %s"
,
idx
,
snd_pcm_info_get_subdevice_name
(
p_pcminfo
)
);
}
}
else
{
char
*
psz_device
;
...
...
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