Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
28e9e473
Commit
28e9e473
authored
Dec 17, 2007
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALSA] PCM - added back TSTAMP ioctl for PCM (for old alsa-lib binaries)
Signed-off-by:
Jaroslav Kysela
<
perex@perex.cz
>
parent
f85bf29c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
include/sound/asound.h
include/sound/asound.h
+1
-0
sound/core/pcm_native.c
sound/core/pcm_native.c
+2
-0
No files found.
include/sound/asound.h
View file @
28e9e473
...
@@ -443,6 +443,7 @@ enum {
...
@@ -443,6 +443,7 @@ enum {
enum
{
enum
{
SNDRV_PCM_IOCTL_PVERSION
=
_IOR
(
'A'
,
0x00
,
int
),
SNDRV_PCM_IOCTL_PVERSION
=
_IOR
(
'A'
,
0x00
,
int
),
SNDRV_PCM_IOCTL_INFO
=
_IOR
(
'A'
,
0x01
,
struct
snd_pcm_info
),
SNDRV_PCM_IOCTL_INFO
=
_IOR
(
'A'
,
0x01
,
struct
snd_pcm_info
),
SNDRV_PCM_IOCTL_TSTAMP
=
_IOW
(
'A'
,
0x02
,
int
),
SNDRV_PCM_IOCTL_TTSTAMP
=
_IOW
(
'A'
,
0x03
,
int
),
SNDRV_PCM_IOCTL_TTSTAMP
=
_IOW
(
'A'
,
0x03
,
int
),
SNDRV_PCM_IOCTL_HW_REFINE
=
_IOWR
(
'A'
,
0x10
,
struct
snd_pcm_hw_params
),
SNDRV_PCM_IOCTL_HW_REFINE
=
_IOWR
(
'A'
,
0x10
,
struct
snd_pcm_hw_params
),
SNDRV_PCM_IOCTL_HW_PARAMS
=
_IOWR
(
'A'
,
0x11
,
struct
snd_pcm_hw_params
),
SNDRV_PCM_IOCTL_HW_PARAMS
=
_IOWR
(
'A'
,
0x11
,
struct
snd_pcm_hw_params
),
...
...
sound/core/pcm_native.c
View file @
28e9e473
...
@@ -2546,6 +2546,8 @@ static int snd_pcm_common_ioctl1(struct file *file,
...
@@ -2546,6 +2546,8 @@ static int snd_pcm_common_ioctl1(struct file *file,
return
put_user
(
SNDRV_PCM_VERSION
,
(
int
__user
*
)
arg
)
?
-
EFAULT
:
0
;
return
put_user
(
SNDRV_PCM_VERSION
,
(
int
__user
*
)
arg
)
?
-
EFAULT
:
0
;
case
SNDRV_PCM_IOCTL_INFO
:
case
SNDRV_PCM_IOCTL_INFO
:
return
snd_pcm_info_user
(
substream
,
arg
);
return
snd_pcm_info_user
(
substream
,
arg
);
case
SNDRV_PCM_IOCTL_TSTAMP
:
/* just for compatibility */
return
0
;
case
SNDRV_PCM_IOCTL_TTSTAMP
:
case
SNDRV_PCM_IOCTL_TTSTAMP
:
return
snd_pcm_tstamp
(
substream
,
arg
);
return
snd_pcm_tstamp
(
substream
,
arg
);
case
SNDRV_PCM_IOCTL_HW_REFINE
:
case
SNDRV_PCM_IOCTL_HW_REFINE
:
...
...
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