Commit c82590d2b2877ec846c5313ea897420209b91ea7
Committed by
Jaroslav Kysela
1 parent
d6ec894b6d
Exists in
master
and in
7 other branches
[ALSA] Fix mulaw -> linear conversion in OSS PCM emulation
Modules: ALSA<-OSS emulation Fixed the missing mulaw -> linear conversion in OSS PCM emulation code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
sound/core/oss/pcm_plugin.c
... | ... | @@ -470,7 +470,8 @@ |
470 | 470 | /* format change */ |
471 | 471 | if (srcformat.format != dstformat.format) { |
472 | 472 | tmpformat.format = dstformat.format; |
473 | - if (tmpformat.format == SNDRV_PCM_FORMAT_MU_LAW) { | |
473 | + if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || | |
474 | + tmpformat.format == SNDRV_PCM_FORMAT_MU_LAW) { | |
474 | 475 | err = snd_pcm_plugin_build_mulaw(plug, |
475 | 476 | &srcformat, &tmpformat, |
476 | 477 | &plugin); |