Skip to content

Commit 5993f94

Browse files
tiwaigregkh
authored andcommitted
ALSA: msnd: Fix the default sample sizes
[ Upstream commit 7c500f9ea139d0c9b80fdea5a9c911db3166ea54 ] 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bd08974 commit 5993f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/isa/msnd/msnd_pinnacle.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282

8383
static void set_default_audio_parameters(struct snd_msnd *chip)
8484
{
85-
chip->play_sample_size = DEFSAMPLESIZE;
85+
chip->play_sample_size = snd_pcm_format_width(DEFSAMPLESIZE);
8686
chip->play_sample_rate = DEFSAMPLERATE;
8787
chip->play_channels = DEFCHANNELS;
88-
chip->capture_sample_size = DEFSAMPLESIZE;
88+
chip->capture_sample_size = snd_pcm_format_width(DEFSAMPLESIZE);
8989
chip->capture_sample_rate = DEFSAMPLERATE;
9090
chip->capture_channels = DEFCHANNELS;
9191
}

0 commit comments

Comments
 (0)