Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92094
b: refs/heads/master
c: 0cd87b1
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Takashi Iwai committed Apr 24, 2008
1 parent 8d34ea6 commit dd42194
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: caba7f70fce924dc5da2019f7678189086d0acd4
refs/heads/master: 0cd87b10ca29a351c61c8c63761ab8fb48e47b2f
14 changes: 7 additions & 7 deletions trunk/sound/pci/riptide/riptide.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,14 +1630,14 @@ static int snd_riptide_playback_open(struct snd_pcm_substream *substream)
struct snd_riptide *chip = snd_pcm_substream_chip(substream);
struct snd_pcm_runtime *runtime = substream->runtime;
struct pcmhw *data;
int index = substream->number;
int sub_num = substream->number;

chip->playback_substream[index] = substream;
chip->playback_substream[sub_num] = substream;
runtime->hw = snd_riptide_playback;
data = kzalloc(sizeof(struct pcmhw), GFP_KERNEL);
data->paths = lbus_play_paths[index];
data->id = play_ids[index];
data->source = play_sources[index];
data->paths = lbus_play_paths[sub_num];
data->id = play_ids[sub_num];
data->source = play_sources[sub_num];
data->intdec[0] = 0xff;
data->intdec[1] = 0xff;
data->state = ST_STOP;
Expand Down Expand Up @@ -1670,10 +1670,10 @@ static int snd_riptide_playback_close(struct snd_pcm_substream *substream)
{
struct snd_riptide *chip = snd_pcm_substream_chip(substream);
struct pcmhw *data = get_pcmhwdev(substream);
int index = substream->number;
int sub_num = substream->number;

substream->runtime->private_data = NULL;
chip->playback_substream[index] = NULL;
chip->playback_substream[sub_num] = NULL;
kfree(data);
return 0;
}
Expand Down

0 comments on commit dd42194

Please sign in to comment.