10 Jan, 2012
1 commit
-
Dan Carpenter reported that setting 0 to uinfo->value.enumerated.items
in snd_asihpi_cmode_info() may lead to Oops. This function should
return an error immediately in such a case instead.Cc: Dan Carpenter
Signed-off-by: Takashi Iwai
22 Dec, 2011
11 commits
-
Sharing and not reinitialising static pcm_hardware struct resulted in
stream format validity flags being incorrectly shared between cards.
Fix and clarify by declaring locally and initialising in the open functions.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Since introduction of mono and low latency modes, fixed channel count of 2
is not always valid. Use reported max_channels instead.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
It is useful to know the HPI version without having to load the module,
in order to determine the matching firmware version.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Structs hpi_adapter and snd_card_asihpi had members that
duplicate those in underlying hpi_adapter_obj or whose info
can be retrieved using hpi_adapter_get_info().Print less info in probe function, it can be retrieved from /proc.
Avoid name redundancy: hpi_adapter_obj.adapter_type renamed to .type
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Add "Internal" node type.
Remove GPI and GPO node types.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
The channel count can be queried to determine which.
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Unlike other streams which support 1..max channels,
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Elapsed counter should only count data committed to snd_pcm_period_elapsed,
rather than all data availableSigned-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
19 Dec, 2011
1 commit
-
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.Signed-off-by: Rusty Russell
Signed-off-by: Takashi Iwai
01 Nov, 2011
1 commit
-
Lots of sound drivers were getting module.h via the implicit presence
of it in but we are going to clean that up. So
fix up those users now.Signed-off-by: Paul Gortmaker
24 Jul, 2011
1 commit
-
Formatting a PCM name is useful for module debug too.
Add snd_prefix when making function public.[minor coding-style fixes by tiwai]
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
22 Jul, 2011
5 commits
-
Signed-off-by: Takashi Iwai
-
Mute functionality was recently added to the DSP firmware
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Add names corresponding to new HPI node types.
Shorten some names so that constructed names don't overflow the
maximum name length.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Work towards moving the function into alsa common header.
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
24 Jun, 2011
1 commit
-
In the sound/ directory there are two files (flagged by 'make
versioncheck'); sound/pci/asihpi/asihpi.c and
sound/soc/codecs/wm8991.c that include linux/version.h although they
don't need it. This patch removes the unneeded includes.Signed-off-by: Jesper Juhl
Signed-off-by: Takashi Iwai
10 Jun, 2011
1 commit
-
The convention for pci_driver.name entry in kernel drivers seem to be
the module name or equivalent ones. But, so far, almost all PCI sound
drivers use more verbose name like "ABC Xyz (12)", and these are fairly
confusing when appearing as a file name.This patch converts the all pci_driver.name entries in sound/pci/* to
use KBUILD_MODNAME for more unified appearance.Signed-off-by: Takashi Iwai
22 May, 2011
1 commit
05 Apr, 2011
5 commits
-
Define and use pcm_debug_name if CONFIG_SND_DEBUG
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Allow older non DMA capable cards to use MMAP by
emulating the DMA using read and write functions,
and getting rid of copy & silence callbacks that
were used only by older cards.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Use the card drained status reporting for playback,
but allow it to persist for a few timer cycles before
signalling XRUN, to allow card to recover by itself.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Debug print full substream ID.
Other minor debug print updates.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Clock source is neither capture nor playback,
so change 'Capture Clock' to 'Clock'.
Add spaces to control name string for consistency,
always 'PCM 0' , never 'PCM0'Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
25 Mar, 2011
3 commits
-
Replace local VPRINTK1 with snd_printdd.
Create local snd_printddd instead of VPRINTK2 for most verbose debug.
In most cases let snd_printk supply default level for messages.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Make playback silence callback a no-op, card automatically outputs
silence when written data runs out.
Increasing update interval and thus minimum period avoids xrun on startup
or because of timer jitter.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Cards without settable local samplerate and without SRC
still must have a valid samplerate.
This fixed rate is determined by reading the current rate for the card.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
11 Feb, 2011
4 commits
-
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
asihpi.c don't link playback and capture streams, there is too much
offset between them.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Reported samples_played from card may be inaccurate, so don't use it.
Update control names to be closer to alsa standard practice.
Also fixed some accidentally lowercased strings.[Removed adriver.h inclusion for external module builds by tiwai]
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
16 Jul, 2010
1 commit
-
bytes_per_sec is unsigned, so if snd_pcm_format_width() return error we
would not see it.Signed-off-by: Kulikov Vasiliy
Signed-off-by: Takashi Iwai
06 Jul, 2010
1 commit
-
Remove some deprecated items.
Change compander api to one function per parameter.
Add a version string define.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai
02 Jun, 2010
1 commit
-
Initialize prev_ctl properly before reference:
sound/pci/asihpi/asihpi.c: In function ‘snd_card_asihpi_mixer_new’:
sound/pci/asihpi/asihpi.c:2568:30: warning: ‘prev_ctl.dst_node_index’ may be used uninitialized in this functionSigned-off-by: Takashi Iwai
22 Apr, 2010
1 commit
-
Added the support of AudioScience ASI boards.
The driver has been tested for years on alsa-driver external tree,
now finally got merged to the kernel.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai