aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-07-21Fix build on 6.5HEADmasterTakashi Iwai10-1/+30
Also add the missing codec registration.
2022-09-02Fix runtime PM initial stateTakashi Iwai1-0/+1
2022-09-01Workaround for 6.0Takashi Iwai20-14/+101
2022-01-15Fix SSID lookup (bko#215495)Takashi Iwai1-1/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Add linux/component.h wrapperTakashi Iwai1-0/+48
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Add linux/refcount.h wrapperTakashi Iwai1-0/+19
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Include linux/stddef.hTakashi Iwai1-2/+1
Drop the own true/false definitions as well Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Workaround for dev_name() and devm_kasprintf()Takashi Iwai1-0/+9
Both are broken, just dummy funcs Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Workaround for clocks_calc_mult_shift()Takashi Iwai1-0/+4
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-01-08Workaround for the recent addition of control syncTakashi Iwai2-4/+6
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-10-27Improved LED cdev trigger handlingTakashi Iwai3-2/+31
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-10-27Add snd_pci_quirk_lookup_id() wrapperTakashi Iwai2-9/+29
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-08-20Add pm_runtime_suspend() and pm_runtime_resume() wrappersTakashi Iwai2-0/+16
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-04-15Fix for the new control led stuff in 5.13Takashi Iwai1-0/+5
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-04-07Restore the PM functionalityTakashi Iwai3-0/+8
The recent code has moved the system PM ops conditionally with CONFIG_PM_SLEEP. Also the more PM ops have been added in the upstream and we need to follow that, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-04-07Fix the build with 5.12 kernelTakashi Iwai1-0/+1
Forcibly include the system linux/stat.h. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-03-08Build also hdac_controller.cTakashi Iwai5-2/+31
A part of it is actually used now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-01-01Add device_release_driver() wrapperTakashi Iwai2-0/+10
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-01-01Add DIV_ROUND_UP() and roundup() wrappersTakashi Iwai1-0/+3
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-11-27Add a dummy struct completion definitionTakashi Iwai1-0/+4
It's nowhere accessed, but needed for the recent drm audio component changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-11-27Add const to snd_kcontrol_new name fieldTakashi Iwai1-1/+1
This fixes compile warnings in the recent ca0132 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-11-27Add a hacked version of pm_runtime_set_suspended()Takashi Iwai1-0/+2
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-08-07Rename vmater slave to followerTakashi Iwai2-139/+146
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-08-07Add fallthrough pseudo-keyword definitionTakashi Iwai1-0/+2
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-06-22Parse PCI ID and SSID in the new alsa-info.sh formatTakashi Iwai1-1/+28
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-06-18Enable and add support for CONFIG_SND_HDA_GENERIC_LEDSTakashi Iwai3-1/+23
The LED audio trigger wrappers are improved to notify the changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-06-16Add guid_t definitionTakashi Iwai1-0/+5
Needed for building 5.8 kernel code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-06-16Fix the build with 5.8 kernelTakashi Iwai1-0/+5
snd_hda_queue_unsol_event() got dropped. Use the direct call of snd_hdac_bus_queue_event() as a quick fix. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-05-07Support regmap_update_bits*() stuffTakashi Iwai3-0/+38
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-05-07Add devm_led_classdev_register*() workaroundTakashi Iwai1-0/+7
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-01-04Fixes for the latest kernelsTakashi Iwai4-1/+11
Add some essential typedefs, workqueue workaround, and the new control access flag definition for 5.6 kernel. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-08-30Add dump_coef to the available optionTakashi Iwai3-7/+26
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-08-12Check the drop of hdac_io_opsTakashi Iwai2-0/+24
2019-08-12Add SNDRV_DMA_TYPE_XXX definitionsTakashi Iwai1-0/+25
2019-08-12Add a few more macros and pci->busTakashi Iwai1-0/+4
2019-08-12Add struct_size() definitionTakashi Iwai1-0/+3
A simplified version.
2019-04-20Add UUID definitionsTakashi Iwai1-0/+9
Just to pass the compilation. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-02-20Fix the build with 5.0 / 5.1 kernelTakashi Iwai3-1/+32
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-02-20Some device power fixupsTakashi Iwai3-3/+46
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-12-17Build fixes for 4.20-rc+Takashi Iwai10-0/+26
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-12-01Add linux/string.h wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-27Add pci_iounmap() wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-27Follow up fix for the recent regmap changeTakashi Iwai1-0/+2
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-10-24Fix the build with 4.20Takashi Iwai12-32/+47
hda_codec.h is moved to the common include/sound, so we need to add the check in configure script and change the relevant codes accordingly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-10-05Add a workaround for the missing current_work()Takashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-07-23Add the missing drm_audio_component.h stubTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-21Fix wrong malloc() call in kmemdup() wrapperTakashi Iwai1-1/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-21Fix gcc8 warnings with log2.hTakashi Iwai1-9/+2
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-21Add kmalloc_array() wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-13Define some dummy I/O functions for patch_ca0132.cTakashi Iwai1-0/+18
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-13Update linux/tlv.hTakashi Iwai1-57/+110
Copied from the upstream code, mixed up both uapi and the main ones. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-06-13Add a dummy <linux/types.h>Takashi Iwai1-0/+1
Just do nothing, only for avoiding the compile error. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-03-07Fix misc compile warningsTakashi Iwai6-5/+12
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-03-06Enable IS_REACHABLE() alwaysTakashi Iwai1-0/+1
Just a build workaround. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-12-12Update vmaster stuff for 4.14/4.15Takashi Iwai2-0/+38
Added snd_ctl_apply_vmaster_slaves() Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-06-27Fix model generic bindingTakashi Iwai1-2/+2
The call for generic driver init was missing, so -m generic didn't work. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-06-27Add a dummy implementation of flush_work()Takashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-05-17Add a dummy function for the new dell micmute APITakashi Iwai2-0/+9
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-11-21Fix the regression wrt runtime PMTakashi Iwai2-4/+5
The pm_runtime_get_if_in_use() should return -EINVAL when no runtime PM is used. But we didn't check it, thus it resulted as if the codec power were down. Fix it by referring to the actual power_save value in pm_runtime_get_if_in_use(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-09-08Add a dummy acpi_dev_found() wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-04-12Include dist/include/sound/hda_*.h instead of copying themTakashi Iwai2-706/+2
This eliminates the possibly inconsistencies in future. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-04-12Fix the build with the recent hda_chmap changesTakashi Iwai1-76/+3
Include <sound/hda_chmap.h> from the dist. Since the new code uses hweight_long(), include linux/bitops.h, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-03-28Fix a compiler warning about WARN_ON()Takashi Iwai1-1/+1
Our WARN_ON() macro wrapper makes compiler unhappy when a pointer is passed to the argument: warning: passing argument 1 of ‘_WARN_ON’ makes integer from pointer without a cast [-Wint-conversion] Fix it up. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-03-15Add the build stub for hdmi_chmap.cTakashi Iwai4-1/+91
The recent restructuring of HDMI chmap helper requires the workarounds in hda-emu side, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-03-15Add pm_runtime_get_if_in_use() wrapperTakashi Iwai2-0/+10
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-03-15Add a dummy wmb() wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-02-25hda-emu: add acpi_dev_presentDavid Henningsson1-0/+2
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-01-11hda-emu: Add keycode* to input_devDavid Henningsson1-0/+5
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-12-03hda-emu: Add snd_power_get_stateDavid Henningsson1-0/+2
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-10-20Fixes to adapt MODULE_DEVICE_TABLE() support in the upstreamTakashi Iwai6-23/+15
The header linux/mod_devicetable.h is directly included from the kernel tree, so that struct hda_device_id definition can be moved around. For that, a few more type definitions, the additional uevent wrapper and some fixes in linux/dmi.h are needed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-09-28Add usleep_range() wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-09-25Fix regmap_read() behavior in cache_only modeTakashi Iwai1-0/+2
Align with the original behavior, return -EBUSY if cache_only is set but no cache is available. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-09-07hda-emu: Add "dist" and "compile" to .gitignoreDavid Henningsson1-0/+2
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-09-07hda-emu: Fix hda_i915 build failureDavid Henningsson2-0/+2
This allows building hda-emu even after recent i915 -> hda patches. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-08-24Fix the jack name copy in snd_kctl_jack_new() for older kernelsTakashi Iwai1-0/+1
This resulted in the empty string, eventually aborts. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-06-12Allow specifying multiple -P, -U and -H optionsTakashi Iwai1-12/+32
Each item is applied sequentially instead of only the last one. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Add jack string uniqueness checkTakashi Iwai3-2/+50
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Correct the wrong PCM bits in codecs/stac9205-dell-precision-m4300Takashi Iwai1-2/+2
It's annoying to see errors at each run. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Add a dummy include/drm/i915_component.hTakashi Iwai1-0/+0
Just for letting the build go. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Fix segfault with unbound driver at PM testTakashi Iwai1-2/+4
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Fix the missing jack supportTakashi Iwai2-0/+12
It's still incomplete, the duplicated ctls need to be resolved later. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Define CONFIG_SND_PROC_FS and CONFIG_SND_JACKTakashi Iwai1-0/+2
Both are needed to build the latest drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-05-29Fix missing card setup in busTakashi Iwai1-0/+1
Otherwise it oopses at error. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-29Add support for the new jack API with two more argumentsTakashi Iwai3-0/+22
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-27Support for 4.2+ kernel codeTakashi Iwai13-4/+289
Now hda controller code was split, and bus_ops was dropped. It requires more wrappers in linux/*.h and sound/*.h files, as well as the adaption of builds of hda-emu.c. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-16Add atomic_inc_not_zero() and atomic_dec_if_positive() wrappersTakashi Iwai1-0/+12
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-04-08Fix -P x=y option handlingTakashi Iwai1-1/+1
2015-04-06Add regmap support codeTakashi Iwai5-1/+245
Now we support regmap in the upstream, so follows the hda-emu, too. The regmap support codes are added without checks in configure. If you need to build the pre 4.1-rc1 version, use the previous git checkout. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-03-23Update READMETakashi Iwai1-10/+10
Mention the new --with-kerneldir option, and update download URLs.
2015-03-23Support HD-audio core library for kernel v4.1+Takashi Iwai12-30/+157
Now the HD-audio code is split and the core helper codes are put in sound/hda/ directory. hda-emu also follows this change. The --with-hdadir configure option is replaced with --with-kerneldir option. Instead of passing the HD-audio directory, pass the root directory of Linux kernel here. configure script has been a bit modified to take care of two directories, sound/hda and sound/pci/hda. The former is built in lib subdirectory while the latter is still symlinked to hda subdirectory and built in hda subdirectory.
2015-03-20Add more pm_runtime_*() definitionsTakashi Iwai1-0/+3
2015-03-20Add more helper string functionsTakashi Iwai1-1/+18
- kstrtoint() (incomplete, no error check) - kasprintf() Also fix the malloc call in kvasprintf() to use the our own helper. Otherwise it'll screw up at freeing this memory.
2015-03-20Fix NULL dereference in device_del()Takashi Iwai1-2/+4
Don't call remove callback unless the device is really added
2015-03-16Support for the new HD-audio infrastructure for 4.1 kernelTakashi Iwai13-61/+453
The HD-audio driver is now using the standard bus to bind with devices, and there have been a lot of code changes along with it. Adapt hda-emu to follow the changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-25Fix build without hda_bus_templateTakashi Iwai2-1/+38
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-19Add ASUS PCI id to pci_ids.hkernel-4.0Takashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-02-05Add PCI_VENDOR_ID_TOSHIBA definitionTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-11Add a few more input device wrappersTakashi Iwai1-0/+8
input_report_key(), input_report_sync(), keybits[] and a few KEY_* constants definitions for the recent patch to support HP mic-mute key handling. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-10-28Fix request_module() build errorTakashi Iwai1-1/+1
It accepts variable arguments actually. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-10-24Add snd_ctl_enum_infoDavid Henningsson2-0/+20
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-23add include/linux/err.hDavid Henningsson1-0/+64
We recently started using it on the kernel side. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-22hda-spec: Add more secret nodes for Realtek codecsDavid Henningsson1-7/+16
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-22hda-spec: Add IDT 92HD95 to IDT verb codec listDavid Henningsson1-0/+1
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-22hda-spec: Add secret eq verbs for IDTDavid Henningsson1-1/+12
These verbs exist according to the driver, but we know nothing about them, except they are used to calibrate some EQ. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-22hda-spec: Add access to secret node 0x8 for Haswell/Broadwell HDMIDavid Henningsson1-0/+14
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-22hda-spec: Add fixups for Haswell/Broadwell HDMIDavid Henningsson1-0/+42
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-09hda-emu: Add alsa-info for more Canonical certified systemsDavid Henningsson533-1612/+598590
This updates the previously submitted alsa-infos to include machines certified by Canonical in recent years, in the hope is that this will help upstream driver QA. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2014-09-04hda-emu/tester: Fix calculation of machinesDavid Henningsson1-1/+3
Previously, if a machine had a modem codec, it was not included in the total count of machines. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Allow some more codec IDs to use ATI HDMI special verbsDavid Henningsson1-0/+3
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Add verbs for old Nvidia HDMI 8ch 7xDavid Henningsson1-0/+14
The driver sends these verbs on purpose. I can't verify that it is correct to do so, but I hope the driver is doing the right thing here. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Enable CONFIG_SND_DYNAMIC_MINORSDavid Henningsson1-0/+2
This is enabled on any modern distro and necessary for modern HDMI stuff (with more than two outputs) to function correctly. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu/tester: Test all codecs, not just oneDavid Henningsson1-13/+49
This way we get a more complete test over the codecs. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu/tester: Add codec index parameter to hda-emu-testerDavid Henningsson2-2/+14
Also improve runner's error handling a little. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Improve error message for modem codecsDavid Henningsson1-2/+6
In some cases (when codec index parameter was specified), selecting a modem codec resulted in "ERROR -77", which was confusing. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Quit early if requested codec index is above limitDavid Henningsson1-0/+5
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-09-04hda-emu: Deal with two cards with one codec eachDavid Henningsson1-7/+9
When using the -i switch to specify an index, we need to deal with two common cases: 1) All codecs belong to one card 2) There are as many cards as there are codecs This patch makes sure we pick the correct pci ID and SSID for the second case, too. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-08-08Show the minimum-mute TLV bit in dB informationTakashi Iwai1-1/+2
2014-08-05Add Dell LED support wrapperTakashi Iwai2-0/+15
2014-07-21Add scnprintf() wrapperTakashi Iwai1-0/+3
Just use snprintf(). It's not correct, but works so far as it's used only in hda_generic.c debug prints. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-07-01Adapt to new snd_hda_calc_stream_formatDavid Henningsson2-1/+28
Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-05-23Add new HDMI commandsDavid Henningsson2-0/+55
Some new HDMI commands were added recently to the HDA driver. This patch makes hda-emu support these new commands (or at least, not output errors). Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-05-09encode-pincfg: Don't override assoc, seq and misc numbersTakashi Iwai1-7/+13
When the base value is given via -b option, don't override assoc, seq and misc numbers but keep the original bits.
2014-03-03Enable CONFIG_SND_HDA_INPUT_BEEPTakashi Iwai2-0/+5
... and add missing hda_beep.c in kernel/Makefile.am
2014-02-27Fix builds for the recent device management changesTakashi Iwai3-0/+33
3.15 kernel has lots of changes in HD-audio device management. Here are some hacks to adapt them.
2014-02-27Add wrappers for dev_err() & coTakashi Iwai2-0/+12
Just print via pr_xxx().
2014-02-10Add IS_MODULE() and IS_BUILTIN() macrosTakashi Iwai1-0/+3
... in addition to the dummy symbol_put_addr() wrapper.
2014-01-27Add CX20583 codec to the modem white listTakashi Iwai1-0/+1
2014-01-07Add -U option for providing the initial user-pincfgsTakashi Iwai2-8/+31
The option -P allows to set only the initial pin configs which may be overridden by the driver's own setup. We want to provide sometimes the pin configs corresponding to user_pin_configs sysfs. The new option, -U, serves for that purpose.
2013-12-22Add a dummy include/linux/acpi.hTakashi Iwai1-0/+1
2013-12-10Update fixups for STAC codecsTakashi Iwai1-9/+41
2013-12-10Apply the fixup for ALC268 to ALC267, tooTakashi Iwai1-0/+1
2013-12-10Shut up the errors on access to the non-existing NID 0x20 on ALC260Takashi Iwai1-2/+9
Let's just ignore COEF accesses.
2013-12-10Add more fixups for VIA codecsTakashi Iwai1-9/+92
Now almost all VIA-specific verbs and workarounds should have been covered.
2013-12-09Add include/sound/hda_verbs.hTakashi Iwai1-0/+554
Copied from kernel tree. Now verb definitions are split from hda_codec.h in the latest code.
2013-12-06Add linux/async.h wrapperTakashi Iwai1-0/+37
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-27Add a dummy workqueue_set_max_active() wrapperTakashi Iwai1-0/+1
2013-11-26Fix unbalanced brace in ifdefTakashi Iwai1-1/+1
It's obvious...
2013-11-26Do proper error handling at PCM testTakashi Iwai1-8/+13
When something wrong happens during PCM operation, properly close and manage refcounts instead of just powering down and returning.
2013-11-25Allow to pass a firmware patch file output to -H optionTakashi Iwai1-1/+21
Just like -P option does, check the input file contents and skips to [hint] section if it's a firmware patch file.
2013-11-25Allow the direct pin config via -P optionTakashi Iwai2-1/+13
Like -H option, now hda-emu accepts the pin config value directly specified via -P option like 0x0a=0x12345678.
2013-11-25Allow to pass a direct hint via -H optionTakashi Iwai2-1/+11
If a string with '=' is passed to -H option, hda-emu parses the value and handles as a hint string directly.
2013-11-21Allow firmware patch file to read via -P optionTakashi Iwai1-0/+20
We often want to pass the pin configs used for snd-hda-intel patch option. This patch allows user to pass such a file to -P option as is.
2013-11-19Add acpi.h headerDavid Henningsson1-0/+36
This is needed for the new acpi functionality in patch_realtek.c. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-12Add round_up() and round_down() macrosTakashi Iwai1-0/+4
2013-11-07Add alsa-info of MacBooks with CS4208 codecTakashi Iwai3-0/+4076
MacBookAir 6,1 MacBookAir 6,2 MacBookPro 11,2
2013-11-07Update cx20549-toshiba-p105 codecTakashi Iwai1-202/+403
Taken from alsa-info db
2013-11-05Add AMD HDMI verbsDavid Henningsson1-0/+45
Source of information: http://www.x.org/docs/AMD/AMD_HDA_verbs_v2.pdf Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-01Implement tpacpi_set_ledDavid Henningsson2-2/+8
This allows for testing the feature as well as avoiding a warning when testing the relevant codecs. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-10-30Allocate PCM substreams properlyTakashi Iwai1-5/+64
... and allocate PCM runtime struct on the fly, too, instead of keeping in static dummy structs in hda_test_pcm(). This will fix the invalid get from channel map controls.
2013-10-25Add put_unaligned*() and copy_from/to_user() wrappersTakashi Iwai2-0/+18
Just simplistic ones, not portable at all. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-10-17Fix build with patch_conexnat.c thinkpad_acpi supportTakashi Iwai2-0/+22
So far, unconditionally enabled but symbol_request() returns always NULL.
2013-10-08Add alsa-info output of ASUS N56VZ with ALC663 codecTakashi Iwai1-0/+1112
Taken from https://bugzilla.novell.com/show_bug.cgi?id=841645
2013-10-07Add alsa-info of ASUS UX31A with ALC269-VBTakashi Iwai1-0/+967
2013-10-07Add WARN_ON() wrapperTakashi Iwai1-0/+9
2013-10-07Show the function name and line number at BUG_ON()Takashi Iwai1-1/+1
2013-09-09Add alsa-info output of Mac Mini with STAC9221 codecTakashi Iwai1-0/+853
This is with a broken SSID, which caused a problem on 3.9/3.10 kernels.
2013-09-09Add alsa-info of Toshiba Satellite C870 with ALC269-VCTakashi Iwai1-0/+919
Reference: https://bugzilla.novell.com/show_bug.cgi?id=833585
2013-09-09Add alsa-info of ASUS TX300 with ALC282 codecTakashi Iwai1-0/+1120
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=59791
2013-07-19Allow Realtek codecs to access node 0x51David Henningsson3-0/+20
There is sometimes a secret node 0x51 on Realtek codecs, controlling an equally secret DSP. At least make sure the automated test suite doesn't fail when trying to access this secret node. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-07-03Fix vmaster hook callTakashi Iwai1-1/+1
The upstream commit 1ba65ae4bdbd43265c51ee4c30ff21a48124b6d8 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-06-28Add SNDRV_CTL_ELEM_ID_NAME_MAXLEN definitionTakashi Iwai1-0/+2
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-06-28Add snd_ctl_sync_vmaster()Takashi Iwai2-25/+58
Taken from the upstream change (commit 1ca2f2ec).
2013-06-07Allow rescheduling of work in the work itselfTakashi Iwai2-6/+6
For example, the jack polling code needs the self rescheduling. Also, flush the pending work at the end of each command, also for the wrong / help command. So you can execute the pending work by pressing RETURN on the prompt. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-06-03Do explicit power up/down while dumping the procTakashi Iwai1-0/+2
Otherwise the power-up sequence is hidden during the proc output is taken when power_save option is set. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-03-13Enable the malloc debugging as defaultTakashi Iwai4-37/+31
Also support __GFP_ZERO flag.
2013-03-12stream tag should always be non-zeroDavid Henningsson1-1/+1
Sending zero as stream tag is discouraged, because it means no data, and the real code doesn't do that. Avoid it here too. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-03-12Fix typo in HAVE_COMMON_PREPAREDavid Henningsson1-1/+1
This typo caused snd_hda_codec_prepare never to be executed by hda-emu. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-02-07hda-emu: Add sanify check of initial pinctlDavid Henningsson3-20/+50
The pinctl in alsa-info is not the initial pinctl but the current, so sanify the current pinctl before accepting it as the initial pinctl. (The initial pinctl is used during pm test.) Several false positives in the test tool is removed with this improvement. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-24Suppress unsol event during power down via jack commandTakashi Iwai1-0/+4
When the codec is powered down via power_save option, we shouldn't trigger the unsol event via jack command. Otherwise it kicks off the power-up sequence again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Fix build with --enable-own-proc optionTakashi Iwai1-2/+2
The build got broken due to recent patch changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Fix again build breakage by the previous commitTakashi Iwai2-0/+5
patch_hdmi.c _is_ compiled in the recent kernels, of course. So the real fix is to compile patch_hdmi.c only when patch_atihdmi.c & co don't exist. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Fix another build breakage on old kernelsTakashi Iwai2-4/+0
patch_hdmi.c is actually included by patch_atihdmi.c & co. It's not directly compiled. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Fix the build with old kernelsTakashi Iwai4-2/+21
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Add -n option to start without invocation of codec parserTakashi Iwai2-8/+28
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-23Add handling of sysfs hintsTakashi Iwai7-46/+291
Also add -H option to give the initial hints. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-21Fold some help text lines to fit within 80 columnsTakashi Iwai1-4/+9
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-21Add -m option to route command for showing mute flagsTakashi Iwai4-7/+55
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-17Add hweight32() definition in linux/bitops.hTakashi Iwai1-0/+10
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-16Add -i and -r options to pm commandTakashi Iwai6-5/+122
Add options to initialize/randomize pinctls and amps before resume so that we can check the resume procedure more intensively. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-16Allow passing name string to get/set argumentTakashi Iwai2-5/+89
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-15Add snd_hda_get_int_hint() helper functionTakashi Iwai1-0/+5
Currently it just returns an error.
2013-01-15Fix the missing codec->user_mutex usageTakashi Iwai2-0/+20
The initialization is missing because it's done in hda_hwdep.c in the upstream code, which isn't built in hda-emu.
2013-01-10Add proper rwlock and rw_semaphore implementationTakashi Iwai4-15/+106
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-08Add linux/ctype.h wrapperTakashi Iwai1-0/+1
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-08Conditional builds of hda_auto_parser.c and hda_jack.cTakashi Iwai2-2/+25
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-20Add the proper definition of strlcat()Takashi Iwai1-3/+12
Copied from the kernel code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-05Avoid crash of reading an invalid number of nodesTakashi Iwai1-0/+4
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-04Add include/linux/firmware.h (and let others build with that)Takashi Iwai3-0/+40
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-04Add pr_*() macro, dma_addr_t, and time_before() macro definitionsTakashi Iwai1-0/+24
Added in wrapper.h. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-04Change the kernel file managementTakashi Iwai30-124/+124
Instead of symlinkin to each of kernel/*.c file, create a master symlink to $hdadir -> hda directory, and include each file from "../hda/xxx.c" in kernel/*.c file. This makes the kernel/ subdirectory more consistent. The configure script is modified for that, and also for defining the conditional for each patch_*.c so that kernel/Makefile.am can compile files selectively. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-12-03Abort when PCM channel count doesn't matchTakashi Iwai1-2/+5
When PCM stream operation is performed in PCM command and the given channel count isn't supported, currently hda-emu shows an error but continues the operation. It's often bad as it's easily overseen. If this error is detected, abort the operation to make it clear. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-11-29Add include/linux/sort.h wrapperTakashi Iwai1-0/+13
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-11-23Add alsa-info of MacBook Pro 8,1 with CS4206 codecTakashi Iwai1-0/+1322
2012-11-22Use snd_hda_codec_get_pincfg() for listing jacksTakashi Iwai5-14/+57
Since the recent driver doesn't overwrite the pin default cfg values any longer, we should use snd_hda_codec_get_pincfg() for querying the current pincfg values. Also give -r option to show the "original" default cfg values. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-11-12Add alsa-info of an iMac 9,1 with ALC889ATakashi Iwai1-0/+965
There is another variant of iMac 9,1, apparently, too...
2012-11-09Add alsa-info of Toshiba Satellite P855 with ALC280 codecTakashi Iwai1-0/+801
2012-11-09Add alsa-info of Lenovo Thinkpad T530 with ALC269VC codecTakashi Iwai1-0/+1416
2012-11-09Add alsa-info of MacBook Pro 5,2Takashi Iwai1-0/+1157
2012-11-09Add alsa-info of MacBook Pro 10,1 RetinaTakashi Iwai1-0/+1236
2012-11-09Add alsa-info output of ASUS G75 with VT1802 codecTakashi Iwai1-0/+4236