mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05: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_S24_3LE &&
|
||||||
sformat != SND_PCM_FORMAT_S32_LE &&
|
sformat != SND_PCM_FORMAT_S32_LE &&
|
||||||
sformat != SND_PCM_FORMAT_S32_BE) {
|
sformat != SND_PCM_FORMAT_S32_BE) {
|
||||||
SNDERR("only S16_LE, S16_BE, S24_3LE, S32_LE or S32_BE format "
|
SNDERR("only S16_LE, S16_BE, S24_3LE, S32_LE or S32_BE format is supported");
|
||||||
"is supported");
|
|
||||||
snd_config_delete(sconf);
|
snd_config_delete(sconf);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
@ -1094,12 +1093,15 @@ int _snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name,
|
||||||
snd_config_delete(sconf);
|
snd_config_delete(sconf);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
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);
|
snd_pcm_close(spcm);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
err = snd_pcm_softvol_open(pcmp, name, sformat, card, ctl_id, cchannels,
|
err = snd_pcm_softvol_open(pcmp, name, sformat, card, ctl_id,
|
||||||
min_dB, max_dB, resolution, spcm, 1);
|
cchannels, min_dB, max_dB,
|
||||||
|
resolution, spcm, 1);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
snd_pcm_close(spcm);
|
snd_pcm_close(spcm);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue