diff options
Diffstat (limited to 'sound/pci/pcxhr/pcxhr.c')
-rw-r--r-- | sound/pci/pcxhr/pcxhr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index 9d5bb76229a8..beed5818338c 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -846,7 +846,6 @@ static int pcxhr_open(struct snd_pcm_substream *subs) | |||
846 | struct pcxhr_mgr *mgr = chip->mgr; | 846 | struct pcxhr_mgr *mgr = chip->mgr; |
847 | struct snd_pcm_runtime *runtime = subs->runtime; | 847 | struct snd_pcm_runtime *runtime = subs->runtime; |
848 | struct pcxhr_stream *stream; | 848 | struct pcxhr_stream *stream; |
849 | int is_capture; | ||
850 | 849 | ||
851 | mutex_lock(&mgr->setup_mutex); | 850 | mutex_lock(&mgr->setup_mutex); |
852 | 851 | ||
@@ -856,12 +855,10 @@ static int pcxhr_open(struct snd_pcm_substream *subs) | |||
856 | if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) { | 855 | if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) { |
857 | snd_printdd("pcxhr_open playback chip%d subs%d\n", | 856 | snd_printdd("pcxhr_open playback chip%d subs%d\n", |
858 | chip->chip_idx, subs->number); | 857 | chip->chip_idx, subs->number); |
859 | is_capture = 0; | ||
860 | stream = &chip->playback_stream[subs->number]; | 858 | stream = &chip->playback_stream[subs->number]; |
861 | } else { | 859 | } else { |
862 | snd_printdd("pcxhr_open capture chip%d subs%d\n", | 860 | snd_printdd("pcxhr_open capture chip%d subs%d\n", |
863 | chip->chip_idx, subs->number); | 861 | chip->chip_idx, subs->number); |
864 | is_capture = 1; | ||
865 | if (mgr->mono_capture) | 862 | if (mgr->mono_capture) |
866 | runtime->hw.channels_max = 1; | 863 | runtime->hw.channels_max = 1; |
867 | else | 864 | else |