[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f443a53e-e214-481f-fe9c-6fe480d91292@sholland.org>
Date: Fri, 14 Feb 2020 21:19:50 -0600
From: Samuel Holland <samuel@...lland.org>
To: Takashi Iwai <tiwai@...e.de>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Jonathan Corbet <corbet@....net>,
Jerome Brunet <jbrunet@...libre.com>,
alsa-devel@...a-project.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: Re: [PATCH 2/4] ALSA: pcm: Make snd_pcm_limit_hw_rates take hw
directly
On 2/13/20 12:30 AM, Takashi Iwai wrote:
> On Thu, 13 Feb 2020 07:11:45 +0100,
> Samuel Holland wrote:
>>
>> It can be useful to derive min/max rates of a snd_pcm_hardware without
>> having a snd_pcm_runtime, such as before constructing an ASoC DAI link.
>>
>> Since snd_pcm_limit_hw_rates only uses runtime->hw, it does not actually
>> need the snd_pcm_runtime. Modify it to take a pointer to hw directly.
>
> I prefer adding a new function and change snd_pcm_limit_hw_rates() to
> static inline just calling the new one with &runtime->hw, instead of
> touching so many callers site.
I agree. I will definitely do that for v2.
Thanks,
Samuel
> thanks,
>
> Takashi
>
>>
>> Signed-off-by: Samuel Holland <samuel@...lland.org>
Powered by blists - more mailing lists