summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-25 23:00:48 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-26 08:31:15 +0200
commit7c500f9ea139d0c9b80fdea5a9c911db3166ea54 (patch)
tree701c97c19bf2220e84414887af89447ef1d165f6 /sound/isa
parentab647a2d62f70cf45d7c64bf9f1574b8c52406e4 (diff)
downloadlinux-stable-7c500f9ea139d0c9b80fdea5a9c911db3166ea54.tar.gz
linux-stable-7c500f9ea139d0c9b80fdea5a9c911db3166ea54.tar.bz2
linux-stable-7c500f9ea139d0c9b80fdea5a9c911db3166ea54.zip
ALSA: msnd: Fix the default sample sizes
The default sample sizes set by msnd driver are bogus; it sets ALSA PCM format, not the actual bit width. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/msnd/msnd_pinnacle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c
index 642609f7eda9..7e3f52c8a6c6 100644
--- a/sound/isa/msnd/msnd_pinnacle.c
+++ b/sound/isa/msnd/msnd_pinnacle.c
@@ -82,10 +82,10 @@
static void set_default_audio_parameters(struct snd_msnd *chip)
{
- chip->play_sample_size = DEFSAMPLESIZE;
+ chip->play_sample_size = snd_pcm_format_width(DEFSAMPLESIZE);
chip->play_sample_rate = DEFSAMPLERATE;
chip->play_channels = DEFCHANNELS;
- chip->capture_sample_size = DEFSAMPLESIZE;
+ chip->capture_sample_size = snd_pcm_format_width(DEFSAMPLESIZE);
chip->capture_sample_rate = DEFSAMPLERATE;
chip->capture_channels = DEFCHANNELS;
}