ALSA: compress: change the way sample rates are sent to kernel
Subsystems (2)
PATCH 1/1 ALSA: compress: change the way sample rates are sent to kernel
The usage of SNDRV_RATES is not effective as we can have rates like 12000 or some other ones used by decoders. This change the usage of this to use the raw Hz values to be sent to kernel
Signed-off-by Vinod Koul <[email protected]>
--- include/uapi/sound/compress_params.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/uapi/sound/compress_params.h +1 -1
@@ -324,7 +324,7 @@ union snd_codec_options {/** struct snd_codec_desc - description of codec capabilities * @max_ch: Maximum number of audio channels -* @sample_rates: Sampling rates in Hz, use SNDRV_PCM_RATE_xxx for this +* @sample_rates: Sampling rates in Hz, use values like 48000 for this * @bit_rate: Indexed array containing supported bit rates * @num_bitrates: Number of valid values in bit_rate array * @rate_control: value is specified by SND_RATECONTROLMODE defines.
Signature · 1 line
1.7.0.4
Takashi Iwai
AppliedAt Mon, 16 Dec 2013 14:55:34 +0530,
Quoted 6 lines · Vinod Koul
The usage of
SNDRV_RATESis not effective as we can have rates like 12000 or some other ones used by decoders. This change the usage of this to use the raw Hz values to be sent to kernelSigned-off-by Vinod Koul <[email protected]>
Thanks, applied.
Takashi
Quoted 20 lines
--- include/uapi/sound/compress_params.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/uapi/sound/compress_params.h +1
-1@@ -324,7 +324,7 @@ union snd_codec_options {/** struct snd_codec_desc - description of codec capabilities * @max_ch: Maximum number of audio channels -* @sample_rates: Sampling rates in Hz, use SNDRV_PCM_RATE_xxx for this +* @sample_rates: Sampling rates in Hz, use values like 48000 for this * @bit_rate: Indexed array containing supported bit rates * @num_bitrates: Number of valid values in bit_rate array * @rate_control: value is specified by SND_RATECONTROLMODE defines. Signature · 1 line
1.7.0.4