* Run-time CODEC reset
@ 2011-11-13 6:15 Patrick Lai
2011-11-13 6:29 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Lai @ 2011-11-13 6:15 UTC (permalink / raw)
To: alsa-devel; +Cc: Mark Brown, Liam Girdwood
Hi,
I have a use case which requires CODEC to be reset at run-time. As
application exercises playback/capture through PCM device and mixer, my
understanding is that there is no interface for application to reset
CODEC through ALSA ASoC framework. CODEC driver would have to build
non-standard interface for this purpose. Is there precedence in any of
asoc CODEC driver which provides reset interface?
Thanks
Patrick
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Run-time CODEC reset
2011-11-13 6:15 Run-time CODEC reset Patrick Lai
@ 2011-11-13 6:29 ` Marek Vasut
2011-11-14 4:52 ` Patrick Lai
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2011-11-13 6:29 UTC (permalink / raw)
To: alsa-devel; +Cc: Patrick Lai, Mark Brown, Liam Girdwood
> Hi,
>
> I have a use case which requires CODEC to be reset at run-time. As
> application exercises playback/capture through PCM device and mixer, my
> understanding is that there is no interface for application to reset
> CODEC through ALSA ASoC framework. CODEC driver would have to build
> non-standard interface for this purpose. Is there precedence in any of
> asoc CODEC driver which provides reset interface?
Why not describe the hardware / submit a patch to support the hardware first ?
Then you can ask the developers for help. You can be helped more if you share
your problematic code.
M
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Run-time CODEC reset
2011-11-13 6:29 ` Marek Vasut
@ 2011-11-14 4:52 ` Patrick Lai
2011-11-14 21:29 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Lai @ 2011-11-14 4:52 UTC (permalink / raw)
To: Marek Vasut; +Cc: alsa-devel, Mark Brown, Liam Girdwood
On 11/12/2011 10:29 PM, Marek Vasut wrote:
>> Hi,
>>
>> I have a use case which requires CODEC to be reset at run-time. As
>> application exercises playback/capture through PCM device and mixer, my
>> understanding is that there is no interface for application to reset
>> CODEC through ALSA ASoC framework. CODEC driver would have to build
>> non-standard interface for this purpose. Is there precedence in any of
>> asoc CODEC driver which provides reset interface?
>
> Why not describe the hardware / submit a patch to support the hardware first ?
> Then you can ask the developers for help. You can be helped more if you share
> your problematic code.
Actually, there is no bug. The use case is more to do with self test
mode. After running some audio tests to verify different audio paths
(i.e handset mode), self test application would like to trigger codec
reset interface to restore CODEC default state. I was told that there
are already ASOC CODEC drivers offering such interface. I want to see
how this use case is handled by other CODEC drivers especially if
command comes during playback/capture.
Thanks
Patrick
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Run-time CODEC reset
2011-11-14 4:52 ` Patrick Lai
@ 2011-11-14 21:29 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2011-11-14 21:29 UTC (permalink / raw)
To: Patrick Lai; +Cc: Marek Vasut, alsa-devel, Liam Girdwood
On Sun, Nov 13, 2011 at 08:52:37PM -0800, Patrick Lai wrote:
> On 11/12/2011 10:29 PM, Marek Vasut wrote:
> >Then you can ask the developers for help. You can be helped more if you share
> >your problematic code.
> Actually, there is no bug. The use case is more to do with self test
> mode. After running some audio tests to verify different audio paths
> (i.e handset mode), self test application would like to trigger
> codec reset interface to restore CODEC default state. I was told
> that there are already ASOC CODEC drivers offering such interface. I
> want to see how this use case is handled by other CODEC drivers
> especially if command comes during playback/capture.
There's no such interface. This doesn't sound like something drivers
should support, it just sounds like your test application wants to save
the state before it starts and restore it afterwards, or the user should
use some external utility like alsactl to do so. Why would an
application care if the codec hardware had been physically reset, that's
the sort of detail that the driver should be hiding?
Patrick, we routinely need to ask you for this sort of background
information in order to understand what it is you're actually trying to
do. Normally you've already jumped very far into the implementation and
you don't mention the reasoning that you're relying on.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-14 21:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13 6:15 Run-time CODEC reset Patrick Lai
2011-11-13 6:29 ` Marek Vasut
2011-11-14 4:52 ` Patrick Lai
2011-11-14 21:29 ` Mark Brown
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.