For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang
---
sound/soc/fsl
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang
---
sound/soc/fsl
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang
---
sound/soc/fsl
The register SFCSR is volatile, but some bits in it need to be
recovered after suspend/resume.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_ssi.c | 12
1 file changed, 12 insertions(+)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 52b894f..e414f18 100644
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power
source of modules during system suspend and resume procedure. Thus,
SSI needs to save all the values of registers before the system
suspend and restore them after the system resume.
Signed-off-by: Zidan Wang
---
sound/soc/fsl
The register SFCSR is volatile, but some bits in it need to be
recovered after suspend/resume.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_ssi.c | 12
1 file changed, 12 insertions(+)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power
source of modules during system suspend and resume procedure. Thus,
SSI needs to save all the values of registers before the system
suspend and restore them after the system resume.
Signed-off-by: Zidan Wang zidan.w
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang zidan.w
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang zidan.w
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.
Signed-off-by: Zidan Wang zidan.w
. When playback and capture
simultaneously, the second stream should not set pll, should not
change the sysclk and bclk, just need set DAC/ADC divider to support
different TX and RX sample rate.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 256
. When playback and capture
simultaneously, the second stream should not set pll, should not
change the sysclk and bclk, just need set DAC/ADC divider to support
different TX and RX sample rate.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 256
On Tue, Jun 30, 2015 at 11:42:00AM +0100, Charles Keepax wrote:
> On Tue, Jun 30, 2015 at 04:54:09PM +0800, Zidan Wang wrote:
> > On Mon, Jun 29, 2015 at 10:44:12AM +0100, Charles Keepax wrote:
> > > On Fri, Jun 26, 2015 at 07:09:22PM +0800, Zidan Wang wrote:
> > > >
On Tue, Jun 30, 2015 at 11:42:00AM +0100, Charles Keepax wrote:
On Tue, Jun 30, 2015 at 04:54:09PM +0800, Zidan Wang wrote:
On Mon, Jun 29, 2015 at 10:44:12AM +0100, Charles Keepax wrote:
On Fri, Jun 26, 2015 at 07:09:22PM +0800, Zidan Wang wrote:
When using snd_soc_dai_set_pll to set
On Mon, Jun 29, 2015 at 10:44:12AM +0100, Charles Keepax wrote:
> On Fri, Jun 26, 2015 at 07:09:22PM +0800, Zidan Wang wrote:
> > When using snd_soc_dai_set_pll to set pll in machine driver, we
> > should set pll in and pll out freq and ensure 5 < PLLN < 13,
> > other
On Mon, Jun 29, 2015 at 10:44:12AM +0100, Charles Keepax wrote:
On Fri, Jun 26, 2015 at 07:09:22PM +0800, Zidan Wang wrote:
When using snd_soc_dai_set_pll to set pll in machine driver, we
should set pll in and pll out freq and ensure 5 PLLN 13,
otherwise set pll will be failed. In order
ll out freq and set the pll
again.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 160 --
1 file changed, 126 insertions(+), 34 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 94c5c46..9b17ca7
freq and set the pll
again.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 160 --
1 file changed, 126 insertions(+), 34 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 94c5c46
On Tue, Jun 16, 2015 at 01:18:39PM +0100, Charles Keepax wrote:
> On Tue, Jun 16, 2015 at 02:23:19PM +0800, Zidan Wang wrote:
> > Add dapm kcontrols to select left/right ADC input source, one to select
> > the left ADC input source and one for the right ADC input source.
>
On Tue, Jun 16, 2015 at 01:18:39PM +0100, Charles Keepax wrote:
On Tue, Jun 16, 2015 at 02:23:19PM +0800, Zidan Wang wrote:
Add dapm kcontrols to select left/right ADC input source, one to select
the left ADC input source and one for the right ADC input source.
In default, the left ADC
On Fri, Jun 12, 2015 at 11:33:49AM +0100, Mark Brown wrote:
> On Fri, Jun 12, 2015 at 02:32:33PM +0800, Zidan Wang wrote:
>
> > I have done some test today, and found that after mclk enable, we should
> > delay
> > at least 150ms to prepare the jack detect function.
On Fri, Jun 12, 2015 at 01:50:05PM +0100, Charles Keepax wrote:
> On Thu, Jun 11, 2015 at 07:14:34PM +0800, Zidan Wang wrote:
> > The ADCLRC/GPIO1, LINPUT3/JD2 and RINPUT3/JD3 pins can be selected as
> > headphone jack detect inputs to automatically disable the speaker output
,
the left(right) input path will be powered down.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 24 ++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 023e898..3ea12b7 100644
--- a/sound/soc
,
the left(right) input path will be powered down.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 24 ++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 023e898..3ea12b7
On Fri, Jun 12, 2015 at 01:50:05PM +0100, Charles Keepax wrote:
On Thu, Jun 11, 2015 at 07:14:34PM +0800, Zidan Wang wrote:
The ADCLRC/GPIO1, LINPUT3/JD2 and RINPUT3/JD3 pins can be selected as
headphone jack detect inputs to automatically disable the speaker output
and enable the headphone
On Fri, Jun 12, 2015 at 11:33:49AM +0100, Mark Brown wrote:
On Fri, Jun 12, 2015 at 02:32:33PM +0800, Zidan Wang wrote:
I have done some test today, and found that after mclk enable, we should
delay
at least 150ms to prepare the jack detect function. So no need to move mclk
enable
Add two kcontrols to select ADC left/right channel source, one to select
the left channel source and one for the right channel source.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs
Add two kcontrols to select ADC left/right channel source, one to select
the left channel source and one for the right channel source.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/sound/soc/codecs
On Thu, Jun 11, 2015 at 08:51:07AM -0700, Nicolin Chen wrote:
> On Thu, Jun 11, 2015 at 07:10:00PM +0800, Zidan Wang wrote:
>
> > > > This imx-wm8960 device-tree-only machine driver works with sai driver
> > > > and have below feature.
> > >
On Thu, Jun 11, 2015 at 05:20:28PM +0100, Mark Brown wrote:
> On Thu, Jun 11, 2015 at 07:14:33PM +0800, Zidan Wang wrote:
> > It will playback from speaker in the first 2 seconds, then switch to
> > headphone. Steps to reproduce this issue:
> > 1. plug out headphone and playba
On Thu, Jun 11, 2015 at 08:51:07AM -0700, Nicolin Chen wrote:
On Thu, Jun 11, 2015 at 07:10:00PM +0800, Zidan Wang wrote:
This imx-wm8960 device-tree-only machine driver works with sai driver
and have below feature.
* support codec master and slave mode
* support headphone jack
On Thu, Jun 11, 2015 at 05:20:28PM +0100, Mark Brown wrote:
On Thu, Jun 11, 2015 at 07:14:33PM +0800, Zidan Wang wrote:
It will playback from speaker in the first 2 seconds, then switch to
headphone. Steps to reproduce this issue:
1. plug out headphone and playback a wav.
2. stop playback
The ADCLRC/GPIO1, LINPUT3/JD2 and RINPUT3/JD3 pins can be selected as
headphone jack detect inputs to automatically disable the speaker output
and enable the headphone.
Signed-off-by: Zidan Wang
---
Documentation/devicetree/bindings/sound/wm8960.txt | 11 +++
include/sound/wm8960.h
add kcontrol to select ADC data output.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index c1be15c..62246f1 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs
the enum of "DAC Polarity" should be wm8960_enum[1].
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 62246f1..d482c0f 100644
--- a/sound/soc/codec
It will playback from speaker in the first 2 seconds, then switch to
headphone. Steps to reproduce this issue:
1. plug out headphone and playback a wav.
2. stop playback and wait for at least 5 seconds, then
plug in headphone and playback a wav.
Signed-off-by: Zidan Wang
---
sound/soc/codecs
On Wed, Jun 10, 2015 at 11:36:21AM -0700, Nicolin Chen wrote:
> On Wed, Jun 10, 2015 at 04:26:27PM +0800, Zidan Wang wrote:
> > This imx-wm8960 device-tree-only machine driver works with sai driver
> > and have below feature.
> > * support codec master and slave mode
> &g
The ADCLRC/GPIO1, LINPUT3/JD2 and RINPUT3/JD3 pins can be selected as
headphone jack detect inputs to automatically disable the speaker output
and enable the headphone.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
Documentation/devicetree/bindings/sound/wm8960.txt | 11
add kcontrol to select ADC data output.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index c1be15c..62246f1 100644
--- a/sound/soc/codecs/wm8960
the enum of DAC Polarity should be wm8960_enum[1].
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 62246f1..d482c0f 100644
--- a/sound
It will playback from speaker in the first 2 seconds, then switch to
headphone. Steps to reproduce this issue:
1. plug out headphone and playback a wav.
2. stop playback and wait for at least 5 seconds, then
plug in headphone and playback a wav.
Signed-off-by: Zidan Wang zidan.w
On Wed, Jun 10, 2015 at 11:36:21AM -0700, Nicolin Chen wrote:
On Wed, Jun 10, 2015 at 04:26:27PM +0800, Zidan Wang wrote:
This imx-wm8960 device-tree-only machine driver works with sai driver
and have below feature.
* support codec master and slave mode
* support headphone jack detect
This imx-wm8960 device-tree-only machine driver works with sai driver
and have below feature.
* support codec master and slave mode
* support headphone jack detect
* support headphone and micphone jack event
* support asrc<->sai<->wm8960 mode
Signed-off-by: Zidan Wang
---
..
This imx-wm8960 device-tree-only machine driver works with sai driver
and have below feature.
* support codec master and slave mode
* support headphone jack detect
* support headphone and micphone jack event
* support asrc-sai-wm8960 mode
Signed-off-by: Zidan Wang zidan.w...@freescale.com
imx7 board
and test it with internal branch.
I found that (txclk_df + 1) is better than txclk_df.
I suspect the patch for clk_round_rate() is not in our branch. Could you please
tell me which
patch is for clk_round_rate? I want to cherry-pick it to our branch and test it.
Best Regards,
Zid
() is not in our branch. Could you please
tell me which
patch is for clk_round_rate? I want to cherry-pick it to our branch and test it.
Best Regards,
Zidan Wang
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang
Signed-off-by: Mark Brown
---
sound/soc/fsl/fsl_sai.c | 24
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 34 --
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang
Signed-off-by: Mark Brown
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
Signed-off-by: Mark Brown broo...@kernel.org
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 34 --
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
Signed-off-by: Mark Brown broo...@kernel.org
It should be "RINPUT3" instead of "LINPUT3" route to "Right Input
Mixer".
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 2559e
wm8960 codec driver missing configure its bit clock and frame clock for codec
master mode, so add support for it. It will calculate a appropriate frequency
dividing ratio according to the system clock, bit clock and frame clock, then
set the corresponding registers.
Signed-off-by: Zidan Wang
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 28 ++--
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 24 +---
1 file
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
According to the RM of wm8958, BCLK DIV 348 doesn't exist, correct it
to 384.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8994.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 2d32b54..33bf663 100644
According to referance manual, right justify mode can't
support 32 bit word length.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index b072501..2559e31
According to referance manual, right justify mode can't
support 32 bit word length.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
It should be RINPUT3 instead of LINPUT3 route to Right Input
Mixer.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 2559e31..4ab1607
According to the RM of wm8958, BCLK DIV 348 doesn't exist, correct it
to 384.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/codecs/wm8994.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 2d32b54
wm8960 codec driver missing configure its bit clock and frame clock for codec
master mode, so add support for it. It will calculate a appropriate frequency
dividing ratio according to the system clock, bit clock and frame clock, then
set the corresponding registers.
Signed-off-by: Zidan Wang
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 24
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 28 ++--
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
Add SAI master mode support.
Add tdm slots operation for SAI master mode.
Add 12kHz, 24kHz, 176.4kHz and 192kHz sample rate support.
Zidan Wang (3):
SoC: fsl_sai: add sai master mode support
ASoC: fsl_sai: Add tdm slots operation for SAI master mode
ASoC: fsl_sai: add 12kHz, 24kHz, 176.4kHz
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 28 ++--
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 24 +---
1 file
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
be unused BCLK cycles before each LRCLK transition.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 28 ++--
sound/soc/fsl/fsl_sai.h | 3 +++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
Normally we don't support 12kHz, 24kHz in audio driver, alsa didn't
have formal definition of 12kHz, 24kHz, but alsa supply a way to
support these sample rates. And add 176.4kHz and 192kHz support.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 24
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 117 ++--
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 121 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
Add SAI master mode support.
Add tdm slots operation for SAI master mode.
Add 12kHz, 24kHz, 176.4kHz and 192kHz sample rate support.
Zidan Wang (3):
SoC: fsl_sai: add sai master mode support
ASoC: fsl_sai: Add tdm slots operation for SAI master mode
ASoC: fsl_sai: add 12kHz, 24kHz, 176.4kHz
On Thu, Jan 22, 2015 at 03:50:20PM -0800, Nicolin Chen wrote:
> On Thu, Jan 22, 2015 at 02:20:06PM +0800, Zidan Wang wrote:
> > > > > > @@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct
> > > > > > snd_pcm_substream *substream,
> > >
On Thu, Jan 22, 2015 at 03:50:20PM -0800, Nicolin Chen wrote:
On Thu, Jan 22, 2015 at 02:20:06PM +0800, Zidan Wang wrote:
@@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct
snd_pcm_substream *substream,
u32 word_width = snd_pcm_format_width(params_format(params
On Wed, Jan 21, 2015 at 09:44:10PM -0800, Nicolin Chen wrote:
> On Thu, Jan 22, 2015 at 12:55:35PM +0800, Zidan Wang wrote:
> > On Wed, Jan 21, 2015 at 10:08:03AM -0800, Nicolin Chen wrote:
> > > On Tue, Jan 20, 2015 at 08:21:19PM +0800, Zidan Wang wrote:
> > > > @@
On Wed, Jan 21, 2015 at 10:53:20AM -0800, Nicolin Chen wrote:
> On Tue, Jan 20, 2015 at 08:21:20PM +0800, Zidan Wang wrote:
> > Add Right-J mode and set TCR5 FBT bit to let data right justify.
> >
> > Signed-off-by: Zidan Wang
>
> > - if (sai->is_lsb_fir
On Wed, Jan 21, 2015 at 10:08:03AM -0800, Nicolin Chen wrote:
> On Tue, Jan 20, 2015 at 08:21:19PM +0800, Zidan Wang wrote:
> > @@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct snd_pcm_substream
> > *substream,
> > u32 word_width = snd_pcm_format_width
On Tue, Jan 20, 2015 at 10:07:03PM -0800, Nicolin Chen wrote:
> On Tue, Jan 20, 2015 at 08:21:18PM +0800, Zidan Wang wrote:
> > +static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq)
>
> > + if ((tx && sai->synchronous[TX]) ||
On Wed, Jan 21, 2015 at 10:53:20AM -0800, Nicolin Chen wrote:
On Tue, Jan 20, 2015 at 08:21:20PM +0800, Zidan Wang wrote:
Add Right-J mode and set TCR5 FBT bit to let data right justify.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
- if (sai-is_lsb_first)
+ if (sai
On Wed, Jan 21, 2015 at 10:08:03AM -0800, Nicolin Chen wrote:
On Tue, Jan 20, 2015 at 08:21:19PM +0800, Zidan Wang wrote:
@@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct snd_pcm_substream
*substream,
u32 word_width = snd_pcm_format_width(params_format(params));
u32
On Wed, Jan 21, 2015 at 09:44:10PM -0800, Nicolin Chen wrote:
On Thu, Jan 22, 2015 at 12:55:35PM +0800, Zidan Wang wrote:
On Wed, Jan 21, 2015 at 10:08:03AM -0800, Nicolin Chen wrote:
On Tue, Jan 20, 2015 at 08:21:19PM +0800, Zidan Wang wrote:
@@ -369,10 +380,25 @@ static int
On Tue, Jan 20, 2015 at 10:07:03PM -0800, Nicolin Chen wrote:
On Tue, Jan 20, 2015 at 08:21:18PM +0800, Zidan Wang wrote:
+static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq)
+ if ((tx sai-synchronous[TX]) || (!tx !sai-synchronous[RX
Add Right-J mode and set TCR5 FBT bit to let data right justify.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 14 +++---
sound/soc/fsl/fsl_sai.h | 1 +
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
Add sai master mode support.
Add tdm slots support.
Add Right-J mode support.
Zidan Wang (3):
SoC: fsl_sai: add sai master mode support
ASoC: fsl_sai: Add support for tdm slots operation
ASoC: fsl_sai: Add support for Right-J mode
sound/soc/fsl/fsl_sai.c | 164
TCR2 WNW bit to slot width and TCR4 FRSZ bit to slots * channels to
configure frame Length. And it is no need to set TCR4 SYWD to set frame
sync length for sai slave mode, so just do it when it is sai master mode.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 46
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang
---
sound/soc/fsl/fsl_sai.c | 110 +++-
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 115 insertions(+), 4 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index
TCR2 WNW bit to slot width and TCR4 FRSZ bit to slots * channels to
configure frame Length. And it is no need to set TCR4 SYWD to set frame
sync length for sai slave mode, so just do it when it is sai master mode.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 46
Add Right-J mode and set TCR5 FBT bit to let data right justify.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 14 +++---
sound/soc/fsl/fsl_sai.h | 1 +
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
Add sai master mode support.
Add tdm slots support.
Add Right-J mode support.
Zidan Wang (3):
SoC: fsl_sai: add sai master mode support
ASoC: fsl_sai: Add support for tdm slots operation
ASoC: fsl_sai: Add support for Right-J mode
sound/soc/fsl/fsl_sai.c | 164
hw_free() to disable the mclk.
Signed-off-by: Zidan Wang zidan.w...@freescale.com
---
sound/soc/fsl/fsl_sai.c | 110 +++-
sound/soc/fsl/fsl_sai.h | 9 +++-
2 files changed, 115 insertions(+), 4 deletions(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc
On Wed, Jan 14, 2015 at 07:27:03PM +, Mark Brown wrote:
> On Wed, Jan 07, 2015 at 03:31:45PM +0800, Zidan Wang wrote:
>
> > + for (i = 0; i < ARRAY_SIZE(dac_divs); ++i) {
> > + if (wm8960->sysclk == lrclk * dac_divs[i]) {
> > +
On Wed, Jan 14, 2015 at 07:27:03PM +, Mark Brown wrote:
On Wed, Jan 07, 2015 at 03:31:45PM +0800, Zidan Wang wrote:
+ for (i = 0; i ARRAY_SIZE(dac_divs); ++i) {
+ if (wm8960-sysclk == lrclk * dac_divs[i]) {
+ for (j = 0; j ARRAY_SIZE(bclk_divs); ++j
From: Zidan Wang
wm8960 codec driver missing configure its bit clock and frame clock, so add
support for it. It will calculate a appropriate frequency dividing ratio
according to the system clock, bit clock and frame clock, then set the
corresponding registers.
Signed-off-by: Zidan Wang
From: Zidan Wang b50...@freescale.com
wm8960 codec driver missing configure its bit clock and frame clock, so add
support for it. It will calculate a appropriate frequency dividing ratio
according to the system clock, bit clock and frame clock, then set the
corresponding registers.
Signed-off
From: Zidan Wang
When we want to use wm8960 codec, we should enable its MCLK in machine driver.
It's reasonable for wm8960 codec driver to manage its own MCLK.
When current bias_level is SND_SOC_BIAS_ON, it is preparing for a transition
away from ON. In this case, disable the codec mclk. When
From: Zidan Wang b50...@freescale.com
When we want to use wm8960 codec, we should enable its MCLK in machine driver.
It's reasonable for wm8960 codec driver to manage its own MCLK.
When current bias_level is SND_SOC_BIAS_ON, it is preparing for a transition
away from ON. In this case, disable
is not SND_SOC_BIAS_ON, it preparing for a transition to ON. In this case,
enable the codec mclk.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 40 +++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound
that
don't generate much error logs.
Signed-off-by: Zidan Wang
---
sound/soc/codecs/wm8960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 86a5489..cb42385 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs
1 - 100 of 134 matches
Mail list logo