Age | Commit message (Collapse) | Author |
|
ALSA controls support polling on the kcontrols, this is used in HD-A for
jack notifcation. In tinyalsa we can use this for notfication from sound
card for any events detected by DSP
Change-Id: I4193809bfcdb60f4dc11e1c2ad6a07b29cfa80e9
Signed-off-by: Hardik T Shah <hardik.t.shah@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
|
|
The TLV byte controls expect a TLV header as well. Check for TLV
access and add TLV header size before invoking mixer API.
Change-Id: I12ba129e5bbc0676e80eb920e85b3683decfe0db
Signed-off-by: Pawse, GuruprasadX <guruprasadx.pawse@intel.com>
Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
|
|
Tinyalsa doesn't expose an api to check TLV RW access
Add mixer_ctl_is_access_tlv_rw().
This api will get used by tinymix and audio HALs for checking TLV RW
access before managing the byte related mixer controls.
Change-Id: Ib5707fabf479de638e1c7abd4cd149e7637ff9c2
Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
|
|
New controls could appear during runtime, for example if a
new firmware is downloaded to a DSP. Since ALSA drivers are
not supposed to delete or renumber existing controls we can
assume that any new controls will be after any controls we
already know about. We can use this to enable extending our
current list of controls, which is more efficient than
closing the mixer session and recreating it.
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
|
|
This function is used to get the number of mixer controls by a given name.
It was added for use with mixer_get_ctl_by_name_and_index so that client code
can expect the last valid index to pass.
|
|
This function was added to make available a mixer control accessor
in a function that does not modify its value.
|
|
Functions changed are:
- mixer_get_name
- mixer_get_num_ctls
- mixer_ctl_get_id
- mixer_ctl_get_name
- mixer_ctl_get_type
- mixer_ctl_get_type_string
- mixer_ctl_get_num_values
- mixer_ctl_get_num_enums
- mixer_ctl_get_enum_string
- mixer_ctl_get_percent
- mixer_ctl_get_value
- mixer_ctl_get_array
- mixer_ctl_get_range_min
- mixer_ctl_get_range_max
|
|
|
|
|
|
|
|
|
|
If users want to use only pcm.c or mixer.c
they can. It's not necessary to include
tinyalsa/asoundlib.h because mixer.c doesn't
use pcm.h and pcm.c doesn't use mixer.h.
|
|
into dawagner-defer-enum-inspection
|
|
|
|
|