aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-21Merge branch 'fix/hda' into topic/via-cleanupTakashi Iwai6-7/+5
Conflicts: sound/pci/hda/patch_via.c
2011-06-21ALSA: hda - Add Creative CA0132 HDA codec supportIan Minett3-0/+1113
Create patch_ca0132.c, to add support for devices featuring the Creative CA0132 HD-audio codec. This driver implements :- * 1 playback subdevice to headphone and speaker * 2 capture subdevices: i - Mic-in ii- Line-in * mixer device Advanced DSP features are not yet included. Developed and maintained by Creative Labs, Inc. Signed-off-by: Ian Minett <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-21ALSA: VIA HDA: Create a master amplifier control for VT1718S.Lydia Wang1-0/+13
Create a master volume and mute control of playback for VT1718S. Signed-off-by: Lydia Wang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-21ALSA: VIA HDA: Mute/unmute mixer conncted to Headphone for VT1718S.Lydia Wang1-1/+12
When switch HP independent mode, mute/unmute connctions of mixer which is connected to headphone for VT1718S. Signed-off-by: Lydia Wang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-21ALSA: VIA HDA: Modify initial verbs list for VT1718S.Lydia Wang1-7/+2
Remove some invalid initial verbs and correct some wrong initial verbs for VT1718S codec. Signed-off-by: Lydia Wang <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-21ALSA: hda - Remove ALC268 model override for CPR2000Tony Vroon1-1/+0
The "diverse" Quanta ID 0x0763 is overridden to ALC268_ACER. This keeps headphone automute and microphone input from operating on at least one laptop from Opti Systems. Without the override, the BIOS parser does a fine job setting the card up and everything works. Tested-By: Peter Schneider <[email protected]> Signed-off-by: Tony Vroon <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ASoC: adau1701: signedness bug in adau1701_write()Dan Carpenter1-1/+2
"ret" is supposed to be signed here. The current code will only return -EIO on error, instead of a more appropriate error code such as -EAGAIN etc. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2011-06-20ALSA: HDA: Remove quirk for an HP deviceDavid Henningsson1-1/+0
The reporter, who is running kernel 2.6.38, reports that he needs to set model=auto for the headphone output to work correctly. BugLink: http://bugs.launchpad.net/bugs/761022 Cc: [email protected] (v2.6.38+) Reported-by: Jo Signed-off-by: David Henningsson <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Simplify analog-low-current mode check for VIA codecsTakashi Iwai1-82/+43
Use the existing aa-loop list for simplifying the check for analog low-current mode. Also fix the stream count test for playback streams. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Remove NID_MAPPING hacks in patch_via.cTakashi Iwai1-16/+0
There is no longer virtual kmixer element for NID mapping. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Remove unused defines and struct fields in patch_via.cTakashi Iwai1-25/+0
Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Name the primary out as Speaker when needed for VIA codecsTakashi Iwai1-1/+5
When the primary output is the speaker output, rather name it as "Speaker". This will be more intuitive. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Create loopback-list dynamically in patch_via.cTakashi Iwai1-139/+25
Create loopback list dynamically from the parsed input pins for VIA codecs instead of the fixed arrays. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Fix smart51 handling againTakashi Iwai1-83/+64
Fix the broken detection of smart51 and its handling. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Create virtual-master control for VIA codecsTakashi Iwai1-0/+42
Now let's add the missing Master control to VIA codecs. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Initialize unsol events dynamically in patch_via.cTakashi Iwai1-346/+98
Issue the init verbs of unsolicited events dynamically from the parsed results for VIA codecs. Also, consolidate the unsol handlers for HP and line-out mutes. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Initialize input-path dynamically in patch_via.cTakashi Iwai1-314/+49
Similarly like the previous commit, initialize the input-paths dynamically from the parsed results instead of the fixed array for VIA codecs. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Initialize output path dynamically in patch_via.cTakashi Iwai1-214/+135
Instead of fixed array for each codec type, initialize the output path dynamically from the parsed results. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Replace with standard consts in patch_via.cTakashi Iwai1-9/+2
Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Fix independent-HP handling in patch_via.cTakashi Iwai1-238/+58
Fix races in handling of HP DAC and independent streams for VIA codecs. Also, allow the HP output path without front-DAC, and removed unnecessary activation of HP mixer elements. This also removes the handling of shared side/HP stream; it's anyway implemented in a broken way, so we need to re-implement the feature later... Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Unify auto-parser in patch_via.cTakashi Iwai1-374/+53
Now all codecs use the same parser-path, so we can reduce into a single auto-parser function. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Return error for invalid setup for VIATakashi Iwai1-44/+9
Instead of ignoring the invalid pin configuration, return the error. This will avoid unexpected crash, anyway. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Unify capture-mixer creations in patch_via.cTakashi Iwai1-268/+73
Create capture-related mixer elements dynamically from the parsed ADCs and input-pins instead of fixed values for each codec. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Assign HP-independent PCM to individual streamTakashi Iwai1-53/+91
Instead of using the secondary substream, create an individual PCM stream for HP-independent PCM. Otherwise it's difficult to handle different channel numbers with multi-channel stream in the sam PCM stream structure. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Unify PCM assignments in patch_via.cTakashi Iwai1-454/+46
Unify PCM streams for all codecs by assigning the NID dynamically. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Don't create secondary substream when no independent-hp is usedTakashi Iwai1-0/+2
For VIA codecs, we shouldn't create a substream for independent HP mode, when no individual HP DAC is found. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Re-implement smart51 detection for VIA codecsTakashi Iwai1-42/+75
Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Unify output-control parsing in patch_via.cTakashi Iwai1-1186/+180
Parse the output-paths more dynamically, i.e. traverse the paths from each output pin instead of fixed assignment for each codec. Now all codecs are using the same output parser code. The smart51 setup doesn't work with this change, and will be fixed in the next commits. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Unify input-volume creations in patch_via.cTakashi Iwai1-92/+40
Now storing the analog-mixer widget in spec, we can simplify the rest parts. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Auto-mute all LO and speakers in patch_via.cTakashi Iwai1-32/+31
Muting all line-outs and/or speakers is more common in other drivers, so we should follow it, too. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Change pin-ctl for auto-muting in patch_via.cTakashi Iwai1-39/+25
Mute the outputs via pin-controls instead of amps for the auto-mute handling. This makes our life easier as it avoids conflict of the states between the mixer elements and the auto-mute toggles. With this change, we can use vmaster for the master control easily now. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Generate PCM names dynamically in patch_via.cTakashi Iwai1-57/+7
This reduces lots of static strings. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Refactor ctl array handling in patch_via.cTakashi Iwai1-21/+23
No functional change. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Defer mixer element creation to the right time in patch_via.cTakashi Iwai1-23/+19
The jack-detect control should be created at the time of build_controls callback instead of calling snd_hda_add_ctls() at the tree-parsing time. For that, copy the control to the temporary array like other cases. Also, fixed typos of vt1708_jack_detect in all places. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Fill ADCs dynamically for VIA codecsTakashi Iwai1-164/+80
Instead of giving the fixed ADC list, parse the widgets and fill in ADCs dynamically. Also, probe the stereo-mixer input more dynamically, too. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Add control to suppress the dynamic pin-power for VIATakashi Iwai1-1/+59
Currently VIA driver controls the power-state of each pin per jack detection. But, it means that the power-state mismatch may occur when the machine doesn't give the proper jack-detection. For avoiding this problem, a new control element "Dynamic Power-Control" is provided so that user can turn on/off the pin-power control. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ALSA: hda - Remove superfluous NID_MAPPING use for smart51 mixerTakashi Iwai1-18/+9
Just a minor clean up; nid-mapping can be set directly to the smart51 mixer element. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-20ASoC: Fix DAPM sequence run for per-widget I/O methodsMark Brown1-0/+6
Previously we were using the DAPM context rather than a widget as the argument for update_bits() so we didn't need to care that our list walk of widgets left us one beyond the end of the list. Now we're using them for the register update we need to make sure we're pointing at an actual widget not the list_head. Fix originally suggested by Liam on IM. Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]>
2011-06-18ASoC: Remove adau1701 from SND_SOC_ALL_CODECS due to Sigma dependencyMark Brown1-1/+0
The Sigma code is in drivers/firmware which is only included on a very small subset of architectures and so ends up breaking the build on others. There's a pending patch to make the directory build as standard but it's not merged yet. Signed-off-by: Mark Brown <[email protected]>
2011-06-18ASoC: Add adau* drivers to the Analog Devices file patternsMark Brown1-0/+1
Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]> Acked-by: Mike Frysinger <[email protected]>
2011-06-17ALSA: HDA: Remove redundant LPIB quirks for ATI chipsetDavid Henningsson1-8/+0
Now that we have changed the position_fix default for ATI and AMD to be LPIB (see commit 50e3bbf989), we can remove the quirks that were added for ATI chipsets. Signed-off-by: David Henningsson <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-17Merge branch 'fix/hda' into topic/miscTakashi Iwai5-8/+12
2011-06-17ALSA: hda - Fix no NID error with VIA codecsTakashi Iwai1-4/+7
The via driver spews warnigs like hda-codec: no NID for mapping control Independent HP:0:0 with some codecs because snd_hda_add_nid() is called with nid=0. This patch fixes it by skipping the call when no corresponding widget is found. Signed-off-by: Takashi Iwai <[email protected]>
2011-06-17ASoC: Blackfin: allow SPI for SSM2602 partsMike Frysinger1-2/+1
This board has hardware switches for selecting SPI or I2C, so don't require I2C for this driver. Signed-off-by: Mike Frysinger <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2011-06-17ALSA: isight: adjust for new queueing APIClemens Ladisch1-0/+1
Since commit 13882a82ee16 (optimize iso queueing by setting wake only after the last packet), drivers are required to call fw_iso_context_queue_flush() after queueing a batch of packets. The missing call would have an effect only if the controller queue underruns, but then the DMA would stop completely. Signed-off-by: Clemens Ladisch <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-17ALSA: firewire-speakers, oxygen, ua101: allow > 10 s periodsClemens Ladisch3-8/+2
Since commit f2b3614cefb6 (Don't check DMA time-out too shortly), drivers need no longer restrict their PCM period length to be shorter than 10 seconds. Signed-off-by: Clemens Ladisch <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-16ALSA: 6fire - Fix signedness bugTorsten Schenk1-2/+2
Fixed remaining issues of the signedness bug discovered by Dan Carpenter. A check was remaining that tests if unsigned rt->rate is >= 0. Changed that so that rt->rate now consistently uses ARRAY_SIZE(rates) as invalid rate value and not -1. Signed-off-by: Torsten Schenk <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2011-06-16ASoC: AD1836: rename suspend/resume funcsBarry Song1-22/+21
Use less specific names for suspend/resume to match the probe/remove funcs where these are now used. Signed-off-by: Barry Song <[email protected]> Signed-off-by: Scott Jiang <[email protected]> Signed-off-by: Mike Frysinger <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2011-06-16ASoC: AD1836: fix codec nameMike Frysinger1-1/+1
The codec name should not have a "-codec" suffix since this is not part of a MFD. This was incorrectly changed during the multi-component updated. Signed-off-by: Mike Frysinger <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2011-06-16ASoC: AD1836: fix intermixed tab/space indentationMike Frysinger2-4/+4
Signed-off-by: Mike Frysinger <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>