All of lore.kernel.org
 help / color / mirror / Atom feed
* [QUERY] Download calibration data to co-processor
@ 2011-01-25  6:13 Patrick Lai
  2011-01-25 13:36 ` Mark Brown
  2011-01-25 13:36 ` Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Patrick Lai @ 2011-01-25  6:13 UTC (permalink / raw)
  To: alsa-devel; +Cc: linux-arm-msm, lrg, broonie

Hi,

I am looking for ways to download audio calibration data to a 
co-processor under ALSA framework. I would like to know if there is 
already a precedent which handles this use case. I considered 
request_firmware() approach but there are few drawbacks to this 
approach.  The audio calibration data size can be substantial
as number of audio use cases grows. It also requires co-processor 
perform extensive parsing of data. Furthermore, host processor and 
co-processor need to establish common use case definitions so 
co-processor know what chunk of calibration data to apply in certain 
scenario such as device switch.

If there is no precedent, my idea is to apply calibration data through 
sysfs. After introduction of ASoC multi-component architecture, PCM 
stream created from dailink is registered as device. So, there is syfs 
entry for each dailink. If ALSA ASoC can provide API for 
drivers(platform/CPU) to register additional attributes to the PCM 
device, this approach gives user-space application the ability to push 
down new calibration as audio situation changes. I believe it's a viable 
solution to my problem and perhaps can be useful to other systems as well.

Your feedback is appreciated.

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] 8+ messages in thread
* [QUERY] Download calibration data to co-processor
@ 2011-01-25  6:13 Patrick Lai
  0 siblings, 0 replies; 8+ messages in thread
From: Patrick Lai @ 2011-01-25  6:13 UTC (permalink / raw)
  To: alsa-devel; +Cc: linux-arm-msm, broonie, lrg

Hi,

I am looking for ways to download audio calibration data to a 
co-processor under ALSA framework. I would like to know if there is 
already a precedent which handles this use case. I considered 
request_firmware() approach but there are few drawbacks to this 
approach.  The audio calibration data size can be substantial
as number of audio use cases grows. It also requires co-processor 
perform extensive parsing of data. Furthermore, host processor and 
co-processor need to establish common use case definitions so 
co-processor know what chunk of calibration data to apply in certain 
scenario such as device switch.

If there is no precedent, my idea is to apply calibration data through 
sysfs. After introduction of ASoC multi-component architecture, PCM 
stream created from dailink is registered as device. So, there is syfs 
entry for each dailink. If ALSA ASoC can provide API for 
drivers(platform/CPU) to register additional attributes to the PCM 
device, this approach gives user-space application the ability to push 
down new calibration as audio situation changes. I believe it's a viable 
solution to my problem and perhaps can be useful to other systems as well.

Your feedback is appreciated.

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] 8+ messages in thread

end of thread, other threads:[~2011-01-26 13:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25  6:13 [QUERY] Download calibration data to co-processor Patrick Lai
2011-01-25 13:36 ` Mark Brown
2011-01-26  7:58   ` Patrick Lai
2011-01-26 13:10     ` Mark Brown
2011-01-26 13:10     ` Mark Brown
2011-01-26  7:58   ` Patrick Lai
2011-01-25 13:36 ` Mark Brown
2011-01-25  6:13 Patrick Lai

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.