lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 13 Jul 2009 10:15:38 +0100
From:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
To:	宋宝华 <21cnbao@...il.com>
Cc:	lrg@...mlogic.co.uk, alsa-devel@...a-project.org,
	linux-kernel@...r.kernel.org, Mike Frysinger <vapier.adi@...il.com>
Subject: Re: [PATCH] New ASoC Drivers for ADI AD1938 codec

On Mon, Jul 13, 2009 at 04:12:14PM +0800, 宋宝华 wrote:

> I want to use ADC/DAC widgets.
> static const struct snd_soc_dapm_widget ad1938_dapm_widgets[] = {
>         SND_SOC_DAPM_DAC("DAC", "HiFi Playback", AD1938_DAC_CTRL0, 0, 1),
>         SND_SOC_DAPM_ADC("ADC", "HiFi Capture", AD1938_ADC_CTRL0, 0, 1),
> };
> But for this AD1938 codec, DAC's work depends on ADC is powered on in
> hardware.  I think there is no any mechanism to handle this kind of
> strange depending now.  So is there a generic way to handle this?

Make the ADC power a SND_SOC_DAPM_SUPPLY() supplying both the DAC and
the ADC, with the ADC widget marged as having no power management.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ