mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
pcm: change code formatting for _snd_pcm_softvol_open()
This commit applies code format according to typical and moderate rule, for _snd_pcm_softvol_open(). Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
349920f93d
commit
df00246841
1 changed files with 7 additions and 5 deletions
|
|
@ -1085,8 +1085,7 @@ int _snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name,
|
|||
sformat != SND_PCM_FORMAT_S24_3LE &&
|
||||
sformat != SND_PCM_FORMAT_S32_LE &&
|
||||
sformat != SND_PCM_FORMAT_S32_BE) {
|
||||
SNDERR("only S16_LE, S16_BE, S24_3LE, S32_LE or S32_BE format "
|
||||
"is supported");
|
||||
SNDERR("only S16_LE, S16_BE, S24_3LE, S32_LE or S32_BE format is supported");
|
||||
snd_config_delete(sconf);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -1094,12 +1093,15 @@ int _snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name,
|
|||
snd_config_delete(sconf);
|
||||
if (err < 0)
|
||||
return err;
|
||||
if ((err = snd_pcm_parse_control_id(control, ctl_id, &card, &cchannels, NULL)) < 0) {
|
||||
err = snd_pcm_parse_control_id(control, ctl_id, &card,
|
||||
&cchannels, NULL);
|
||||
if (err < 0) {
|
||||
snd_pcm_close(spcm);
|
||||
return err;
|
||||
}
|
||||
err = snd_pcm_softvol_open(pcmp, name, sformat, card, ctl_id, cchannels,
|
||||
min_dB, max_dB, resolution, spcm, 1);
|
||||
err = snd_pcm_softvol_open(pcmp, name, sformat, card, ctl_id,
|
||||
cchannels, min_dB, max_dB,
|
||||
resolution, spcm, 1);
|
||||
if (err < 0)
|
||||
snd_pcm_close(spcm);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue