Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hda-intel, correct a bug in detection of rate supported
@ 2005-08-19 19:59 Nicolas GRAZIANO
  2005-08-19 23:19 ` Sasha Khapyorsky
  2005-08-22 12:48 ` Takashi Iwai
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas GRAZIANO @ 2005-08-19 19:59 UTC (permalink / raw)
  To: alsa-devel

The insertion of the rate 9600 make a shift in detection of supported
rate, put this rate at the end of the list.

Signed-off-by: Nicolas Graziano <nicolas.graziano@wanadoo.fr>


Index: pci/hda/hda_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/hda_codec.c,v
retrieving revision 1.23
diff -u -r1.23 hda_codec.c
--- pci/hda/hda_codec.c 11 Aug 2005 10:00:16 -0000      1.23
+++ pci/hda/hda_codec.c 19 Aug 2005 19:43:51 -0000
@@ -1165,8 +1165,9 @@
  */
 static unsigned int rate_bits[][3] = {
        /* rate in Hz, ALSA rate bitmask, HDA format value */
+
+       /* autodetected value used in snd_hda_query_supported_pcm */
        { 8000, SNDRV_PCM_RATE_8000, 0x0500 }, /* 1/6 x 48 */
-       { 9600, SNDRV_PCM_RATE_KNOT, 0x0400 }, /* 1/5 x 48 */
        { 11025, SNDRV_PCM_RATE_11025, 0x4300 }, /* 1/4 x 44 */
        { 16000, SNDRV_PCM_RATE_16000, 0x0200 }, /* 1/3 x 48 */
        { 22050, SNDRV_PCM_RATE_22050, 0x4100 }, /* 1/2 x 44 */
@@ -1177,6 +1178,9 @@
        { 96000, SNDRV_PCM_RATE_96000, 0x0800 }, /* 2 x 48 */
        { 176400, SNDRV_PCM_RATE_176400, 0x5800 },/* 4 x 44 */
        { 192000, SNDRV_PCM_RATE_192000, 0x1800 }, /* 4 x 48 */
+
+       /* not autodetected value */
+       { 9600, SNDRV_PCM_RATE_KNOT, 0x0400 }, /* 1/5 x 48 */
        { 0 }
 };




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hda-intel, correct a bug in detection of rate supported
  2005-08-19 19:59 [PATCH] hda-intel, correct a bug in detection of rate supported Nicolas GRAZIANO
@ 2005-08-19 23:19 ` Sasha Khapyorsky
  2005-08-22 12:48 ` Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Sasha Khapyorsky @ 2005-08-19 23:19 UTC (permalink / raw)
  To: Nicolas GRAZIANO; +Cc: alsa-devel

On 21:59 Fri 19 Aug     , Nicolas GRAZIANO wrote:
> The insertion of the rate 9600 make a shift in detection of supported
> rate, put this rate at the end of the list.

Good point. Thanks for fixing.

Sasha.

> 
> Signed-off-by: Nicolas Graziano <nicolas.graziano@wanadoo.fr>
> 
> 
> Index: pci/hda/hda_codec.c
> ===================================================================
> RCS file: /cvsroot/alsa/alsa-kernel/pci/hda/hda_codec.c,v
> retrieving revision 1.23
> diff -u -r1.23 hda_codec.c
> --- pci/hda/hda_codec.c 11 Aug 2005 10:00:16 -0000      1.23
> +++ pci/hda/hda_codec.c 19 Aug 2005 19:43:51 -0000
> @@ -1165,8 +1165,9 @@
>   */
>  static unsigned int rate_bits[][3] = {
>         /* rate in Hz, ALSA rate bitmask, HDA format value */
> +
> +       /* autodetected value used in snd_hda_query_supported_pcm */
>         { 8000, SNDRV_PCM_RATE_8000, 0x0500 }, /* 1/6 x 48 */
> -       { 9600, SNDRV_PCM_RATE_KNOT, 0x0400 }, /* 1/5 x 48 */
>         { 11025, SNDRV_PCM_RATE_11025, 0x4300 }, /* 1/4 x 44 */
>         { 16000, SNDRV_PCM_RATE_16000, 0x0200 }, /* 1/3 x 48 */
>         { 22050, SNDRV_PCM_RATE_22050, 0x4100 }, /* 1/2 x 44 */
> @@ -1177,6 +1178,9 @@
>         { 96000, SNDRV_PCM_RATE_96000, 0x0800 }, /* 2 x 48 */
>         { 176400, SNDRV_PCM_RATE_176400, 0x5800 },/* 4 x 44 */
>         { 192000, SNDRV_PCM_RATE_192000, 0x1800 }, /* 4 x 48 */
> +
> +       /* not autodetected value */
> +       { 9600, SNDRV_PCM_RATE_KNOT, 0x0400 }, /* 1/5 x 48 */
>         { 0 }
>  };
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hda-intel, correct a bug in detection of rate supported
  2005-08-19 19:59 [PATCH] hda-intel, correct a bug in detection of rate supported Nicolas GRAZIANO
  2005-08-19 23:19 ` Sasha Khapyorsky
@ 2005-08-22 12:48 ` Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2005-08-22 12:48 UTC (permalink / raw)
  To: Nicolas GRAZIANO; +Cc: alsa-devel

At Fri, 19 Aug 2005 21:59:58 +0200,
Nicolas GRAZIANO wrote:
> 
> The insertion of the rate 9600 make a shift in detection of supported
> rate, put this rate at the end of the list.
> 
> Signed-off-by: Nicolas Graziano <nicolas.graziano@wanadoo.fr>

Applied to CVS.  Thanks.

BTW, the patch was broken because of tab/space replacement by your
mailer.  Please use attachments at the next time in such a case.


Takashi


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-22 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-19 19:59 [PATCH] hda-intel, correct a bug in detection of rate supported Nicolas GRAZIANO
2005-08-19 23:19 ` Sasha Khapyorsky
2005-08-22 12:48 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox