All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct
@ 2008-12-16 14:22 Ben Stanley
  2008-12-16 14:50 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Stanley @ 2008-12-16 14:22 UTC (permalink / raw)
  To: alsa-devel

>From dada1c7fe866b860f96d56315648cd5704675aa1 Mon Sep 17 00:00:00 2001
From: Ben Stanley <Ben.Stanley@exemail.com.au>
Date: Fri, 12 Dec 2008 09:47:13 +1100
Subject: [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct

Takashi wrote an email [1] explaining the fields of snd_ca0106_details,
so I captured the information into the ca0106.h header file.

[1] http://article.gmane.org/gmane.linux.alsa.devel/56783/match=takashi+gpio_type

Signed-off-by: Ben Stanley <Ben.Stanley@exemail.com.au>
---
 pci/ca0106/ca0106.h |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pci/ca0106/ca0106.h b/pci/ca0106/ca0106.h
index 74175fc..3faccb6 100644
--- a/pci/ca0106/ca0106.h
+++ b/pci/ca0106/ca0106.h
@@ -664,10 +664,14 @@ struct snd_ca0106_pcm {
 struct snd_ca0106_details {
         u32 serial;
         char * name;
-        int ac97;
-	int gpio_type;
-	int i2c_adc;
-	int spi_dac;
+	int ac97;	/* ac97 = 0 -> Select MIC, Line in, TAD in, AUX in.
+			   ac97 = 1 -> Default to AC97 in. */
+	int gpio_type;	/* gpio_type = 1 -> shared mic-in/line-in
+			   gpio_type = 2 -> shared side-out/line-in. */
+	int i2c_adc;	/* with i2c_adc=1, the driver adds some capture volume
+			   controls, phone, mic, line-in and aux. */
+	int spi_dac;	/* spi_dac=1 adds the mute switch for each analog
+			   output, front, rear, etc. */
 };
 
 // definition of the chip-specific record
-- 
1.5.4.3

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

* Re: [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct
  2008-12-16 14:22 [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct Ben Stanley
@ 2008-12-16 14:50 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-12-16 14:50 UTC (permalink / raw)
  To: Ben Stanley; +Cc: alsa-devel

At Wed, 17 Dec 2008 01:22:32 +1100,
Ben Stanley wrote:
> 
> >From dada1c7fe866b860f96d56315648cd5704675aa1 Mon Sep 17 00:00:00 2001
> From: Ben Stanley <Ben.Stanley@exemail.com.au>
> Date: Fri, 12 Dec 2008 09:47:13 +1100
> Subject: [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct
> 
> Takashi wrote an email [1] explaining the fields of snd_ca0106_details,
> so I captured the information into the ca0106.h header file.
> 
> [1] http://article.gmane.org/gmane.linux.alsa.devel/56783/match=takashi+gpio_type
> 
> Signed-off-by: Ben Stanley <Ben.Stanley@exemail.com.au>

Applied now.  Thanks.


Takashi


> ---
>  pci/ca0106/ca0106.h |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/pci/ca0106/ca0106.h b/pci/ca0106/ca0106.h
> index 74175fc..3faccb6 100644
> --- a/pci/ca0106/ca0106.h
> +++ b/pci/ca0106/ca0106.h
> @@ -664,10 +664,14 @@ struct snd_ca0106_pcm {
>  struct snd_ca0106_details {
>          u32 serial;
>          char * name;
> -        int ac97;
> -	int gpio_type;
> -	int i2c_adc;
> -	int spi_dac;
> +	int ac97;	/* ac97 = 0 -> Select MIC, Line in, TAD in, AUX in.
> +			   ac97 = 1 -> Default to AC97 in. */
> +	int gpio_type;	/* gpio_type = 1 -> shared mic-in/line-in
> +			   gpio_type = 2 -> shared side-out/line-in. */
> +	int i2c_adc;	/* with i2c_adc=1, the driver adds some capture volume
> +			   controls, phone, mic, line-in and aux. */
> +	int spi_dac;	/* spi_dac=1 adds the mute switch for each analog
> +			   output, front, rear, etc. */
>  };
>  
>  // definition of the chip-specific record
> -- 
> 1.5.4.3
> 
> 
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

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

end of thread, other threads:[~2008-12-16 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 14:22 [PATCH] ALSA: ca0106 Add comments to snd_ca0106_details struct Ben Stanley
2008-12-16 14:50 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.