* [PATCH] ALSA: compress: change the way sample rates are sent to kernel
@ 2013-12-16 9:25 Vinod Koul
2013-12-16 14:54 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Vinod Koul @ 2013-12-16 9:25 UTC (permalink / raw)
To: alsa-devel; +Cc: tiwai, Vinod Koul
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 <vinod.koul@intel.com>
---
include/uapi/sound/compress_params.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
index 602dc6c..1114e38 100644
--- a/include/uapi/sound/compress_params.h
+++ b/include/uapi/sound/compress_params.h
@@ -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.
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ALSA: compress: change the way sample rates are sent to kernel
2013-12-16 9:25 [PATCH] ALSA: compress: change the way sample rates are sent to kernel Vinod Koul
@ 2013-12-16 14:54 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2013-12-16 14:54 UTC (permalink / raw)
To: Vinod Koul; +Cc: alsa-devel
At Mon, 16 Dec 2013 14:55:34 +0530,
Vinod Koul wrote:
>
> 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 <vinod.koul@intel.com>
Thanks, applied.
Takashi
> ---
> include/uapi/sound/compress_params.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> index 602dc6c..1114e38 100644
> --- a/include/uapi/sound/compress_params.h
> +++ b/include/uapi/sound/compress_params.h
> @@ -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.
> --
> 1.7.0.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-16 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 9:25 [PATCH] ALSA: compress: change the way sample rates are sent to kernel Vinod Koul
2013-12-16 14:54 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).