All of lore.kernel.org
 help / color / mirror / Atom feed
* WM9712 Not Giving output
@ 2008-08-01 15:31 Nitin Mahajan
  2008-08-01 16:02 ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-01 15:31 UTC (permalink / raw)
  To: alsa-devel; +Cc: Manuel

Hello!

I am using a WM9712 codec chip with the AC97 controller on AMD AU1250. Linux kernel version 2.6.24.2.

I have used the WM9712 codec driver from sound/soc/codecs. This I got after applying some patch available at wolfson website.

The driver comes up, Identifies the codec chip etc. While I do a playback using aplay I cannot hear anything. I probed the pin 39 of the codec chip , but nothing is coming there, how ever on the SDATAOUT of the code chip I can see the signals while I do a playback.

On AC97 controller's side, I can see the DMA happening on the host processor, interrupts also coming.

On the mixer front, I did unmute and set the vol to max for PCM and Headphone. I did not find any Master control with this chip. Isn't there any master control with this chip?
Can some one please throw more light on the Mixer part, specific to this chip. 
What Mixer controls do I need to set with what values for playback and capture respectively with this chip? 

Thanks in advance regards

-Nitin Mahajan

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

* Re: WM9712 Not Giving output
  2008-08-01 15:31 WM9712 Not Giving output Nitin Mahajan
@ 2008-08-01 16:02 ` Mark Brown
  2008-08-01 17:27   ` Nitin Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2008-08-01 16:02 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: alsa-devel, Manuel

On Fri, Aug 01, 2008 at 08:31:03AM -0700, Nitin Mahajan wrote:

> I am using a WM9712 codec chip with the AC97 controller on AMD AU1250.
> Linux kernel version 2.6.24.2.

> On AC97 controller's side, I can see the DMA happening on the host
> processor, interrupts also coming.

This suggests a mixer configuration problem.

> On the mixer front, I did unmute and set the vol to max for PCM and
> Headphone. I did not find any Master control with this chip. Isn't
> there any master control with this chip?

No.

> Can some one please throw more light on the Mixer part, specific to
> this chip. 

> What Mixer controls do I need to set with what values for playback and
> capture respectively with this chip? 

Check the configuration of the Left HP Mixer and Right HP Mixer PCM
Playback switches.  These should be enabled in order to play back via
the headphone output.

If you still can't get audio output with that please send a copy of your
mixer configuration - run the command

	alsactl store -f mixer-config

to write a file 'mixer-config' with this information in it.  Please
also check your kernel log from when the driver is loaded and when you
configure the mixer.

There is documentation of the audio paths supported by the chip in the
datasheet, available from:

	http://www.wolfsonmicro.com/products/WM9712/

and you may find the audio route mappings in the WM9712 driver useful to
refer to - the 'audio_map' table in the driver which shows how the parts
of the device are connected.  The format is { destination, control,
source }.

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

* Re: WM9712 Not Giving output
  2008-08-01 16:02 ` Mark Brown
@ 2008-08-01 17:27   ` Nitin Mahajan
  2008-08-01 17:40     ` Marek Vasut
  2008-08-01 18:01     ` Mark Brown
  0 siblings, 2 replies; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-01 17:27 UTC (permalink / raw)
  To: alsa-devel



HI!

--- On Fri, 1/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: "Nitin Mahajan" <nitinm76@yahoo.com>
> Cc: alsa-devel@alsa-project.org, "Manuel" <mano@roarinelk.homelinux.net>
> Date: Friday, 1 August, 2008, 9:32 PM
> On Fri, Aug 01, 2008 at 08:31:03AM -0700, Nitin Mahajan
> wrote:
> 
> > I am using a WM9712 codec chip with the AC97
> controller on AMD AU1250.
> > Linux kernel version 2.6.24.2.
> 
> > On AC97 controller's side, I can see the DMA
> happening on the host
> > processor, interrupts also coming.
> 
> This suggests a mixer configuration problem.
> 
> > On the mixer front, I did unmute and set the vol to
> max for PCM and
> > Headphone. I did not find any Master control with this
> chip. Isn't
> > there any master control with this chip?
> 
> No.

If Master is not there, logically are the enough for playback?

amixer set 'PCM' 255 unmute
amixer set 'Headphone' 255 unmute

> 
> > Can some one please throw more light on the Mixer
> part, specific to
> > this chip. 
> 
> > What Mixer controls do I need to set with what values
> for playback and
> > capture respectively with this chip? 
> 
> Check the configuration of the Left HP Mixer and Right HP
> Mixer PCM
> Playback switches.  These should be enabled in order to
> play back via
> the headphone output.
>
While writing the reply , the hardware is not with me.
But I wil check these tommorow. 
> If you still can't get audio output with that please
> send a copy of your
> mixer configuration - run the command
> 
> 	alsactl store -f mixer-config
> 
> to write a file 'mixer-config' with this
> information in it.  Please
> also check your kernel log from when the driver is loaded
> and when you
> configure the mixer.
> 
> There is documentation of the audio paths supported by the
> chip in the
I saw the figure in  the datasheet, its quite explainatory, as to which registers are involved in which path.


> datasheet, available from:
> 
> 	http://www.wolfsonmicro.com/products/WM9712/
> 

> and you may find the audio route mappings in the WM9712
> driver useful to
> refer to - the 'audio_map' table in the driver
> which shows how the parts
> of the device are connected.  The format is { destination,
> control,
> source }.
Thanks and regards

-Nitin

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

* Re: WM9712 Not Giving output
  2008-08-01 17:27   ` Nitin Mahajan
@ 2008-08-01 17:40     ` Marek Vasut
  2008-08-01 18:01     ` Mark Brown
  1 sibling, 0 replies; 15+ messages in thread
From: Marek Vasut @ 2008-08-01 17:40 UTC (permalink / raw)
  To: alsa-devel, nitinm76

Dne Friday 01 of August 2008 19:27:24 Nitin Mahajan napsal(a):
> HI!
>
> --- On Fri, 1/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:
> > From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> > Subject: Re: [alsa-devel] WM9712 Not Giving output
> > To: "Nitin Mahajan" <nitinm76@yahoo.com>
> > Cc: alsa-devel@alsa-project.org, "Manuel" <mano@roarinelk.homelinux.net>
> > Date: Friday, 1 August, 2008, 9:32 PM
> > On Fri, Aug 01, 2008 at 08:31:03AM -0700, Nitin Mahajan
> >
> > wrote:
> > > I am using a WM9712 codec chip with the AC97
> >
> > controller on AMD AU1250.
> >
> > > Linux kernel version 2.6.24.2.
> > >
> > > On AC97 controller's side, I can see the DMA
> >
> > happening on the host
> >
> > > processor, interrupts also coming.
> >
> > This suggests a mixer configuration problem.
> >
> > > On the mixer front, I did unmute and set the vol to
> >
> > max for PCM and
> >
> > > Headphone. I did not find any Master control with this
> >
> > chip. Isn't
> >
> > > there any master control with this chip?
> >
> > No.
>
> If Master is not there, logically are the enough for playback?
>
> amixer set 'PCM' 255 unmute
> amixer set 'Headphone' 255 unmute
>
> > > Can some one please throw more light on the Mixer
> >
> > part, specific to
> >
> > > this chip.
> > >
> > > What Mixer controls do I need to set with what values
> >
> > for playback and
> >
> > > capture respectively with this chip?
> >
> > Check the configuration of the Left HP Mixer and Right HP
> > Mixer PCM
> > Playback switches.  These should be enabled in order to
> > play back via
> > the headphone output.
>
> While writing the reply , the hardware is not with me.
> But I wil check these tommorow.
>
> > If you still can't get audio output with that please
> > send a copy of your
> > mixer configuration - run the command
> >
> > 	alsactl store -f mixer-config
> >
> > to write a file 'mixer-config' with this
> > information in it.  Please
> > also check your kernel log from when the driver is loaded
> > and when you
> > configure the mixer.
> >
> > There is documentation of the audio paths supported by the
> > chip in the
>
> I saw the figure in  the datasheet, its quite explainatory, as to which
> registers are involved in which path.
>
> > datasheet, available from:
> >
> > 	http://www.wolfsonmicro.com/products/WM9712/
> >
> >
> > and you may find the audio route mappings in the WM9712
> > driver useful to
> > refer to - the 'audio_map' table in the driver
> > which shows how the parts
> > of the device are connected.  The format is { destination,
> > control,
> > source }.
>
> Thanks and regards
>
> -Nitin
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Hi,
try searching the mailing list for "[PATCH] wm9712 mono mixer". That may help 
you.

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

* Re: WM9712 Not Giving output
  2008-08-01 17:27   ` Nitin Mahajan
  2008-08-01 17:40     ` Marek Vasut
@ 2008-08-01 18:01     ` Mark Brown
  2008-08-01 18:10       ` Nitin Mahajan
  1 sibling, 1 reply; 15+ messages in thread
From: Mark Brown @ 2008-08-01 18:01 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: alsa-devel

On Fri, Aug 01, 2008 at 10:27:24AM -0700, Nitin Mahajan wrote:

> If Master is not there, logically are the enough for playback?

> amixer set 'PCM' 255 unmute
> amixer set 'Headphone' 255 unmute

No, you also need to ensure that the signal is routed from the DAC to
the headphone output.

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

* Re: WM9712 Not Giving output
  2008-08-01 18:01     ` Mark Brown
@ 2008-08-01 18:10       ` Nitin Mahajan
  0 siblings, 0 replies; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-01 18:10 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel




--- On Fri, 1/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: "Nitin Mahajan" <nitinm76@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Date: Friday, 1 August, 2008, 11:31 PM
> On Fri, Aug 01, 2008 at 10:27:24AM -0700, Nitin Mahajan
> wrote:
> 
> > If Master is not there, logically are the enough for
> playback?
> 
> > amixer set 'PCM' 255 unmute
> > amixer set 'Headphone' 255 unmute
> 
> No, you also need to ensure that the signal is routed from
> the DAC to
> the headphone output.

Ya Sure, I meant from Mixer settings point of view, are these settings enough?

> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

* Re: WM9712 Not Giving output
       [not found] <673245.97031.qm@web50106.mail.re2.yahoo.com>
@ 2008-08-01 18:23 ` Marek Vasut
  2008-08-01 18:26   ` Nitin Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Marek Vasut @ 2008-08-01 18:23 UTC (permalink / raw)
  To: nitinm76; +Cc: alsa-devel

Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan napsal(a):
> HI!
>
> --- On Fri, 1/8/08, Marek Vasut <marek.vasut@gmail.com> wrote:
> > From: Marek Vasut <marek.vasut@gmail.com>
> > Subject: Re: [alsa-devel] WM9712 Not Giving output
> > To: alsa-devel@alsa-project.org, nitinm76@yahoo.com
> > Date: Friday, 1 August, 2008, 11:10 PM
> > Dne Friday 01 of August 2008 19:27:24 Nitin Mahajan
> >
> > napsal(a):
> > > HI!
> > >
> > > --- On Fri, 1/8/08, Mark Brown
> >
> > <broonie@opensource.wolfsonmicro.com> wrote:
> > > > From: Mark Brown
> >
> > <broonie@opensource.wolfsonmicro.com>
> >
> > > > Subject: Re: [alsa-devel] WM9712 Not Giving
> >
> > output
> >
> > > > To: "Nitin Mahajan"
> >
> > <nitinm76@yahoo.com>
> >
> > > > Cc: alsa-devel@alsa-project.org,
> >
> > "Manuel" <mano@roarinelk.homelinux.net>
> >
> > > > Date: Friday, 1 August, 2008, 9:32 PM
> > > > On Fri, Aug 01, 2008 at 08:31:03AM -0700, Nitin
> >
> > Mahajan
> >
> > > > wrote:
> > > > > I am using a WM9712 codec chip with the AC97
> > > >
> > > > controller on AMD AU1250.
> > > >
> > > > > Linux kernel version 2.6.24.2.
> > > > >
> > > > > On AC97 controller's side, I can see the
> >
> > DMA
> >
> > > > happening on the host
> > > >
> > > > > processor, interrupts also coming.
> > > >
> > > > This suggests a mixer configuration problem.
> > > >
> > > > > On the mixer front, I did unmute and set the
> >
> > vol to
> >
> > > > max for PCM and
> > > >
> > > > > Headphone. I did not find any Master control
> >
> > with this
> >
> > > > chip. Isn't
> > > >
> > > > > there any master control with this chip?
> > > >
> > > > No.
> > >
> > > If Master is not there, logically are the enough for
> >
> > playback?
> >
> > > amixer set 'PCM' 255 unmute
> > > amixer set 'Headphone' 255 unmute
> > >
> > > > > Can some one please throw more light on the
> >
> > Mixer
> >
> > > > part, specific to
> > > >
> > > > > this chip.
> > > > >
> > > > > What Mixer controls do I need to set with
> >
> > what values
> >
> > > > for playback and
> > > >
> > > > > capture respectively with this chip?
> > > >
> > > > Check the configuration of the Left HP Mixer and
> >
> > Right HP
> >
> > > > Mixer PCM
> > > > Playback switches.  These should be enabled in
> >
> > order to
> >
> > > > play back via
> > > > the headphone output.
> > >
> > > While writing the reply , the hardware is not with me.
> > > But I wil check these tommorow.
> > >
> > > > If you still can't get audio output with that
> >
> > please
> >
> > > > send a copy of your
> > > > mixer configuration - run the command
> > > >
> > > > 	alsactl store -f mixer-config
> > > >
> > > > to write a file 'mixer-config' with this
> > > > information in it.  Please
> > > > also check your kernel log from when the driver
> >
> > is loaded
> >
> > > > and when you
> > > > configure the mixer.
> > > >
> > > > There is documentation of the audio paths
> >
> > supported by the
> >
> > > > chip in the
> > >
> > > I saw the figure in  the datasheet, its quite
> >
> > explainatory, as to which
> >
> > > registers are involved in which path.
> > >
> > > > datasheet, available from:
> > > >
> > > > 	http://www.wolfsonmicro.com/products/WM9712/
> > > >
> > > >
> > > > and you may find the audio route mappings in the
> >
> > WM9712
> >
> > > > driver useful to
> > > > refer to - the 'audio_map' table in the
> >
> > driver
> >
> > > > which shows how the parts
> > > > of the device are connected.  The format is {
> >
> > destination,
> >
> > > > control,
> > > > source }.
> > >
> > > Thanks and regards
> > >
> > > -Nitin
> > >
> > > Send instant messages to your online friends
> >
> > http://uk.messenger.yahoo.com
> >
> > > _______________________________________________
> > > Alsa-devel mailing list
> > > Alsa-devel@alsa-project.org
> >
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
> > Hi,
> > try searching the mailing list for "[PATCH] wm9712
> > mono mixer". That may help
> > you.
>
> Interesting, do you mean that "Right HP Mixer" and "Left HP Mixer" should
> be "Right Mixer" and "Left Mixer" ?
>
> thanks and regards
>
> -Nitin

yea, and you should see alsa warning about it in kernel log as well.
>
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel@alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com

This message wasnt CCed to alsa-devel, re-adding.

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

* Re: WM9712 Not Giving output
  2008-08-01 18:23 ` Marek Vasut
@ 2008-08-01 18:26   ` Nitin Mahajan
  2008-08-01 18:37     ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-01 18:26 UTC (permalink / raw)
  To: Marek Vasut; +Cc: alsa-devel




--- On Fri, 1/8/08, Marek Vasut <marek.vasut@gmail.com> wrote:

> From: Marek Vasut <marek.vasut@gmail.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: nitinm76@yahoo.com
> Cc: alsa-devel@alsa-project.org
> Date: Friday, 1 August, 2008, 11:53 PM
> Dne Friday 01 of August 2008 19:59:44 Nitin Mahajan
> napsal(a):
> > HI!
> >
> > --- On Fri, 1/8/08, Marek Vasut
> <marek.vasut@gmail.com> wrote:
> > > From: Marek Vasut <marek.vasut@gmail.com>
> > > Subject: Re: [alsa-devel] WM9712 Not Giving
> output
> > > To: alsa-devel@alsa-project.org,
> nitinm76@yahoo.com
> > > Date: Friday, 1 August, 2008, 11:10 PM
> > > Dne Friday 01 of August 2008 19:27:24 Nitin
> Mahajan
> > >
> > > napsal(a):
> > > > HI!
> > > >
> > > > --- On Fri, 1/8/08, Mark Brown
> > >
> > > <broonie@opensource.wolfsonmicro.com>
> wrote:
> > > > > From: Mark Brown
> > >
> > > <broonie@opensource.wolfsonmicro.com>
> > >
> > > > > Subject: Re: [alsa-devel] WM9712 Not
> Giving
> > >
> > > output
> > >
> > > > > To: "Nitin Mahajan"
> > >
> > > <nitinm76@yahoo.com>
> > >
> > > > > Cc: alsa-devel@alsa-project.org,
> > >
> > > "Manuel"
> <mano@roarinelk.homelinux.net>
> > >
> > > > > Date: Friday, 1 August, 2008, 9:32 PM
> > > > > On Fri, Aug 01, 2008 at 08:31:03AM
> -0700, Nitin
> > >
> > > Mahajan
> > >
> > > > > wrote:
> > > > > > I am using a WM9712 codec chip
> with the AC97
> > > > >
> > > > > controller on AMD AU1250.
> > > > >
> > > > > > Linux kernel version 2.6.24.2.
> > > > > >
> > > > > > On AC97 controller's side, I
> can see the
> > >
> > > DMA
> > >
> > > > > happening on the host
> > > > >
> > > > > > processor, interrupts also coming.
> > > > >
> > > > > This suggests a mixer configuration
> problem.
> > > > >
> > > > > > On the mixer front, I did unmute
> and set the
> > >
> > > vol to
> > >
> > > > > max for PCM and
> > > > >
> > > > > > Headphone. I did not find any
> Master control
> > >
> > > with this
> > >
> > > > > chip. Isn't
> > > > >
> > > > > > there any master control with this
> chip?
> > > > >
> > > > > No.
> > > >
> > > > If Master is not there, logically are the
> enough for
> > >
> > > playback?
> > >
> > > > amixer set 'PCM' 255 unmute
> > > > amixer set 'Headphone' 255 unmute
> > > >
> > > > > > Can some one please throw more
> light on the
> > >
> > > Mixer
> > >
> > > > > part, specific to
> > > > >
> > > > > > this chip.
> > > > > >
> > > > > > What Mixer controls do I need to
> set with
> > >
> > > what values
> > >
> > > > > for playback and
> > > > >
> > > > > > capture respectively with this
> chip?
> > > > >
> > > > > Check the configuration of the Left HP
> Mixer and
> > >
> > > Right HP
> > >
> > > > > Mixer PCM
> > > > > Playback switches.  These should be
> enabled in
> > >
> > > order to
> > >
> > > > > play back via
> > > > > the headphone output.
> > > >
> > > > While writing the reply , the hardware is
> not with me.
> > > > But I wil check these tommorow.
> > > >
> > > > > If you still can't get audio output
> with that
> > >
> > > please
> > >
> > > > > send a copy of your
> > > > > mixer configuration - run the command
> > > > >
> > > > > 	alsactl store -f mixer-config
> > > > >
> > > > > to write a file 'mixer-config'
> with this
> > > > > information in it.  Please
> > > > > also check your kernel log from when
> the driver
> > >
> > > is loaded
> > >
> > > > > and when you
> > > > > configure the mixer.
> > > > >
> > > > > There is documentation of the audio
> paths
> > >
> > > supported by the
> > >
> > > > > chip in the
> > > >
> > > > I saw the figure in  the datasheet, its
> quite
> > >
> > > explainatory, as to which
> > >
> > > > registers are involved in which path.
> > > >
> > > > > datasheet, available from:
> > > > >
> > > > >
> 	http://www.wolfsonmicro.com/products/WM9712/
> > > > >
> > > > >
> > > > > and you may find the audio route
> mappings in the
> > >
> > > WM9712
> > >
> > > > > driver useful to
> > > > > refer to - the 'audio_map'
> table in the
> > >
> > > driver
> > >
> > > > > which shows how the parts
> > > > > of the device are connected.  The
> format is {
> > >
> > > destination,
> > >
> > > > > control,
> > > > > source }.
> > > >
> > > > Thanks and regards
> > > >
> > > > -Nitin
> > > >
> > > > Send instant messages to your online friends
> > >
> > > http://uk.messenger.yahoo.com
> > >
> > > >
> _______________________________________________
> > > > Alsa-devel mailing list
> > > > Alsa-devel@alsa-project.org
> > >
> > >
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > >
> > > Hi,
> > > try searching the mailing list for "[PATCH]
> wm9712
> > > mono mixer". That may help
> > > you.
> >
> > Interesting, do you mean that "Right HP
> Mixer" and "Left HP Mixer" should
> > be "Right Mixer" and "Left Mixer"
> ?
> >
> > thanks and regards
> >
> > -Nitin
> 
> yea, and you should see alsa warning about it in kernel log
> as well.

Do you mean in dmesg?
Unfortunately I don't have hardware with me now to test. I shall do it tommorow morning.
> >
> > > _______________________________________________
> > > Alsa-devel mailing list
> > > Alsa-devel@alsa-project.org
> > >
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> 
> This message wasnt CCed to alsa-devel, re-adding.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

* Re: WM9712 Not Giving output
  2008-08-01 18:26   ` Nitin Mahajan
@ 2008-08-01 18:37     ` Mark Brown
  2008-08-02  9:46       ` Nitin Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2008-08-01 18:37 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: Marek Vasut, alsa-devel

On Fri, Aug 01, 2008 at 11:26:36AM -0700, Nitin Mahajan wrote:

> > yea, and you should see alsa warning about it in kernel log
> > as well.

> Do you mean in dmesg?
> Unfortunately I don't have hardware with me now to test. I shall do it tommorow morning.

Yes, but you won't see that log message with the older kernel you are
using unless you have also backported ASoC from the current kernel (but
if you've done that I'd have expected you'd have backported a current
version with the patch in question already applied).

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

* Re: WM9712 Not Giving output
  2008-08-01 18:37     ` Mark Brown
@ 2008-08-02  9:46       ` Nitin Mahajan
  2008-08-04 12:12         ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-02  9:46 UTC (permalink / raw)
  To: alsa-devel

-- On Sat, 2/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: "Nitin Mahajan" <nitinm76@yahoo.com>
> Cc: "Marek Vasut" <marek.vasut@gmail.com>, alsa-devel@alsa-project.org
> Date: Saturday, 2 August, 2008, 12:07 AM
> On Fri, Aug 01, 2008 at 11:26:36AM -0700, Nitin Mahajan
> wrote:
> 
> > > yea, and you should see alsa warning about it in
> kernel log
> > > as well.
> 
> > Do you mean in dmesg?
> > Unfortunately I don't have hardware with me now to
> test. I shall do it tommorow morning.
> 
> Yes, but you won't see that log message with the older
> kernel you are
> using unless you have also backported ASoC from the current
> kernel (but
> if you've done that I'd have expected you'd
> have backported a current
> version with the patch in question already applied).

I checked the mixer configuration.The registers 0x18h and 0x04h were mute at the time of initiating DMA for playback.

I did set both registers with 0x7fff. From mixer point of view, If I am using an headphone, are these registers enough? I am still not able to hear anything.

> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

* Re: WM9712 Not Giving output
  2008-08-02  9:46       ` Nitin Mahajan
@ 2008-08-04 12:12         ` Mark Brown
  2008-08-06  3:06           ` Nitin Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2008-08-04 12:12 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: alsa-devel

On Sat, Aug 02, 2008 at 02:46:17AM -0700, Nitin Mahajan wrote:

> I checked the mixer configuration.The registers 0x18h and 0x04h were mute at the time of initiating DMA for playback.

> I did set both registers with 0x7fff. From mixer point of view, If I am using an headphone, are these registers enough? I am still not able to hear anything.

Please provide alsactl output as requested - any configuration should be
done via the ALSA mixer rather than register writes.  In the case of
register 0x18 setting 0x7fff will set a gain of -34.5dB on each channel
which may be too low, depending on your input.

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

* Re: WM9712 Not Giving output
  2008-08-04 12:12         ` Mark Brown
@ 2008-08-06  3:06           ` Nitin Mahajan
  2008-08-06  9:26             ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-06  3:06 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

HI!


--- On Mon, 4/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: "Nitin Mahajan" <nitinm76@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Date: Monday, 4 August, 2008, 5:42 PM
> On Sat, Aug 02, 2008 at 02:46:17AM -0700, Nitin Mahajan
> wrote:
> 
> > I checked the mixer configuration.The registers 0x18h
> and 0x04h were mute at the time of initiating DMA for
> playback.
> 
> > I did set both registers with 0x7fff. From mixer point
> of view, If I am using an headphone, are these registers
> enough? I am still not able to hear anything.
> 
> Please provide alsactl output as requested - any
> configuration should be
> done via the ALSA mixer rather than register writes.  In
> the case of
> register 0x18 setting 0x7fff will set a gain of -34.5dB on
> each channel
> which may be too low, depending on your input.

Here is the mixer-config file got through 'alsactl'. Could you please guide me which controls to set with what values using amixer, for playback through Headphone and Recording?

regards

-Nitin

> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Send instant messages to your online friends http://uk.messenger.yahoo.com 

[-- Attachment #2: mixer-config.txt --]
[-- Type: text/plain, Size: 12674 bytes --]

state.AC97 {
	control.1 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 31
		value.1 31
	}
	control.2 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Playback Switch'
		value false
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 31
		value.1 31
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Headphone Playback Switch'
		value false
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 23
		value.1 23
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Playback ZC Switch'
		value false
	}
	control.7 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Playback Invert Switch'
		value false
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Headphone Playback ZC Switch'
		value false
	}
	control.9 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mono Playback ZC Switch'
		value false
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Mono Playback Volume'
		value 0
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'ALC Target Volume'
		value 11
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'ALC Hold Time'
		value 0
	}
	control.13 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'ALC Decay Time'
		value 3
	}
	control.14 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'ALC Attack Time'
		value 2
	}
	control.15 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 None
		comment.item.1 Left
		comment.item.2 Right
		comment.item.3 Stereo
		iface MIXER
		name 'ALC Function'
		value None
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'ALC Max Volume'
		value 7
	}
	control.17 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 3'
		iface MIXER
		name 'ALC ZC Timeout'
		value 0
	}
	control.18 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'ALC ZC Switch'
		value false
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'ALC NG Switch'
		value false
	}
	control.20 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Constant Gain'
		comment.item.1 Mute
		iface MIXER
		name 'ALC NG Type'
		value 'Constant Gain'
	}
	control.21 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'ALC NG Threshold'
		value 31
	}
	control.22 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'Mic Headphone  Volume'
		value 4
	}
	control.23 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'ALC Headphone Volume'
		value 5
	}
	control.24 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Out3 Switch'
		value false
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Out3 ZC Switch'
		value true
	}
	control.26 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Out3 Volume'
		value 31
	}
	control.27 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'PCBeep Bypass Headphone Volume'
		value 5
	}
	control.28 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'PCBeep Bypass Speaker Volume'
		value 5
	}
	control.29 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'PCBeep Bypass Phone Volume'
		value 5
	}
	control.30 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'Aux Playback Headphone Volume'
		value 5
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'Aux Playback Speaker Volume'
		value 5
	}
	control.32 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 7'
		iface MIXER
		name 'Aux Playback Phone Volume'
		value 5
	}
	control.33 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'Phone Volume'
		value 8
	}
	control.34 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Line Capture Volume'
		value.0 23
		value.1 23
	}
	control.35 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Capture 20dB Boost Switch'
		value false
	}
	control.36 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Capture to Phone 20dB Boost Switch'
		value true
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name '3D Upper Cut-off Switch'
		value true
	}
	control.38 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name '3D Lower Cut-off Switch'
		value true
	}
	control.39 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name '3D Playback Volume'
		value 0
	}
	control.40 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Linear Control'
		comment.item.1 'Adaptive Boost'
		iface MIXER
		name 'Bass Control'
		value 'Linear Control'
	}
	control.41 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Bass Cut-off Switch'
		value true
	}
	control.42 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Tone Cut-off Switch'
		value true
	}
	control.43 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Playback Attenuate (-6dB) Switch'
		value false
	}
	control.44 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'Bass Volume'
		value 15
	}
	control.45 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'Treble Volume'
		value 15
	}
	control.46 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Capture ADC Switch'
		value false
	}
	control.47 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 2
		comment.item.0 '+1.5dB Steps'
		comment.item.1 '+0.75dB Steps'
		iface MIXER
		name 'Capture Volume Steps'
		value.0 '+1.5dB Steps'
		value.1 '+1.5dB Steps'
	}
	control.48 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 63'
		iface MIXER
		name 'Capture Volume'
		value.0 63
		value.1 63
	}
	control.49 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Capture ZC Switch'
		value false
	}
	control.50 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Mic 1 Volume'
		value 23
	}
	control.51 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Mic 2 Volume'
		value 23
	}
	control.52 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mic 20dB Boost Switch'
		value false
	}
	control.53 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Mixer PCBeep Bypass Swi'
		value false
	}
	control.54 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Mixer Aux Playback Swit'
		value false
	}
	control.55 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Mixer Phone Bypass Swit'
		value false
	}
	control.56 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Mixer Line Bypass Switc'
		value false
	}
	control.57 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Speaker Mixer PCM Playback Swit'
		value false
	}
	control.58 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer PCBeep Bypass Switc'
		value false
	}
	control.59 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer Aux Playback Switch'
		value false
	}
	control.60 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer Line Bypass Switch'
		value false
	}
	control.61 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer PCM Playback Switch'
		value false
	}
	control.62 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer Mic 1 Sidetone Swit'
		value false
	}
	control.63 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Mixer Mic 2 Sidetone Swit'
		value false
	}
	control.64 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Right Mixer PCM Playback Switch'
		value false
	}
	control.65 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Left Mixer PCM Playback Switch'
		value false
	}
	control.66 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 Line
		iface MIXER
		name 'Differential Source'
		value Mic
	}
	control.67 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Mic 1'
		comment.item.1 Differential
		comment.item.2 'Mic 2'
		comment.item.3 Stereo
		iface MIXER
		name 'Mic Select Source'
		value 'Mic 1'
	}
	control.68 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 NC
		comment.item.2 NC
		comment.item.3 'Speaker Mixer'
		comment.item.4 Line
		comment.item.5 'Headphone Mixer'
		comment.item.6 'Phone Mixer'
		comment.item.7 Phone
		iface MIXER
		name 'Right Capture Select'
		value Mic
	}
	control.69 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic
		comment.item.1 NC
		comment.item.2 NC
		comment.item.3 'Speaker Mixer'
		comment.item.4 Line
		comment.item.5 'Headphone Mixer'
		comment.item.6 'Phone Mixer'
		comment.item.7 Phone
		iface MIXER
		name 'Left Capture Select'
		value Mic
	}
	control.70 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Stereo
		comment.item.1 Left
		comment.item.2 Right
		comment.item.3 Mute
		iface MIXER
		name 'Capture Phone Mux'
		value Mute
	}
	control.71 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Speaker Mix'
		comment.item.1 'Headphone Mix'
		iface MIXER
		name 'Speaker Mux'
		value 'Speaker Mix'
	}
	control.72 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Left
		comment.item.1 VREF
		comment.item.2 'Left + Right'
		comment.item.3 Mono
		iface MIXER
		name 'Out3 Mux'
		value Left
	}
	control.73 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Stereo
		comment.item.1 Left
		comment.item.2 Right
		comment.item.3 None
		iface MIXER
		name 'ALC Sidetone Mux'
		value None
	}
}

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: WM9712 Not Giving output
  2008-08-06  3:06           ` Nitin Mahajan
@ 2008-08-06  9:26             ` Mark Brown
  2008-08-06 10:04               ` Nitin Mahajan
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2008-08-06  9:26 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: alsa-devel

On Tue, Aug 05, 2008 at 08:06:06PM -0700, Nitin Mahajan wrote:

> Here is the mixer-config file got through 'alsactl'. Could you please guide me which controls to set with what values using amixer, for playback through Headphone and Recording?

For playback try these:

> 	control.4 {
> 		comment.access 'read write'
> 		comment.type BOOLEAN
> 		comment.count 1
> 		iface MIXER
> 		name 'Headphone Playback Switch'
> 		value false
> 	}

This should be enabled.

> 	control.8 {
> 		comment.access 'read write'
> 		comment.type BOOLEAN
> 		comment.count 1
> 		iface MIXER
> 		name 'Headphone Playback ZC Switch'
> 		value false
> 	}

It's better to enable this but not essential - it avoids audio artifacts
while doing volume updates during playback.

> 	control.64 {
> 		comment.access 'read write'
> 		comment.type BOOLEAN
> 		comment.count 1
> 		iface MIXER
> 		name 'Right Mixer PCM Playback Switch'
> 		value false
> 	}
> 	control.65 {
> 		comment.access 'read write'
> 		comment.type BOOLEAN
> 		comment.count 1
> 		iface MIXER
> 		name 'Left Mixer PCM Playback Switch'
> 		value false
> 	}

These should be enabled.

If this still gives you trouble then please build with DAPM_DEBUG
enabled in soc-dapm.c (or #define DEBUG at very the top of the file
prior to the includes if using a very current version).  This will cause
ASoC to produce debug output when it starts playback which should show
anything that needs to be enabled but isn't.

Please also make sure that you are using a driver with the patch that
Marek identified earlier in the thread.

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

* Re: WM9712 Not Giving output
  2008-08-06  9:26             ` Mark Brown
@ 2008-08-06 10:04               ` Nitin Mahajan
  2008-08-07 11:14                 ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Nitin Mahajan @ 2008-08-06 10:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

HI!

--- On Wed, 6/8/08, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> From: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Subject: Re: [alsa-devel] WM9712 Not Giving output
> To: "Nitin Mahajan" <nitinm76@yahoo.com>
> Cc: alsa-devel@alsa-project.org
> Date: Wednesday, 6 August, 2008, 2:56 PM
> On Tue, Aug 05, 2008 at 08:06:06PM -0700, Nitin Mahajan
> wrote:
> 
> > Here is the mixer-config file got through
> 'alsactl'. Could you please guide me which controls
> to set with what values using amixer, for playback through
> Headphone and Recording?
> 
> For playback try these:
> 
> > 	control.4 {
> > 		comment.access 'read write'
> > 		comment.type BOOLEAN
> > 		comment.count 1
> > 		iface MIXER
> > 		name 'Headphone Playback Switch'
> > 		value false
> > 	}
> 
> This should be enabled.
> 
> > 	control.8 {
> > 		comment.access 'read write'
> > 		comment.type BOOLEAN
> > 		comment.count 1
> > 		iface MIXER
> > 		name 'Headphone Playback ZC Switch'
> > 		value false
> > 	}
> 
> It's better to enable this but not essential - it
> avoids audio artifacts
> while doing volume updates during playback.
> 
> > 	control.64 {
> > 		comment.access 'read write'
> > 		comment.type BOOLEAN
> > 		comment.count 1
> > 		iface MIXER
> > 		name 'Right Mixer PCM Playback Switch'
> > 		value false
> > 	}
> > 	control.65 {
> > 		comment.access 'read write'
> > 		comment.type BOOLEAN
> > 		comment.count 1
> > 		iface MIXER
> > 		name 'Left Mixer PCM Playback Switch'
> > 		value false
> > 	}
> 
> These should be enabled.
> 
> If this still gives you trouble then please build with
> DAPM_DEBUG
> enabled in soc-dapm.c (or #define DEBUG at very the top of
> the file
> prior to the includes if using a very current version). 
> This will cause
> ASoC to produce debug output when it starts playback which
> should show
> anything that needs to be enabled but isn't.
> 
> Please also make sure that you are using a driver with the
> patch that
> Marek identified earlier in the thread.

Thanks I will try setting these for playback. Just for the Hardware verification I tried setting registers myself for the Mixer. I understand that finally thats not the right way. AS u suggested in earlier the gain was problem. I was making it as negative gain, which is as good as mute.
I kept it default and playback worked for me.

I am not able to make the Mic recording work now. Apart from the mixer controls, I identified these registers to be programmed with following values, which again to seperate out the problem area, H/w or S/w.I am using single ended mono microphone on Left i.e Mic 1.

Ox24h 0x0000
0x26h 0x0000
0x0Eh 0x6000
0x5Ch 0x0000
0x0Ah 0x7000
0x1Ch 0x0f00
0x20h 0x0000

Also , If I take the Linux-2.6.26 kernel from mips, can you tell me how to get the patch from wolfson ASOC git so that I have all the latest ASOC and WM related code?
I am not familiar with git :(.

Thanks in advance 

regards

-Nitin

 


      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

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

* Re: WM9712 Not Giving output
  2008-08-06 10:04               ` Nitin Mahajan
@ 2008-08-07 11:14                 ` Mark Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2008-08-07 11:14 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: alsa-devel

On Wed, Aug 06, 2008 at 03:04:07AM -0700, Nitin Mahajan wrote:

> I am not able to make the Mic recording work now. Apart from the mixer controls, I identified these registers to be programmed with following values, which again to seperate out the problem area, H/w or S/w.I am using single ended mono microphone on Left i.e Mic 1.

Please work in terms of the ALSA controls - it is much easier to provide
support when working through the exposed interfaces and direct register
writes may be overwritten by the driver, causing additional confusion.

> Also , If I take the Linux-2.6.26 kernel from mips, can you tell me how to get the patch from wolfson ASOC git so that I have all the latest ASOC and WM related code?
> I am not familiar with git :(.

To get the latest development code:

	git clone git://opensource.wolfsonmicro.com/linux-2.6-asoc
	cd linux-2.6-asoc

You can generate a diff from a tag to the latest development branch like
this:

	git diff v2.6.26..origin/dev

(Linux releases are tagged in that format - 'git tag' will list the
known tags) specifying directories lets you filter what's included so:

	git diff v2.6.26..origin/dev sound include/sound

will only give you ALSA related changes.

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

end of thread, other threads:[~2008-08-07 13:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 15:31 WM9712 Not Giving output Nitin Mahajan
2008-08-01 16:02 ` Mark Brown
2008-08-01 17:27   ` Nitin Mahajan
2008-08-01 17:40     ` Marek Vasut
2008-08-01 18:01     ` Mark Brown
2008-08-01 18:10       ` Nitin Mahajan
     [not found] <673245.97031.qm@web50106.mail.re2.yahoo.com>
2008-08-01 18:23 ` Marek Vasut
2008-08-01 18:26   ` Nitin Mahajan
2008-08-01 18:37     ` Mark Brown
2008-08-02  9:46       ` Nitin Mahajan
2008-08-04 12:12         ` Mark Brown
2008-08-06  3:06           ` Nitin Mahajan
2008-08-06  9:26             ` Mark Brown
2008-08-06 10:04               ` Nitin Mahajan
2008-08-07 11:14                 ` Mark Brown

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.