716 |
case SNDRV_PCM_TRIGGER_STOP: |
case SNDRV_PCM_TRIGGER_STOP: |
717 |
{ |
{ |
718 |
unsigned int what = 0; |
unsigned int what = 0; |
719 |
snd_pcm_substream_t *s = substream; |
snd_pcm_substream_t *s; |
720 |
|
struct list_head *pos; |
721 |
unsigned long flags; |
unsigned long flags; |
722 |
|
|
723 |
do { |
snd_pcm_group_for_each(pos, substream) { |
724 |
|
s = snd_pcm_group_substream_entry(pos); |
725 |
if (s == chip->playback_substream) { |
if (s == chip->playback_substream) { |
726 |
what |= CS4231_PLAYBACK_ENABLE; |
what |= CS4231_PLAYBACK_ENABLE; |
727 |
snd_pcm_trigger_done(s, substream); |
snd_pcm_trigger_done(s, substream); |
729 |
what |= CS4231_RECORD_ENABLE; |
what |= CS4231_RECORD_ENABLE; |
730 |
snd_pcm_trigger_done(s, substream); |
snd_pcm_trigger_done(s, substream); |
731 |
} |
} |
732 |
s = s->link_next; |
} |
|
} while (s != substream); |
|
733 |
|
|
734 |
#if 0 |
#if 0 |
735 |
printk("TRIGGER: what[%x] on(%d)\n", |
printk("TRIGGER: what[%x] on(%d)\n", |