Skip to contentSkip to conversation

No ack() calback in component driver

DISCUSSION Sameer Pujar 3 participants 4 messages Sep 21, 2020 – Sep 24, 2020

lore
Share & tools
lore
#0 lore raw

Hi Morimoto-san,

With your commit e2cb4a14541d ("ASoC: soc-core: merge snd_pcm_ops member to component driver") snd_pcm_ops is replaced with callback functions in component driver. In doing so, ack() callback was not retained in component driver.

Was this intentional because there were no users of ack() or if there were other reasons?

Thanks,
Sameer.

#1 lore raw
Quoted 7 lines · Sameer Pujar

With your commit e2cb4a14541d ("ASoC: soc-core: merge snd_pcm_ops member to component driver") snd_pcm_ops is replaced with callback functions in component driver. In doing so, ack() callback was not retained in component driver.

Was this intentional because there were no users of ack() or if there were other reasons?

I can't see any reason not to allow components to have an ack() operation so I'd guess it was just lack of use.

#2 lore raw

Hi Sameer, Mark

Quoted 10 lines
Quoted 7 lines

With your commit e2cb4a14541d ("ASoC: soc-core: merge snd_pcm_ops member to component driver") snd_pcm_ops is replaced with callback functions in component driver. In doing so, ack() callback was not retained in component driver.

Was this intentional because there were no users of ack() or if there were other reasons?

I can't see any reason not to allow components to have an ack() operation so I'd guess it was just lack of use.

I think I replaced existing callback only. Thus, I think I did nothing to it if there was no users.

Thank you for your help !!

Best regards
---
Kuninori Morimoto

#3 lore raw

Hi Morimoto-san,

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines

With your commit e2cb4a14541d ("ASoC: soc-core: merge snd_pcm_ops member to component driver") snd_pcm_ops is replaced with callback functions in component driver. In doing so, ack() callback was not retained in component driver.
Was this intentional because there were no users of ack() or if there were other reasons?

I can't see any reason not to allow components to have an ack() operation so I'd guess it was just lack of use.

I think I replaced existing callback only. Thus, I think I did nothing to it if there was no users.

I was infact referring to [0] in which you added callbacks directly in component driver. Later in the same series [1] 'snd_pcm_ops' was removed from 'snd_soc_component_driver'. It looks like at that point of time 'snd_pcm_ops' had ack() callback. The reason for asking this is, for a driver (not yet in upstream) some implementation depended on this callback() and while moving to component it was noticed that ack() is not present in component. I guess without an user it is not recommended to add this callback. In that case I will push it along with the driver once it is ready.

[0] Link: https://lore.kernel.org/r/[email protected]
[1] https://lore.kernel.org/alsa-devel/[email protected]

Thanks,
Sameer.