13 Jan, 2012
1 commit
-
For historical reasons, we allow module_param(bool) to take an int (or
an unsigned int). That's going away.A few drivers really want an int: they set it to -1 and a parameter
will set it to 0 or 1. This sucks: reading them from sysfs will give
'Y' for both -1 and 1, but if we change it to an int, then the users
might be broken (if they did "param" instead of "param=1").Use a new 'bint' parser for them.
(ntfs has a different problem: it needs an int for debug_msgs because
it's also exposed via sysctl.)Cc: Steve Glendinning
Cc: Jean Delvare
Cc: Guenter Roeck
Cc: Hoang-Nam Nguyen
Cc: Christoph Raisch
Cc: Roland Dreier
Cc: Sean Hefty
Cc: Hal Rosenstock
Cc: linux390@de.ibm.com
Cc: Anton Altaparmakov
Cc: Jaroslav Kysela
Cc: Takashi Iwai
Cc: lm-sensors@lm-sensors.org
Cc: linux-rdma@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linux-ntfs-dev@lists.sourceforge.net
Cc: alsa-devel@alsa-project.org
Acked-by: Takashi Iwai (For the sound part)
Acked-by: Guenter Roeck (For the hwmon driver)
Signed-off-by: Rusty Russell
12 Jan, 2012
1 commit
11 Jan, 2012
6 commits
-
When multiple headphone or other detectable output pins are present,
the power-map has to be updated after resume appropriately, but the
current driver doesn't check all pins but only the first pin (since
it's enough to check it for the mute-behavior). This resulted in the
silent output from the secondary outputs after PM resume.This patch fixes the problem by checking all pins at (re-)init time.
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740347
Cc:
Signed-off-by: Takashi Iwai -
All Xonar cards support S/PDIF input, but the cards without optical or
coaxial plugs have only undocumented pin connectors. Support for the
ST/STX was already added in a previous patch; this adds support for the
D1/DX (JP2), DG (J5), DS (J5), and HDAV Slim (J12).Many thanks to Zoltan Miklos for testing the DS and DX.
Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
This card shares PCI ids with Chaintec AV710. Therefore, it will not be
detected automatically, it can only be activated by the module parameter
model=sq210a.Signed-off-by: Pavel Hofman
Signed-off-by: Takashi Iwai -
When two different cards share the same PCI vendor/subvendor
identification, allow card info based on model only.
Do not require subvendor ID.Signed-off-by: Pavel Hofman
Signed-off-by: Takashi Iwai -
Add the capture pcm only if there is at least one ADC configured in
the SYSCONF register.Signed-off-by: Pavel Hofman
Signed-off-by: Takashi Iwai -
Before, /proc/asound looked like this:
2 [Default ]: HDSPM - RME RayDAT_f1cd85
RME RayDAT S/N 0xf1cd85 at 0xf7300000, irq 18In case of a second HDSPM card, its name would be Default_1. This is
cumbersome, because the order of the cards isn't stable across reboots.To help userspace tools referring to the correct card, this commit
provides a unique id for each card:2 [HDSPMxf1cd85 ]: HDSPM - RME RayDAT_f1cd85
RME RayDAT S/N 0xf1cd85 at 0xf7300000, irq 18In this example, userspace (configuration files) would then use
hw:HDSPMxf1cd85 to choose the right card.The serial is masked to 24bits, so this string is always shorter than
sixteen chars.Signed-off-by: Adrian Knoth
Signed-off-by: Takashi Iwai
10 Jan, 2012
6 commits
-
Currently the driver checks only the out_mix_path[] for the primary
output route for judging whether to create the loopback-mixing control
or not. But, there are cases where aamix-routing is available only on
headphone or speaker paths but not on the primary output path. So, the
driver ignores such cases inappropriately.This patch fixes the check of the loopback-mixing control by testing
all mix-routing paths.Cc:
Signed-off-by: Takashi Iwai -
When an invalid NID is given, get_wcaps() returns zero as the error,
but get_wcaps_type() takes it as the normal value and returns a bogus
AC_WID_AUD_OUT value. This confuses the parser.With this patch, get_wcaps_type() returns -1 when value 0 is given,
i.e. an invalid NID is passed to get_wcaps().Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740118
Cc:
Signed-off-by: Takashi Iwai -
These laptops can work well with the auto-parser and their BIOS setups,
and in addition, the auto-parser fixes the problem with S3/S4 where
the unsol event handling is killed after resume due to fallback to the
single-cmd mode.Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740115
Cc: [v3.1+]
Signed-off-by: Takashi Iwai -
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 -
Dan Carpenter reported that setting 0 to uinfo->value.enumerated.items
in snd_hdsp_info_pref_sync_ref() may lead to Oops. This function should
return an error immediately in such a case instead.Cc: Dan Carpenter
Signed-off-by: Takashi Iwai -
This early 2011 model just need to have headphones on GPI02
instead of GPI01, and use BIOS pincfgs.
It is detected by codec SSID.
The iMac12,1 model is known to work the same way, although maybe
not with the same codec SSID.Signed-off-by: Jérémy Lal
Signed-off-by: Takashi Iwai
08 Jan, 2012
13 commits
-
The serial number is used multiple times in hdspm.c. Since it belongs
to the card, let's store it in struct hdspm and refer to it whenever
necessary.Signed-off-by: Adrian Knoth
Signed-off-by: Takashi Iwai -
Fix channels swapping of 4 channels playback by
using vortex_adbdma_stopfifo instead of vortex_adbdma_pausefifo
for SNDRV_PCM_TRIGGER_STOP eventSigned-off-by: Raymond Yau
Signed-off-by: Takashi Iwai -
Fix IRQ fifo error when playing stereo by set stereo flag of fifo control.
This also fix the swap of front and rear channels on au8830.Signed-off-by: Raymond Yau
Signed-off-by: Takashi Iwai -
- Fix XtalkGainsDefault, XtalkGains1Chn
- Fix XtalkWideCoefsLeftEQ, XtalkWideCoefsRightEQ
- Fix XtlakWideCoefsLeftXT, XtalkWideCoefsRightXTSigned-off-by: Raymond Yau
Signed-off-by: Takashi Iwai -
Signed-off-by: Raymond Yau
Signed-off-by: Takashi Iwai -
Append the external clock item to the clock list only if
the SPDIF_IN capability is defined in the SPDIF register.Signed-off-by: Pavel Hofman
Signed-off-by: Takashi Iwai -
Cards with identical PCI ids but no AC97 config in EEPROM do not have
the ac97 field initialized. We must check for this case to avoid kernel oops.Signed-off-by: Pavel Hofman
Cc:
Signed-off-by: Takashi Iwai -
Now that we have changed the poulsbo chip to use LPIB position fix,
we can remove the individual machine quirks that do the same thing.Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai -
This fixup is not actually used, so in practice this is just a
cosmetic fix.Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai -
The CS4213 chip is similar to the CS4210, but it does not have
SPDIF capabilities. Also, it has fewer pins, and the vendor specific
nid is different. With this patch, we have working inputs and outputs
(and automute/autoswitch). However, we don't know anything about
the vendor specific processing coefficients, so we don't read or write
to that node in this patch.BugLink: https://bugs.launchpad.net/bugs/910792
Tested-by: Hsin-Yi Chen
Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai -
There was a bug in the automute logic causing speakers not to
mute when headphones were plugged in.Cc: stable@kernel.org
Tested-by: Hsin-Yi Chen
Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai -
The control name "HP/Speakers" is non-standard, and since there is
only one DAC on this chip there is no need for a virtual master
anyway.Cc: stable@kernel.org
Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai -
According to the thread on alsa-devel, the LPIB method is to prefer
for Oaktrail controller chip.Reference: http://mailman.alsa-project.org/pipermail/alsa-devel/2012-January/047800.html
Signed-off-by: David Henningsson
Signed-off-by: Takashi Iwai
01 Jan, 2012
2 commits
-
0x20051102 is an Audigy 2 ZS.
Signed-off-by: Tim Yamin
Signed-off-by: Takashi Iwai -
Oaktrail has 0x8086, 0x080a - AZX_DRIVER_SCH
Taken from the Meego patches for Oaktrail
Signed-off-by: Li Peng
Signed-off-by: Alan Cox
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 -
Previously, only payload and size were correct, sufficient for reading,
but other fields produced spurious debug output.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 -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Add new error codes, and adapter properties.
Clean up some comments.Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
dsp_code struct is not created if firmware is invalid, so check
and zero of firmware pointer is not necessarySigned-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 -
Enables retrieving more debug info in fewer transactions.
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai -
Signed-off-by: Eliot Blennerhassett
Signed-off-by: Takashi Iwai