It is possible to get information about the sound chip or at least the sound capabilities of the device programatically?
I can't find nothing about it
It is possible to get information about the sound chip or at least the sound capabilities of the device programatically?
I can't find nothing about it
sound chip An obsolete misnomer - almost as bad as sound card.
As you've tagged this question as Android, I assume you're talking about mobile devices. In these systems there two components to the audio system:
The hardware implementation details are entirely abstracted away from you by Android as can be seen in this architecture diagram. An application's view of the world is essentially a stereo audio at an arbitrary sample rate (the system will convert as necessary).
If you want to know the capabilities in order to circumvent AudioFlinger, or to get a measure of precisely what the hardware of the device comprised - which I imagine you would need to do for any application that is to perform any kind of accurate analysis of incoming audio - this is an entirely different proposition.
Many (but not all) Android devices implement the Audio HAL on top of Alsa, so using its APIs is one possibility. This obviously has to be done in native code.
It's the codec that has the real impact on device capabilities rather than the streaming engine. Codecs are invariable attached by I2C, so you'll be able to discover them in the appropriate directory of sysfs
. They also tend to have their own kernel modules as well, so this might be another approach.