aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/rme9652/hdspm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/rme9652/hdspm.c')
-rw-r--r--sound/pci/rme9652/hdspm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 6e95857e4e67..d2ae6380943e 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -3575,11 +3575,9 @@ static int snd_hdspm_reset(struct snd_pcm_substream *substream)
3575 else 3575 else
3576 runtime->status->hw_ptr = 0; 3576 runtime->status->hw_ptr = 0;
3577 if (other) { 3577 if (other) {
3578 struct list_head *pos;
3579 struct snd_pcm_substream *s; 3578 struct snd_pcm_substream *s;
3580 struct snd_pcm_runtime *oruntime = other->runtime; 3579 struct snd_pcm_runtime *oruntime = other->runtime;
3581 snd_pcm_group_for_each(pos, substream) { 3580 snd_pcm_group_for_each_entry(s, substream) {
3582 s = snd_pcm_group_substream_entry(pos);
3583 if (s == other) { 3581 if (s == other) {
3584 oruntime->status->hw_ptr = 3582 oruntime->status->hw_ptr =
3585 runtime->status->hw_ptr; 3583 runtime->status->hw_ptr;
@@ -3791,10 +3789,8 @@ static int snd_hdspm_trigger(struct snd_pcm_substream *substream, int cmd)
3791 other = hdspm->playback_substream; 3789 other = hdspm->playback_substream;
3792 3790
3793 if (other) { 3791 if (other) {
3794 struct list_head *pos;
3795 struct snd_pcm_substream *s; 3792 struct snd_pcm_substream *s;
3796 snd_pcm_group_for_each(pos, substream) { 3793 snd_pcm_group_for_each_entry(s, substream) {
3797 s = snd_pcm_group_substream_entry(pos);
3798 if (s == other) { 3794 if (s == other) {
3799 snd_pcm_trigger_done(s, substream); 3795 snd_pcm_trigger_done(s, substream);
3800 if (cmd == SNDRV_PCM_TRIGGER_START) 3796 if (cmd == SNDRV_PCM_TRIGGER_START)