* [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition
@ 2011-08-11 8:26 Scott Jiang
[not found] ` <CAHG8p1B2HB61yooEsPwzw+4E60ffM2NUsb98yCsanfPnWD9vgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Scott Jiang @ 2011-08-11 8:26 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: uclinux-dist-devel, alsa-devel, stable
asoc cache layer can't support this kind of spi registers,
so bypass cache and read regiters directly
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
---
sound/soc/blackfin/bf5xx-ad193x.c | 2 +-
sound/soc/codecs/ad193x.c | 8 ++++++--
sound/soc/codecs/ad193x.h | 5 +++--
sound/soc/soc-cache.c | 23 +++++++++++++++++++++++
4 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/sound/soc/blackfin/bf5xx-ad193x.c
b/sound/soc/blackfin/bf5xx-ad193x.c
index d40cf68..417200b 100644
--- a/sound/soc/blackfin/bf5xx-ad193x.c
+++ b/sound/soc/blackfin/bf5xx-ad193x.c
@@ -56,7 +56,7 @@ static int bf5xx_ad193x_hw_params(struct
snd_pcm_substream *substream,
switch (params_rate(params)) {
case 48000:
- clk = 12288000;
+ clk = 24576000;
break;
}
diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c
index 2374ca5..1447cc8 100644
--- a/sound/soc/codecs/ad193x.c
+++ b/sound/soc/codecs/ad193x.c
@@ -307,7 +307,8 @@ static int ad193x_hw_params(struct
snd_pcm_substream *substream,
snd_soc_write(codec, AD193X_PLL_CLK_CTRL0, reg);
reg = snd_soc_read(codec, AD193X_DAC_CTRL2);
- reg = (reg & (~AD193X_DAC_WORD_LEN_MASK)) | word_len;
+ reg = (reg & (~AD193X_DAC_WORD_LEN_MASK))
+ | (word_len << AD193X_DAC_WORD_LEN_SHFT);
snd_soc_write(codec, AD193X_DAC_CTRL2, reg);
reg = snd_soc_read(codec, AD193X_ADC_CTRL1);
@@ -361,7 +362,10 @@ static int ad193x_probe(struct snd_soc_codec *codec)
dev_err(codec->dev, "failed to set cache I/O: %d\n", ret);
return ret;
}
-
+#if defined(CONFIG_SPI_MASTER)
+ /* asoc cache layer can't support this kind of spi registers now */
+ codec->cache_bypass = 1;
+#endif
/* default setting for ad193x */
/* unmute dac channels */
diff --git a/sound/soc/codecs/ad193x.h b/sound/soc/codecs/ad193x.h
index 9747b54..cccc2e8 100644
--- a/sound/soc/codecs/ad193x.h
+++ b/sound/soc/codecs/ad193x.h
@@ -34,7 +34,8 @@
#define AD193X_DAC_LEFT_HIGH (1 << 3)
#define AD193X_DAC_BCLK_INV (1 << 7)
#define AD193X_DAC_CTRL2 0x804
-#define AD193X_DAC_WORD_LEN_MASK 0xC
+#define AD193X_DAC_WORD_LEN_SHFT 3
+#define AD193X_DAC_WORD_LEN_MASK 0x18
#define AD193X_DAC_MASTER_MUTE 1
#define AD193X_DAC_CHNL_MUTE 0x805
#define AD193X_DACL1_MUTE 0
@@ -63,7 +64,7 @@
#define AD193X_ADC_CTRL1 0x80f
#define AD193X_ADC_SERFMT_MASK 0x60
#define AD193X_ADC_SERFMT_STEREO (0 << 5)
-#define AD193X_ADC_SERFMT_TDM (1 << 2)
+#define AD193X_ADC_SERFMT_TDM (1 << 5)
#define AD193X_ADC_SERFMT_AUX (2 << 5)
#define AD193X_ADC_WORD_LEN_MASK 0x3
#define AD193X_ADC_CTRL2 0x810
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index 039b953..d9e9682 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -233,6 +233,25 @@ static unsigned int snd_soc_16_8_read_i2c(struct
snd_soc_codec *codec,
#define snd_soc_16_8_read_i2c NULL
#endif
+#if defined(CONFIG_SPI_MASTER)
+static unsigned int snd_soc_16_8_read_spi(struct snd_soc_codec *codec,
+ unsigned int r)
+{
+ struct spi_device *spi = codec->control_data;
+
+ const u16 reg = cpu_to_be16(r | 0x100);
+ u8 data;
+ int ret;
+
+ ret = spi_write_then_read(spi, ®, 2, &data, 1);
+ if (ret < 0)
+ return 0;
+ return data;
+}
+#else
+#define snd_soc_16_8_read_spi NULL
+#endif
+
static unsigned int snd_soc_16_8_read(struct snd_soc_codec *codec,
unsigned int reg)
{
@@ -337,6 +356,7 @@ static struct {
int (*write)(struct snd_soc_codec *codec, unsigned int, unsigned int);
unsigned int (*read)(struct snd_soc_codec *, unsigned int);
unsigned int (*i2c_read)(struct snd_soc_codec *, unsigned int);
+ unsigned int (*spi_read)(struct snd_soc_codec *, unsigned int);
} io_types[] = {
{
.addr_bits = 4, .data_bits = 12,
@@ -360,6 +380,7 @@ static struct {
.addr_bits = 16, .data_bits = 8,
.write = snd_soc_16_8_write, .read = snd_soc_16_8_read,
.i2c_read = snd_soc_16_8_read_i2c,
+ .spi_read = snd_soc_16_8_read_spi,
},
{
.addr_bits = 16, .data_bits = 16,
@@ -425,6 +446,8 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
#ifdef CONFIG_SPI_MASTER
codec->hw_write = do_spi_write;
#endif
+ if (io_types[i].spi_read)
+ codec->hw_read = io_types[i].spi_read;
codec->control_data = container_of(codec->dev,
struct spi_device,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 12+ messages in thread[parent not found: <CAHG8p1B2HB61yooEsPwzw+4E60ffM2NUsb98yCsanfPnWD9vgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [alsa-devel][PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition [not found] ` <CAHG8p1B2HB61yooEsPwzw+4E60ffM2NUsb98yCsanfPnWD9vgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-08-11 8:52 ` Zhang, Sonic 2011-08-11 13:34 ` [uclinux-dist-devel] [PATCH " Greg KH 2011-08-12 2:42 ` Barry Song 0 siblings, 2 replies; 12+ messages in thread From: Zhang, Sonic @ 2011-08-11 8:52 UTC (permalink / raw) To: Scott Jiang, Greg Kroah-Hartman Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org >-----Original Message----- >From: uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org >[mailto:uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org] On >Behalf Of Scott Jiang >Sent: Thursday, August 11, 2011 4:27 PM >To: Greg Kroah-Hartman >Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org; >alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org; stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: >ad193x: add spi_hw_read, fix sysclk and register definition > >asoc cache layer can't support this kind of spi registers, so >bypass cache and read regiters directly > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. Sonic >Signed-off-by: Scott Jiang <scott.jiang.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >--- > sound/soc/blackfin/bf5xx-ad193x.c | 2 +- > sound/soc/codecs/ad193x.c | 8 ++++++-- > sound/soc/codecs/ad193x.h | 5 +++-- > sound/soc/soc-cache.c | 23 +++++++++++++++++++++++ > 4 files changed, 33 insertions(+), 5 deletions(-) > >diff --git a/sound/soc/blackfin/bf5xx-ad193x.c >b/sound/soc/blackfin/bf5xx-ad193x.c >index d40cf68..417200b 100644 >--- a/sound/soc/blackfin/bf5xx-ad193x.c >+++ b/sound/soc/blackfin/bf5xx-ad193x.c >@@ -56,7 +56,7 @@ static int bf5xx_ad193x_hw_params(struct >snd_pcm_substream *substream, > > switch (params_rate(params)) { > case 48000: >- clk = 12288000; >+ clk = 24576000; > break; > } > >diff --git a/sound/soc/codecs/ad193x.c >b/sound/soc/codecs/ad193x.c index 2374ca5..1447cc8 100644 >--- a/sound/soc/codecs/ad193x.c >+++ b/sound/soc/codecs/ad193x.c >@@ -307,7 +307,8 @@ static int ad193x_hw_params(struct >snd_pcm_substream *substream, > snd_soc_write(codec, AD193X_PLL_CLK_CTRL0, reg); > > reg = snd_soc_read(codec, AD193X_DAC_CTRL2); >- reg = (reg & (~AD193X_DAC_WORD_LEN_MASK)) | word_len; >+ reg = (reg & (~AD193X_DAC_WORD_LEN_MASK)) >+ | (word_len << AD193X_DAC_WORD_LEN_SHFT); > snd_soc_write(codec, AD193X_DAC_CTRL2, reg); > > reg = snd_soc_read(codec, AD193X_ADC_CTRL1); @@ -361,7 >+362,10 @@ static int ad193x_probe(struct snd_soc_codec *codec) > dev_err(codec->dev, "failed to set cache I/O: >%d\n", ret); > return ret; > } >- >+#if defined(CONFIG_SPI_MASTER) >+ /* asoc cache layer can't support this kind of spi >registers now */ >+ codec->cache_bypass = 1; >+#endif > /* default setting for ad193x */ > > /* unmute dac channels */ >diff --git a/sound/soc/codecs/ad193x.h >b/sound/soc/codecs/ad193x.h index 9747b54..cccc2e8 100644 >--- a/sound/soc/codecs/ad193x.h >+++ b/sound/soc/codecs/ad193x.h >@@ -34,7 +34,8 @@ > #define AD193X_DAC_LEFT_HIGH (1 << 3) > #define AD193X_DAC_BCLK_INV (1 << 7) > #define AD193X_DAC_CTRL2 0x804 >-#define AD193X_DAC_WORD_LEN_MASK 0xC >+#define AD193X_DAC_WORD_LEN_SHFT 3 >+#define AD193X_DAC_WORD_LEN_MASK 0x18 > #define AD193X_DAC_MASTER_MUTE 1 > #define AD193X_DAC_CHNL_MUTE 0x805 > #define AD193X_DACL1_MUTE 0 >@@ -63,7 +64,7 @@ > #define AD193X_ADC_CTRL1 0x80f > #define AD193X_ADC_SERFMT_MASK 0x60 > #define AD193X_ADC_SERFMT_STEREO (0 << 5) >-#define AD193X_ADC_SERFMT_TDM (1 << 2) >+#define AD193X_ADC_SERFMT_TDM (1 << 5) > #define AD193X_ADC_SERFMT_AUX (2 << 5) > #define AD193X_ADC_WORD_LEN_MASK 0x3 > #define AD193X_ADC_CTRL2 0x810 >diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c >index 039b953..d9e9682 100644 >--- a/sound/soc/soc-cache.c >+++ b/sound/soc/soc-cache.c >@@ -233,6 +233,25 @@ static unsigned int >snd_soc_16_8_read_i2c(struct snd_soc_codec *codec, #define >snd_soc_16_8_read_i2c NULL #endif > >+#if defined(CONFIG_SPI_MASTER) >+static unsigned int snd_soc_16_8_read_spi(struct snd_soc_codec *codec, >+ unsigned int r) >+{ >+ struct spi_device *spi = codec->control_data; >+ >+ const u16 reg = cpu_to_be16(r | 0x100); >+ u8 data; >+ int ret; >+ >+ ret = spi_write_then_read(spi, ®, 2, &data, 1); >+ if (ret < 0) >+ return 0; >+ return data; >+} >+#else >+#define snd_soc_16_8_read_spi NULL >+#endif >+ > static unsigned int snd_soc_16_8_read(struct snd_soc_codec *codec, > unsigned int reg) > { >@@ -337,6 +356,7 @@ static struct { > int (*write)(struct snd_soc_codec *codec, unsigned int, >unsigned int); > unsigned int (*read)(struct snd_soc_codec *, unsigned int); > unsigned int (*i2c_read)(struct snd_soc_codec *, unsigned int); >+ unsigned int (*spi_read)(struct snd_soc_codec *, unsigned int); > } io_types[] = { > { > .addr_bits = 4, .data_bits = 12, >@@ -360,6 +380,7 @@ static struct { > .addr_bits = 16, .data_bits = 8, > .write = snd_soc_16_8_write, .read = snd_soc_16_8_read, > .i2c_read = snd_soc_16_8_read_i2c, >+ .spi_read = snd_soc_16_8_read_spi, > }, > { > .addr_bits = 16, .data_bits = 16, >@@ -425,6 +446,8 @@ int snd_soc_codec_set_cache_io(struct >snd_soc_codec *codec, #ifdef CONFIG_SPI_MASTER > codec->hw_write = do_spi_write; > #endif >+ if (io_types[i].spi_read) >+ codec->hw_read = io_types[i].spi_read; > > codec->control_data = container_of(codec->dev, > struct spi_device, >-- >1.7.0.4 >_______________________________________________ >Uclinux-dist-devel mailing list >Uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org >https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel > > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 8:52 ` [alsa-devel][PATCH " Zhang, Sonic @ 2011-08-11 13:34 ` Greg KH 2011-08-11 13:43 ` Takashi Iwai 2011-08-12 2:42 ` Barry Song 1 sibling, 1 reply; 12+ messages in thread From: Greg KH @ 2011-08-11 13:34 UTC (permalink / raw) To: Zhang, Sonic Cc: uclinux-dist-devel@blackfin.uclinux.org, Scott Jiang, alsa-devel@alsa-project.org, stable@kernel.org On Thu, Aug 11, 2011 at 04:52:18AM -0400, Zhang, Sonic wrote: > > > >-----Original Message----- > >From: uclinux-dist-devel-bounces@blackfin.uclinux.org > >[mailto:uclinux-dist-devel-bounces@blackfin.uclinux.org] On > >Behalf Of Scott Jiang > >Sent: Thursday, August 11, 2011 4:27 PM > >To: Greg Kroah-Hartman > >Cc: uclinux-dist-devel@blackfin.uclinux.org; > >alsa-devel@alsa-project.org; stable@kernel.org > >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: > >ad193x: add spi_hw_read, fix sysclk and register definition > > > >asoc cache layer can't support this kind of spi registers, so > >bypass cache and read regiters directly > > > > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. Then I need some acks from all of the relevant maintainers before I can apply it to the stable kernel tree. Is there a corrisponding patch in Linus's tree that does the same thing already? greg k-h ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 13:34 ` [uclinux-dist-devel] [PATCH " Greg KH @ 2011-08-11 13:43 ` Takashi Iwai 2011-08-11 14:17 ` [stable] " Greg KH ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Takashi Iwai @ 2011-08-11 13:43 UTC (permalink / raw) To: Greg KH Cc: Scott Jiang, Mark Brown, alsa-devel@alsa-project.org, uclinux-dist-devel@blackfin.uclinux.org, Zhang, Sonic, stable@kernel.org At Thu, 11 Aug 2011 06:34:32 -0700, Greg KH wrote: > > On Thu, Aug 11, 2011 at 04:52:18AM -0400, Zhang, Sonic wrote: > > > > > > >-----Original Message----- > > >From: uclinux-dist-devel-bounces@blackfin.uclinux.org > > >[mailto:uclinux-dist-devel-bounces@blackfin.uclinux.org] On > > >Behalf Of Scott Jiang > > >Sent: Thursday, August 11, 2011 4:27 PM > > >To: Greg Kroah-Hartman > > >Cc: uclinux-dist-devel@blackfin.uclinux.org; > > >alsa-devel@alsa-project.org; stable@kernel.org > > >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: > > >ad193x: add spi_hw_read, fix sysclk and register definition > > > > > >asoc cache layer can't support this kind of spi registers, so > > >bypass cache and read regiters directly > > > > > > > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. > > Then I need some acks from all of the relevant maintainers before I can > apply it to the stable kernel tree. > > Is there a corrisponding patch in Linus's tree that does the same thing > already? Not yet, even neither in sound git tree. We're handling the same patch now for 3.1. As the patch is likely applicable to 3.0 as is, putting Cc to stable would be enough, I suppose. Scott, the patch to stable kernel must have been applied to the upstream tree beforehand. Read Documentation/stable_kernel_rules.txt. thanks, Takashi ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [stable] [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 13:43 ` Takashi Iwai @ 2011-08-11 14:17 ` Greg KH 2011-08-12 2:44 ` Mark Brown 2011-08-12 4:10 ` Scott Jiang 2 siblings, 0 replies; 12+ messages in thread From: Greg KH @ 2011-08-11 14:17 UTC (permalink / raw) To: Takashi Iwai Cc: Scott Jiang, Mark Brown, alsa-devel@alsa-project.org, uclinux-dist-devel@blackfin.uclinux.org, Zhang, Sonic, stable@kernel.org On Thu, Aug 11, 2011 at 03:43:09PM +0200, Takashi Iwai wrote: > At Thu, 11 Aug 2011 06:34:32 -0700, > Greg KH wrote: > > > > On Thu, Aug 11, 2011 at 04:52:18AM -0400, Zhang, Sonic wrote: > > > > > > > > > >-----Original Message----- > > > >From: uclinux-dist-devel-bounces@blackfin.uclinux.org > > > >[mailto:uclinux-dist-devel-bounces@blackfin.uclinux.org] On > > > >Behalf Of Scott Jiang > > > >Sent: Thursday, August 11, 2011 4:27 PM > > > >To: Greg Kroah-Hartman > > > >Cc: uclinux-dist-devel@blackfin.uclinux.org; > > > >alsa-devel@alsa-project.org; stable@kernel.org > > > >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: > > > >ad193x: add spi_hw_read, fix sysclk and register definition > > > > > > > >asoc cache layer can't support this kind of spi registers, so > > > >bypass cache and read regiters directly > > > > > > > > > > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. > > > > Then I need some acks from all of the relevant maintainers before I can > > apply it to the stable kernel tree. > > > > Is there a corrisponding patch in Linus's tree that does the same thing > > already? > > Not yet, even neither in sound git tree. > > We're handling the same patch now for 3.1. As the patch is likely > applicable to 3.0 as is, putting Cc to stable would be enough, I > suppose. > > > Scott, the patch to stable kernel must have been applied to the > upstream tree beforehand. Read Documentation/stable_kernel_rules.txt. Ok, now dropped from my stable "to-apply" mbox. I'll wait for the real patch to hit Linus's tree. greg k-h ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 13:43 ` Takashi Iwai 2011-08-11 14:17 ` [stable] " Greg KH @ 2011-08-12 2:44 ` Mark Brown 2011-08-12 4:10 ` Scott Jiang 2 siblings, 0 replies; 12+ messages in thread From: Mark Brown @ 2011-08-12 2:44 UTC (permalink / raw) To: Takashi Iwai Cc: Scott Jiang, Greg KH, alsa-devel@alsa-project.org, uclinux-dist-devel@blackfin.uclinux.org, Zhang, Sonic, stable@kernel.org On Thu, Aug 11, 2011 at 03:43:09PM +0200, Takashi Iwai wrote: > Scott, the patch to stable kernel must have been applied to the > upstream tree beforehand. Read Documentation/stable_kernel_rules.txt. It also still needs to get the same sort of review as something going in via the normal routes. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 13:43 ` Takashi Iwai 2011-08-11 14:17 ` [stable] " Greg KH 2011-08-12 2:44 ` Mark Brown @ 2011-08-12 4:10 ` Scott Jiang 2011-08-12 4:17 ` Mark Brown 2011-08-12 5:30 ` Takashi Iwai 2 siblings, 2 replies; 12+ messages in thread From: Scott Jiang @ 2011-08-12 4:10 UTC (permalink / raw) To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Greg KH, Mark Brown, uclinux-dist-devel@blackfin.uclinux.org, Zhang, Sonic, stable@kernel.org 2011/8/11 Takashi Iwai <tiwai@suse.de>: > At Thu, 11 Aug 2011 06:34:32 -0700, > Greg KH wrote: >> >> On Thu, Aug 11, 2011 at 04:52:18AM -0400, Zhang, Sonic wrote: >> > >> > >> > >-----Original Message----- >> > >From: uclinux-dist-devel-bounces@blackfin.uclinux.org >> > >[mailto:uclinux-dist-devel-bounces@blackfin.uclinux.org] On >> > >Behalf Of Scott Jiang >> > >Sent: Thursday, August 11, 2011 4:27 PM >> > >To: Greg Kroah-Hartman >> > >Cc: uclinux-dist-devel@blackfin.uclinux.org; >> > >alsa-devel@alsa-project.org; stable@kernel.org >> > >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: >> > >ad193x: add spi_hw_read, fix sysclk and register definition >> > > >> > >asoc cache layer can't support this kind of spi registers, so >> > >bypass cache and read regiters directly >> > > >> > >> > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. >> >> Then I need some acks from all of the relevant maintainers before I can >> apply it to the stable kernel tree. >> >> Is there a corrisponding patch in Linus's tree that does the same thing >> already? > > Not yet, even neither in sound git tree. > > We're handling the same patch now for 3.1. As the patch is likely > applicable to 3.0 as is, putting Cc to stable would be enough, I > suppose. > > > Scott, the patch to stable kernel must have been applied to the > upstream tree beforehand. Read Documentation/stable_kernel_rules.txt. > Thanks, Takashi. I should send patch for 3.1 and cc stable tree. I have a question here that patch for 3.1 and 3.0 is different, who is responsible for the back patch? Scott ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-12 4:10 ` Scott Jiang @ 2011-08-12 4:17 ` Mark Brown 2011-08-12 5:30 ` Takashi Iwai 1 sibling, 0 replies; 12+ messages in thread From: Mark Brown @ 2011-08-12 4:17 UTC (permalink / raw) To: Scott Jiang Cc: alsa-devel@alsa-project.org, Takashi Iwai, Greg KH, uclinux-dist-devel@blackfin.uclinux.org, Zhang, Sonic, stable@kernel.org On Fri, 2011-08-12 at 12:10 +0800, Scott Jiang wrote: > Thanks, Takashi. I should send patch for 3.1 and cc stable tree. > I have a question here that patch for 3.1 and 3.0 is different, who is > responsible for the back patch? The same people as normally handle patches. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-12 4:10 ` Scott Jiang 2011-08-12 4:17 ` Mark Brown @ 2011-08-12 5:30 ` Takashi Iwai 2011-08-12 5:33 ` Mark Brown 1 sibling, 1 reply; 12+ messages in thread From: Takashi Iwai @ 2011-08-12 5:30 UTC (permalink / raw) To: Scott Jiang Cc: Greg KH, alsa-devel@alsa-project.org, Zhang, Sonic, Mark Brown, uclinux-dist-devel@blackfin.uclinux.org [dropped Cc to stable kernel] At Fri, 12 Aug 2011 12:10:25 +0800, Scott Jiang wrote: > > 2011/8/11 Takashi Iwai <tiwai@suse.de>: > > At Thu, 11 Aug 2011 06:34:32 -0700, > > Greg KH wrote: > >> > >> On Thu, Aug 11, 2011 at 04:52:18AM -0400, Zhang, Sonic wrote: > >> > > >> > > >> > >-----Original Message----- > >> > >From: uclinux-dist-devel-bounces@blackfin.uclinux.org > >> > >[mailto:uclinux-dist-devel-bounces@blackfin.uclinux.org] On > >> > >Behalf Of Scott Jiang > >> > >Sent: Thursday, August 11, 2011 4:27 PM > >> > >To: Greg Kroah-Hartman > >> > >Cc: uclinux-dist-devel@blackfin.uclinux.org; > >> > >alsa-devel@alsa-project.org; stable@kernel.org > >> > >Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: > >> > >ad193x: add spi_hw_read, fix sysclk and register definition > >> > > > >> > >asoc cache layer can't support this kind of spi registers, so > >> > >bypass cache and read regiters directly > >> > > > >> > > >> > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. > >> > >> Then I need some acks from all of the relevant maintainers before I can > >> apply it to the stable kernel tree. > >> > >> Is there a corrisponding patch in Linus's tree that does the same thing > >> already? > > > > Not yet, even neither in sound git tree. > > > > We're handling the same patch now for 3.1. As the patch is likely > > applicable to 3.0 as is, putting Cc to stable would be enough, I > > suppose. > > > > > > Scott, the patch to stable kernel must have been applied to the > > upstream tree beforehand. Read Documentation/stable_kernel_rules.txt. > > > Thanks, Takashi. I should send patch for 3.1 and cc stable tree. To make sure, it doesn't mean to send the patch to stable tree. See below. > I have a question here that patch for 3.1 and 3.0 is different, who is > responsible for the back patch? A slight fuzz can be resolved by patch program. I guess 3.1 patch is applicable to 3.0 in your case. Just try to apply the same patch to 3.0 before submission. If it's applied without error, put "Cc: stable@kernel.org" line after your Signed-off-by line in the change log text. When this line is added, you don't have to send it via e-mail. Greg will pick it up automatically when it's merged to the Linus tree. This is the preferred way than sending patches individually to stable@kernel.org via e-mail. Prepare and send e-mail to stable@kernel.org only when 3.1 patch isn't applicable and a different patch is mandatory for 3.0 kernel. This process begins _after_ the patch is merged to Linus tree. In that case, don't forget to give the corresponding upstream commit it of the patch, too. Takashi _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-12 5:30 ` Takashi Iwai @ 2011-08-12 5:33 ` Mark Brown 2011-08-12 5:38 ` Takashi Iwai 0 siblings, 1 reply; 12+ messages in thread From: Mark Brown @ 2011-08-12 5:33 UTC (permalink / raw) To: Takashi Iwai Cc: Greg KH, Scott Jiang, Zhang, Sonic, alsa-devel@alsa-project.org, uclinux-dist-devel@blackfin.uclinux.org On Fri, Aug 12, 2011 at 07:30:04AM +0200, Takashi Iwai wrote: > Scott Jiang wrote: > > I have a question here that patch for 3.1 and 3.0 is different, who is > > responsible for the back patch? > A slight fuzz can be resolved by patch program. I guess 3.1 patch > is applicable to 3.0 in your case. It's not just fuzz, between 3.0 and 3.1 the code was moved into a completely different file. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-12 5:33 ` Mark Brown @ 2011-08-12 5:38 ` Takashi Iwai 0 siblings, 0 replies; 12+ messages in thread From: Takashi Iwai @ 2011-08-12 5:38 UTC (permalink / raw) To: Mark Brown Cc: Greg KH, Scott Jiang, Zhang, Sonic, alsa-devel@alsa-project.org, uclinux-dist-devel@blackfin.uclinux.org At Fri, 12 Aug 2011 14:33:38 +0900, Mark Brown wrote: > > On Fri, Aug 12, 2011 at 07:30:04AM +0200, Takashi Iwai wrote: > > Scott Jiang wrote: > > > > I have a question here that patch for 3.1 and 3.0 is different, who is > > > responsible for the back patch? > > > A slight fuzz can be resolved by patch program. I guess 3.1 patch > > is applicable to 3.0 in your case. > > It's not just fuzz, between 3.0 and 3.1 the code was moved into a > completely different file. Ah, I forgot the file split. Takashi ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [uclinux-dist-devel] [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition 2011-08-11 8:52 ` [alsa-devel][PATCH " Zhang, Sonic 2011-08-11 13:34 ` [uclinux-dist-devel] [PATCH " Greg KH @ 2011-08-12 2:42 ` Barry Song 1 sibling, 0 replies; 12+ messages in thread From: Barry Song @ 2011-08-12 2:42 UTC (permalink / raw) To: Zhang, Sonic Cc: Greg Kroah-Hartman, Scott Jiang, alsa-devel@alsa-project.org, stable@kernel.org, uclinux-dist-devel@blackfin.uclinux.org >>Subject: [uclinux-dist-devel] [alsa-devel][PATCH 3.0]ASoC: >>ad193x: add spi_hw_read, fix sysclk and register definition >> >>asoc cache layer can't support this kind of spi registers, so >>bypass cache and read regiters directly >> > > This patch is against stable kernel 3.0 only, the ASOC framework in kernel 3.1 and later are different. this can't be one patch, but be n patches since it is doing n different work. it is really difficult to understand what the patch is really doing. > > Sonic > >>Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com> -barry ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-08-12 5:38 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 8:26 [PATCH 3.0]ASoC: ad193x: add spi_hw_read, fix sysclk and register definition Scott Jiang
[not found] ` <CAHG8p1B2HB61yooEsPwzw+4E60ffM2NUsb98yCsanfPnWD9vgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-08-11 8:52 ` [alsa-devel][PATCH " Zhang, Sonic
2011-08-11 13:34 ` [uclinux-dist-devel] [PATCH " Greg KH
2011-08-11 13:43 ` Takashi Iwai
2011-08-11 14:17 ` [stable] " Greg KH
2011-08-12 2:44 ` Mark Brown
2011-08-12 4:10 ` Scott Jiang
2011-08-12 4:17 ` Mark Brown
2011-08-12 5:30 ` Takashi Iwai
2011-08-12 5:33 ` Mark Brown
2011-08-12 5:38 ` Takashi Iwai
2011-08-12 2:42 ` Barry Song
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.