Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jan.koester
Linux
Commits
63fa58d9
Unverified
Commit
63fa58d9
authored
4 years ago
by
Mark Brown
Browse files
Options
Downloads
Plain Diff
Merge Intel catpt DSP fixes into asoc-5.10
parents
bd6327fd
1072460a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/intel/catpt/pcm.c
+4
-5
4 additions, 5 deletions
sound/soc/intel/catpt/pcm.c
with
4 additions
and
5 deletions
sound/soc/intel/catpt/pcm.c
+
4
−
5
View file @
63fa58d9
...
...
@@ -458,10 +458,6 @@ static int catpt_dai_prepare(struct snd_pcm_substream *substream,
if
(
ret
)
return
CATPT_IPC_ERROR
(
ret
);
ret
=
catpt_dsp_update_lpclock
(
cdev
);
if
(
ret
)
return
ret
;
ret
=
catpt_dai_apply_usettings
(
dai
,
stream
);
if
(
ret
)
return
ret
;
...
...
@@ -500,6 +496,7 @@ static int catpt_dai_trigger(struct snd_pcm_substream *substream, int cmd,
case
SNDRV_PCM_TRIGGER_RESUME
:
case
SNDRV_PCM_TRIGGER_PAUSE_RELEASE
:
resume_stream:
catpt_dsp_update_lpclock
(
cdev
);
ret
=
catpt_ipc_resume_stream
(
cdev
,
stream
->
info
.
stream_hw_id
);
if
(
ret
)
return
CATPT_IPC_ERROR
(
ret
);
...
...
@@ -507,11 +504,11 @@ static int catpt_dai_trigger(struct snd_pcm_substream *substream, int cmd,
case
SNDRV_PCM_TRIGGER_STOP
:
stream
->
prepared
=
false
;
catpt_dsp_update_lpclock
(
cdev
);
fallthrough
;
case
SNDRV_PCM_TRIGGER_SUSPEND
:
case
SNDRV_PCM_TRIGGER_PAUSE_PUSH
:
ret
=
catpt_ipc_pause_stream
(
cdev
,
stream
->
info
.
stream_hw_id
);
catpt_dsp_update_lpclock
(
cdev
);
if
(
ret
)
return
CATPT_IPC_ERROR
(
ret
);
break
;
...
...
@@ -534,6 +531,8 @@ void catpt_stream_update_position(struct catpt_dev *cdev,
dsppos
=
bytes_to_frames
(
r
,
pos
->
stream_position
);
if
(
!
stream
->
prepared
)
goto
exit
;
/* only offload is set_write_pos driven */
if
(
stream
->
template
->
type
!=
CATPT_STRM_TYPE_RENDER
)
goto
exit
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment