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] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 29 Mar 2015 21:19:35 -0700
From:	Mark Brown <broonie@...nel.org>
To:	"Maciej S. Szmigiero" <mail@...iej.szmigiero.name>
Cc:	alsa-devel@...a-project.org, Liam Girdwood <lgirdwood@...il.com>,
	Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.de>,
	Lars-Peter Clausen <lars@...afoo.de>,
	Brian Austin <brian.austin@...rus.com>,
	Bard Liao <bardliao@...ltek.com>,
	Oder Chiou <oder_chiou@...ltek.com>,
	Wolfram Sang <wsa@...-dreams.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][ASoC]Add ability to remove rate constraints from generic
 ASoC AC'97 CODEC driver

On Sun, Mar 29, 2015 at 06:00:33PM +0200, Maciej S. Szmigiero wrote:
> W dniu 22.03.2015 19:27, Mark Brown pisze:

> > Please use subject lines matching the style for the subsystem.  This is
> > helpful for identifying relevant patches and not getting your messages
> > deleted unread...

> I assume "[PATCH] ASoC: driver: subject" format would be right?

Yes.

> > I'm sorry but this just doesn't explain what this patch is intended to
> > accomplish.  If we can talk to the AC'97 CODEC at all we can already
> > identify whatever constraints it has by looking at the ID registers so
> > it's not clear when or why a platform would need to use this.  It feels
> > like there is some underlying problem that you're trying to address.

> This patch itself is supposed to allow using this CODEC driver with
> CODECs that support other rates that these that were already hard-coded
> in the driver (8000, 11025, 22050, 44100, 48000).

You're talking about Linux internal implementation details here but the
change you are proposing a change to the device tree?  Like I think I
said in reply to a previous iteration of this patch we can clearly
enumerate the required information from the hardware already.

> While it would be possible to simply add ac97 bus enumeration to
> either fsl_ssi driver or fsl-asoc-card sound card driver it looks to me
> that even in this case a platform device for codec would need to be
> registered anyway.

That's the way the ASoC AC'97 support currently works, yes.

> If the ac97 bus enumeration is added to fsl_ssi driver then there is
> also a problem of communicating a name of ac97 platform device
> to sound card driver so it can then reference it in DAI links
> that it builds.

...

> And, naturally, this would result in a small code duplication with
> regard to this generic driver.

This sounds like something that can easily be put in some generic code
and either used as a helper library by the drivers or just done directly
from the framework when it knows it's dealing with an AC'97 bus.

Alternatively if you're just trying to open up the constraints why not
just open them up by default and make sure that the AC'97 generic code
is constraining things appropriately if it's not doing so already?

Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ