Sample format is always set to float32le
Greetings.
I have a Realtek ALC269VC
codec. In the datasheet for the chip and as reported
by ALSA, the PCM is said to support 16/20/24-bit PCM formats and 44.1/48/192KHz
sample rates.
With the following daemon.conf
configuration lines:
default-sample-format = s24le
default-sample-rate = 48000
when I call pactl info
, I see the following being reported:
Default Sample Specification: s24le 2ch 48000Hz
However, when I look at the output of pactl list inputs
, I see:
When resampled (source is 44100):
Sample Specification: float32le 2ch 44100Hz
...
Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100"
format.channels = "2" format.channel_map = "\"front-left,front-right\""
When sample method is copy (source is 48000):
Sample Specification: float32le 2ch 48000Hz
...
Format: pcm, format.sample_format = "\"float32le\"" format.rate = "48000"
format.channels = "2" format.channel_map = "\"front-left,front-right\""
the PCM format stated is float32le
. Adding to this, the hw_params
for the
chip states S32_LE
:
0 ~: cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 48000
buffer_size: 96000
the info
for the PCM is listed as:
0 ~: cat /proc/asound/card0/pcm0p/sub0/info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: ALC269VC Analog
name: ALC269VC Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
For resampling methods, I have tried ffmpeg
and all soxr-*
options, the
results have stayed the same.
- Is there an explanation in regard to why the sample format is being set to
float32le
by PulseAudio? - If the maximum reported by ALSA and supported by the datasheet is
S24_LE
, how can the chip doS32_LE
orfloat32le
?
As an addition, this also occurs with another machine that has an
Analog Devices AD1984
codec, where the chip supports 192000
/s24le
at maximum.
Thank you.