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
57e35381
Commit
57e35381
authored
Oct 17, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'alsa/devel' into topic/misc
parents
363129ea
0db71023
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sound/drivers/aloop.c
sound/drivers/aloop.c
+7
-1
No files found.
sound/drivers/aloop.c
View file @
57e35381
...
...
@@ -171,6 +171,10 @@ static void loopback_timer_start(struct loopback_pcm *dpcm)
dpcm
->
pcm_rate_shift
=
rate_shift
;
dpcm
->
period_size_frac
=
frac_pos
(
dpcm
,
dpcm
->
pcm_period_size
);
}
if
(
dpcm
->
period_size_frac
<=
dpcm
->
irq_pos
)
{
dpcm
->
irq_pos
%=
dpcm
->
period_size_frac
;
dpcm
->
period_update_pending
=
1
;
}
tick
=
dpcm
->
period_size_frac
-
dpcm
->
irq_pos
;
tick
=
(
tick
+
dpcm
->
pcm_bps
-
1
)
/
dpcm
->
pcm_bps
;
dpcm
->
timer
.
expires
=
jiffies
+
tick
;
...
...
@@ -531,7 +535,9 @@ static struct snd_pcm_hardware loopback_pcm_hardware =
.
channels_max
=
32
,
.
buffer_bytes_max
=
2
*
1024
*
1024
,
.
period_bytes_min
=
64
,
.
period_bytes_max
=
2
*
1024
*
1024
,
/* note check overflow in frac_pos() using pcm_rate_shift before
changing period_bytes_max value */
.
period_bytes_max
=
1024
*
1024
,
.
periods_min
=
1
,
.
periods_max
=
1024
,
.
fifo_size
=
0
,
...
...
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