[lkml]   [2016]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH 0/7] AC97 device/driver model revamp
Takashi Iwai <> writes:

> On Sat, 30 Apr 2016 23:15:32 +0200,
> Robert Jarzmik wrote:
>> Well, this is a long term effort, which might need a complete rewrite according
>> to the comments it'll get. Let's expose it for comments and see how I can
>> progress with it.
> I think it's good in general. The implementation looks fairly simple
> and thin enough.

> An open question is whether migrating the former AC97 layer into the
> new bus. I'm not sure about this. Transition to a new layer always
> brings subtle bugs, especially when the target devices are in wide
> range of legacy ones... If any, we should start just wrapping via
> the new bus ops.
I agree, the migration to the new layer will bring bugs. And the test might be
impossible to carry out by lack of testers.

The wrapping of bus operations is the goal of sound/ac97/snd_ac97_compat.c.

> Some other nitpicks:
> - We usually use snd_ prefix for sound stuff. Better to keep this for
> exported symbols at least.
Of course, for RFC v2.

> - I don't see much value in the usefulness of compat_* stuff.
That's mainly the bus operation wrapping and backward compatibility. The idea is
to be able to convert only the probing/removal/suspend/resume of an ac97 codec
or controller without changing its main code in a first patch, and then consider
surgery (if applicable) to convert it wholly.

> For example, it doesn't cover the actual reset procedure or such
> done as in the old ac97 code.
Ah then my code is incomplete and I must work on it.

For the reset procedure I have ported snd_ac97_reset(), as well as the
snd_ac97_us_ops operation wrappers. Would you give me an example of the reset
I'm missing (a file and a function) ?

> So it won't work compatibly. If it's a few lines of changes, the direct call
> would be likely simpler in the end.

> - The order of patches needs reconsideration. The current patchset
> will break the build, as the hook to sound/ac97/* is done in the
> last patch, while you're already building against to the new stuff
> beforehand.
Very true. kbuild robot objected as well :) For RFC v2.



 \ /
  Last update: 2016-05-14 10:21    [W:0.149 / U:1.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site