OSDN Git Service

ALSA: msnd: Fix the default sample sizes
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:00:48 +0000 (23:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:31:15 +0000 (08:31 +0200)
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>
sound/isa/msnd/msnd_pinnacle.c

index 642609f..7e3f52c 100644 (file)
 
 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;
 }