summaryrefslogtreecommitdiffstats
path: root/sound/pci
Commit message (Collapse)AuthorAgeFilesLines
* ALSA: hda - Correct kerneldoc commentsTakashi Iwai2014-10-294-6/+146
| | | | | | | Complete the missing parameters and fix anything wrong there. Just comment changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: au88x0: Kill the rest snd_print*()Takashi Iwai2014-10-281-1/+1
| | | | | | Use the standard dev_*() instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: pcxhr: Kill the rest snd_print*()Takashi Iwai2014-10-281-21/+21
| | | | | | Use the standard dev_*() instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: ctxfi: Kill the rest snd_print*()Takashi Iwai2014-10-282-4/+6
| | | | | | Use the standard dev_*() instead. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: pcxhr: convert timeval to ktime_tAya Mahfouz2014-10-282-8/+12
| | | | | | | | | | | | This patch is concerned with migrating the time variables in the pcxhr module found in the sound driver. The changes are concerend with the y2038 problem where timeval will overflow in the year 2038. ktime_t was used instead of timeval to get the wall time. The difference is displayed now in nanoseconds instead of microseconds. Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Pass printf argument directly to request_module()Takashi Iwai2014-10-271-6/+4Star
| | | | | | | | | request_module() handles the printf style arguments, so we don't have to render strings in the caller side. Not only it reduces the unnecessary temporary string buffer, it's even safer from the security POV. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Merge branch 'for-linus' into for-nextTakashi Iwai2014-10-273-10/+12
|\ | | | | | | | | | | | | | | Merged upstream branch to make further fireworks development easier (and avoid conflicts earlier). Conflicts: sound/firewire/bebob/bebob_focusrite.c
| * ALSA: hda/realtek - New SSID for Headset quirkKailang Yang2014-10-271-0/+1
| | | | | | | | | | | | | | | | | | It is lite version of AIO machine(0x0626). The audio layout of this machine was similar with SSID 0x0626. The audio was same as commit ad8ff99e6beb8708b0bdefd9d5658324e90200f0. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: ad1889: Fix probable mask then right shift defectsJoe Perches2014-10-271-4/+4
| | | | | | | | | | | | | | | | | | | | Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda/realtek - Update restore default value for ALC283Kailang Yang2014-10-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | Update two records for ALC283 for restore default value. [The update doesn't seem to have high impact on the existing machines, but it fixes possible issues, especially expected in BIOS changes on new machines, according to Realtek -- tiwai] Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda/realtek - Update restore default value for ALC282Kailang Yang2014-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | Update default value for ALC282 for COEF. [The update doesn't seem to have high impact on the existing machines, but it fixes possible issues, especially expected in BIOS changes on new machines, according to Realtek -- tiwai] Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add missing terminating entry to SND_HDA_PIN_QUIRK macroDavid Henningsson2014-10-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Without this terminating entry, the pin matching would continue across random memory until a zero or a non-matching entry was found. The result being that in some cases, the pin quirk would not be applied correctly. Cc: stable@vger.kernel.org Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Fix inverted LED gpio setup for Lenovo IdeapadTakashi Iwai2014-10-201-2/+2
| | | | | | | | | | | | | | | | | | | | We implemented in a wrong way for mute LED on Lenovo Ideapad; the bit must be flipped. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16373 Fixes: 3e887f379d8a ('ALSA: hda - Add mute LED support to Lenovo Ideapad') Cc: <stable@vger.kernel.org> # 3.15+ Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'topic/enum-info-cleanup' into for-nextTakashi Iwai2014-10-2233-816/+264Star
|\ \ | | | | | | | | | | | | | | | | | | this is a series of patches to just convert the plain info callback for enum ctl elements to snd_ctl_elem_info(). Also, it includes the extension of snd_ctl_elem_info(), for catching the unexpected string cut-off and handling the zero items.
| * | ALSA: via82xx: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-8/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to the text array. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: sonicvibes: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-8/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to the text array. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: rme9652: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-40/+18Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hdspm: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-12/+1Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hdsp: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-118/+57Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: rme96: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-41/+21Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: rme32: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-24/+10Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: pcxhr: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-16/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: korg1212: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-19/+7Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: ice1724: Use snd_ctl_enum_info()Takashi Iwai2014-10-219-137/+22Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: ice1712: Use snd_ctl_enum_info()Takashi Iwai2014-10-212-37/+6Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-17/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: fm801: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-8/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to the text array. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: es1938: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-8/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to the text array. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: emu10k1: Use snd_ctl_enum_info()Takashi Iwai2014-10-212-61/+17Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: echoaudio: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-27/+6Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: ca0106: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-32/+8Star
| | | | | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also correct the array size and add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: azt3328: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-9/+4Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: aw2: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-11/+2Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to the text array. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: asihpi: Use snd_ctl_enum_info()Takashi Iwai2014-10-211-41/+5Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: ac97: Constify more text arraysTakashi Iwai2014-10-212-9/+15
| | | | | | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: ac97: Use snd_ctl_enum_info()Takashi Iwai2014-10-212-133/+53Star
| | | | | | | | | | | | | | | | | | ... and reduce the open codes. Also add missing const to text arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | Merge branch 'topic/hda-lo-jack' into for-nextTakashi Iwai2014-10-221-2/+15
|\ \ \
| * | | ALSA: hda - Use "Line Out" name instead of "PCM" when there are other outputsDavid Henningsson2014-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case there are speakers or headphones as well, anything that only covers the line out should not be labelled "PCM". Let's name it "Line Out" instead for clarity. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Fix "PCM" name being used on one DAC when there are two DACsDavid Henningsson2014-10-201-1/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the scenario where there is one "Line Out", one "Speaker" and one "Headphone", and there are only two DACs, two outputs will share a DAC. Currently any mixer on such a DAC will get the "PCM" name, which is misleading. Instead use "Headphone+LO" or "Speaker+LO" to better specify what the volume actually controls. [fixed missing slave string additions by tiwai] Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: ctxfi: remove unused variableSudip Mukherjee2014-10-211-4/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of now the pointer to struct dai is not being used anywhere in the function. So it is safe to remove the variable. If we are ever doing anything with the container_of(daio, struct dai, daio), then at that time we can again add the variable. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | Merge branch 'topic/cleanup' into for-nextTakashi Iwai2014-10-209-90/+103
|\ \ \ | |_|/ |/| |
| * | ALSA: au88x0: pr_* replaced with dev_*Sudip Mukherjee2014-10-158-82/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pr_* macros replaced with dev_* as they are more preffered over pr_*. each file which had pr_* was reviewed manually and replaced with dev_*. here we have actually used the reference of the vortex which was added to some functions in the previous patch of this series. The prefix of the CARD_NAME and prefix of "vortex:" was also removed as the dev_* will print the device name. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: au88x0: added reference of vortex_tSudip Mukherjee2014-10-154-8/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | added a pointer of the vortex in the following functions : vortex_alsafmt_aspfmt vortex_Vort3D_InitializeSource a3dsrc_ZeroStateA3D so that we can have a reference of the vortex in the function. this reference of the vortex will actually be used in a later patch to convert the pr_* macro to dev_*. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - hdmi: Fix missing ELD change event on plug/unplugAnssi Hannula2014-10-201-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ELD ALSA control change event is sent by hdmi_present_sense() when eld_changed is true. Currently, it is only true when the ELD buffer contents have been modified. However, the user-visible ELD controls also change to a zero-length value and back when eld_valid is unset/set, and no event is currently sent in such cases (such as when unplugging or replugging a sink). Fix the code to always set eld_changed if eld_valid value is changed, and therefore to always send the change event when the user-visible value changes. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Cc: David Henningsson <david.henningsson@canonical.com> Cc: <stable@vger.kernel.org> # 3.9+ Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: ALC283 codec - Avoid pop noise on headphones during suspend/resumeHarsha Priya2014-10-201-0/+3
|/ | | | | | | | | This patch sets the headphones mode to default before suspending which helps avoid the pop noise on headphones Signed-off-by: Harsha Priya <harshapriya.n@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda_intel: Add Device IDs for Intel Sunrise Point PCHJames Ralston2014-10-151-0/+4
| | | | | | | | | This patch adds the HD Audio Device IDs for the Intel Sunrise Point PCH. [the item position rearranged by tiwai] Signed-off-by: James Ralston <james.d.ralston@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: emu10k1: Fix deadlock in synth voice lookupTakashi Iwai2014-10-141-4/+2Star
| | | | | | | | | | | | | | | | The emu10k1 voice allocator takes voice_lock spinlock. When there is no empty stream available, it tries to release a voice used by synth, and calls get_synth_voice. The callback function, snd_emu10k1_synth_get_voice(), however, also takes the voice_lock, thus it deadlocks. The fix is simply removing the voice_lock holds in snd_emu10k1_synth_get_voice(), as this is always called in the spinlock context. Reported-and-tested-by: Arthur Marsh <arthur.marsh@internode.on.net> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Add dock port support to Thinkpad L440 (71aa:501e)Takashi Iwai2014-10-081-0/+1
| | | | | | | Yet another Thinkpad model that has a dock port. Reported-by: Sascha Wilde <wilde@intevation.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Add dock support for Thinkpad T440 (17aa:2212)Takashi Iwai2014-10-071-1/+1
| | | | | | | | There is another Thinkpad T440 with SSID 17aa:2212 that has a dock port. Reported-by: Siwei Luo <sluo@smartbeans.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda - Make the inv dmic handling for Realtek use generic parserDavid Henningsson2014-10-071-150/+8Star
| | | | | | | | | From what I can see, the generic parser is now good enough to handle Realtek's inverted dmic handling, so let's remove the special handling and use the generic parser instead. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>