All of lore.kernel.org
 help / color / mirror / Atom feed
* ASoC vs non-ASoC: 2 pcm driver questions.
@ 2008-09-08  6:53 Dmitry Baryshkov
  2008-09-08  8:37 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Baryshkov @ 2008-09-08  6:53 UTC (permalink / raw)
  To: alsa-devel

Hi,

While unifying pxa2xx-pcm drivers (ASoC and plain one) I've encountered the
following differences in snd_pcm_open:

1. ASoC one uses snd_soc_set_runtime_hardware() function instead of
 just copying runtime->hw = pxa2xx_pcm_hardware;
However the major difference is that snd_soc_set_runtime_hardware() doesn't
initialise few fields which are set later in generic soc_pcm_open().
Can I drop this call and use the same assignment as in non-asoc driver.

2. To enforce some constraints ASoC driver uses generic
 snd_pcm_hw_constraint_step() instead of hand-written rule functions.
 Can this be also unified or there are some hidden differencies?

-- 
With best wishes
Dmitry

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

* Re: ASoC vs non-ASoC: 2 pcm driver questions.
  2008-09-08  6:53 ASoC vs non-ASoC: 2 pcm driver questions Dmitry Baryshkov
@ 2008-09-08  8:37 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2008-09-08  8:37 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: alsa-devel

On Mon, 2008-09-08 at 06:53 +0000, Dmitry Baryshkov wrote:
> Hi,
> 
> While unifying pxa2xx-pcm drivers (ASoC and plain one) I've encountered the
> following differences in snd_pcm_open:
> 
> 1. ASoC one uses snd_soc_set_runtime_hardware() function instead of
>  just copying runtime->hw = pxa2xx_pcm_hardware;
> However the major difference is that snd_soc_set_runtime_hardware() doesn't
> initialise few fields which are set later in generic soc_pcm_open().
> Can I drop this call and use the same assignment as in non-asoc driver.
> 

Do you mean snd_soc_set_runtime_hw_params() ?

Give it a try.

> 2. To enforce some constraints ASoC driver uses generic
>  snd_pcm_hw_constraint_step() instead of hand-written rule functions.
>  Can this be also unified or there are some hidden differencies?
> 

This could also be unified, can't think of any reason why they should
not.

Liam

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

end of thread, other threads:[~2008-09-08  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08  6:53 ASoC vs non-ASoC: 2 pcm driver questions Dmitry Baryshkov
2008-09-08  8:37 ` Liam Girdwood

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.