ALSA: aoa: Convert onyx and tas codec drivers to module_i2c_driverThis patch converts onyx and tas codec drivers to use the module_i2c_driver()macro which makes the code smaller and a bit simpler.
ALSA: aoa: Convert onyx and tas codec drivers to module_i2c_driverThis patch converts onyx and tas codec drivers to use the module_i2c_driver()macro which makes the code smaller and a bit simpler.Signed-off-by: Axel Lin <axel.lin@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
Merge branch 'master' into for-nextSync with Linus tree to have 157550ff ("mtd: add GPMI-NAND driverin the config and Makefile") as I have patch depending on that one.
snd-aoa: remove commented out Kconfig entryconfig SND_AOA_TOPAZ has been commented out since it was added fiveyears ago with commit f3d9478b ("[...] add snd-aoa"). There's noindication why it's c
snd-aoa: remove commented out Kconfig entryconfig SND_AOA_TOPAZ has been commented out since it was added fiveyears ago with commit f3d9478b ("[...] add snd-aoa"). There's noindication why it's commented out. It might as well be removed.Signed-off-by: Paul Bolle <pebolle@tiscali.nl>Signed-off-by: Jiri Kosina <jkosina@suse.cz>
ALSA: aoa: Remove obsolete cleanup for clientdataThe i2c core will clear the clientdata pointer automatically.We don't have to set the `data' field to NULL in remove() orif probe() failed anymore
ALSA: aoa: Remove obsolete cleanup for clientdataThe i2c core will clear the clientdata pointer automatically.We don't have to set the `data' field to NULL in remove() orif probe() failed anymore.Also remove a unneeded NULL checking for kfree.Signed-off-by: Axel Lin <axel.lin@gmail.com>Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>Signed-off-by: Takashi Iwai <tiwai@suse.de>
Revert wrong fixes for common misspellingsThese changes were incorrectly fixed by codespell. They were nowmanually corrected.Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Fix common misspellingsFixes generated by 'codespell' and manually reviewed.Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()It does not make sense to set clientdata to onyx in onyx_i2c_remove()as we are going to kfree onyx.What we really want here is i2c_s
ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()It does not make sense to set clientdata to onyx in onyx_i2c_remove()as we are going to kfree onyx.What we really want here is i2c_set_clientdata(client, NULL);Since the i2c core will take care of it now, so this patch just removes it.Signed-off-by: Axel Lin <axel.lin@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.hpercpu.h is included by sched.h and module.h and thus ends up beingincluded when bu
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.hpercpu.h is included by sched.h and module.h and thus ends up beingincluded when building most .c files. percpu.h includes slab.h whichin turn includes gfp.h making everything defined by the two filesuniversally available and complicating inclusion dependencies.percpu.h -> slab.h dependency is about to be removed. Prepare forthis change by updating users of gfp and slab facilities include thoseheaders directly instead of assuming availability. As this conversionneeds to touch large number of source files, the following script isused as the basis of conversion. http://userweb.kernel.org/~tj/misc/slabh-sweep.pyThe script does the followings.* Scan files for gfp and slab usages and update includes such that only the necessary includes are there. ie. if only gfp is used, gfp.h, if slab is used, slab.h.* When the script inserts a new include, it looks at the include blocks and try to put the new include such that its order conforms to its surrounding. It's put in the include block which contains core kernel includes, in the same order that the rest are ordered - alphabetical, Christmas tree, rev-Xmas-tree or at the end if there doesn't seem to be any matching order.* If the script can't find a place to put a new include (mostly because the file doesn't have fitting include block), it prints out an error message indicating which .h file needs to be added to the file.The conversion was done in the following steps.1. The initial automatic conversion of all .c files updated slightly over 4000 files, deleting around 700 includes and adding ~480 gfp.h and ~3000 slab.h inclusions. The script emitted errors for ~400 files.2. Each error was manually checked. Some didn't need the inclusion, some needed manual addition while adding it to implementation .h or embedding .c file was more appropriate for others. This step added inclusions to around 150 files.3. The script was run again and the output was compared to the edits from #2 to make sure no file was left behind.4. Several build tests were done and a couple of problems were fixed. e.g. lib/decompress_*.c used malloc/free() wrappers around slab APIs requiring slab.h to be added manually.5. The script was run on all .h files but without automatically editing them as sprinkling gfp.h and slab.h inclusions around .h files could easily lead to inclusion dependency hell. Most gfp.h inclusion directives were ignored as stuff from gfp.h was usually wildly available and often used in preprocessor macros. Each slab.h inclusion directive was examined and added manually as necessary.6. percpu.h was updated not to include slab.h.7. Build test were done on the following configurations and failures were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my distributed build env didn't work with gcov compiles) and a few more options had to be turned off depending on archs to make things build (like ipr on powerpc/64 which failed due to missing writeq). * x86 and x86_64 UP and SMP allmodconfig and a custom test config. * powerpc and powerpc64 SMP allmodconfig * sparc and sparc64 SMP allmodconfig * ia64 SMP allmodconfig * s390 SMP allmodconfig * alpha SMP allmodconfig * um on x86_64 SMP allmodconfig8. percpu.h modifications were reverted so that it could be applied as a separate patch and serve as bisection point.Given the fact that I had only a couple of failures from tests on step6, I'm fairly confident about the coverage of this conversion patch.If there is a breakage, it's likely to be something in one of the archheaders which should be easily discoverable easily on most builds ofthe specific arch.Signed-off-by: Tejun Heo <tj@kernel.org>Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>Cc: Ingo Molnar <mingo@redhat.com>Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
ALSA: Don't assume i2c device probing always succeedsThe client->driver pointer can be NULL when i2c-device probing failsin i2c_new_device(). This patch adds the NULL checks for client->driveran
ALSA: Don't assume i2c device probing always succeedsThe client->driver pointer can be NULL when i2c-device probing failsin i2c_new_device(). This patch adds the NULL checks for client->driverand return the error instead of blind assumption of driver availability.Reported-by: Tim Shepard <shep@alum.mit.edu>Cc: Jean Delvare <khali@linux-fr.org>Cc: Johannes Berg <johannes@sipsolutions.net>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: AOA: Convert onyx and tas codecs to new-style i2c driversThe legacy i2c binding model is going away soon, so convert the AOAcodec drivers to the new model or they'll break.Signed-off-by: J
ALSA: AOA: Convert onyx and tas codecs to new-style i2c driversThe legacy i2c binding model is going away soon, so convert the AOAcodec drivers to the new model or they'll break.Signed-off-by: Jean Delvare <khali@linux-fr.org>Tested-by: Johannes Berg <johannes@sipsolutions.net>Tested-by: Andreas Schwab <schwab@linux-m68k.org>Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: aoa: clean up file namesThis cleans up the apple onboard audio driver filenames.Signed-off-by: Johannes Berg <johannes@sipsolutions.net>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: aoa - Remove duplicate assignment of SNDRV_PCM_FMTBIT_S{16,24}_BE bitsSigned-off-by: Roel Kluin <roel.kluin@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kyse
ALSA: aoa - Remove duplicate assignment of SNDRV_PCM_FMTBIT_S{16,24}_BE bitsSigned-off-by: Roel Kluin <roel.kluin@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound: Convert to menuconfigConvert menu in sound Kconfig files to menuconfig and if.Signed-off-by: Takashi Iwai <tiwai@suse.de>
[ALSA] aoa - Check value range in ctl callbacksCheck the value ranges in ctl put callbacks properly in aoa drivers.Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <pere
[ALSA] aoa - Check value range in ctl callbacksCheck the value ranges in ctl put callbacks properly in aoa drivers.Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
[ALSA] Clean up with common snd_ctl_boolean_*_info callbacksClean up codes using the new common snd_ctl_boolean_*_info() callbacks.Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaros
[ALSA] Clean up with common snd_ctl_boolean_*_info callbacksClean up codes using the new common snd_ctl_boolean_*_info() callbacks.Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] Fix tas_suspend/resume build warningsound/aoa/codecs/snd-aoa-codec-tas.c:750: warning: 'tas_suspend' defined but not usedsound/aoa/codecs/snd-aoa-codec-tas.c:760: warning: 'tas_resume' defi
[ALSA] Fix tas_suspend/resume build warningsound/aoa/codecs/snd-aoa-codec-tas.c:750: warning: 'tas_suspend' defined but not usedsound/aoa/codecs/snd-aoa-codec-tas.c:760: warning: 'tas_resume' defined but not usedAcked-by: Johannes Berg <johannes@sipsolutions.net>Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] snd-aoa-codec-onyx: fix typoParse error in ifdef or bad use of macro.Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off
[ALSA] snd-aoa-codec-onyx: fix typoParse error in ifdef or bad use of macro.Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] sound: strlcpy is smart enoughstrlcpy already accounts for the trailing zero in its lengthcomputation, so there is no need to substract one to the buffer size.Signed-off-by: Jean Delvare
[ALSA] sound: strlcpy is smart enoughstrlcpy already accounts for the trailing zero in its lengthcomputation, so there is no need to substract one to the buffer size.Signed-off-by: Jean Delvare <khali@linux-fr.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[POWERPC] Rename device_is_compatible to of_device_is_compatiblefor consistency with other Open Firmware interfaces (and Sparc).This is just a straight replacement.This leaves the compatibility
[POWERPC] Rename device_is_compatible to of_device_is_compatiblefor consistency with other Open Firmware interfaces (and Sparc).This is just a straight replacement.This leaves the compatibility define in place.Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Signed-off-by: Paul Mackerras <paulus@samba.org>
[POWERPC] Rename get_property to of_get_property: soundSigned-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>Signed-off-by: Paul Mackerr
[POWERPC] Rename get_property to of_get_property: soundSigned-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>Signed-off-by: Paul Mackerras <paulus@samba.org>
[POWERPC] get_property returns constThis just tidies up some of the remains.Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>Signed-off-by: Paul Mackerras <paulus@samba.org>
[ALSA] snd-aoa: fix onyx resumeWhen the machine resumes the onyx codec might be in a weird state. Hence,simply fully reset it once (and keep the code to take it out of suspend incase the suspend
[ALSA] snd-aoa: fix onyx resumeWhen the machine resumes the onyx codec might be in a weird state. Hence,simply fully reset it once (and keep the code to take it out of suspend incase the suspend of the codec chip survives a reset).Signed-off-by: Johannes Berg <johannes@sipsolutions.net>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] sound: Don't include i2c-dev.hDon't include <linux/i2c-dev.h> as it's not needed.Signed-off-by: Jean Delvare <khali@linux-fr.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by:
[ALSA] sound: Don't include i2c-dev.hDon't include <linux/i2c-dev.h> as it's not needed.Signed-off-by: Jean Delvare <khali@linux-fr.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] Enable stereo line input for TAS codecDespite what the data sheet says in one place, to get stereo inputfrom input A (line in), we have to clear the 'input B monaural' bit inthe ACR.Sign
[ALSA] Enable stereo line input for TAS codecDespite what the data sheet says in one place, to get stereo inputfrom input A (line in), we have to clear the 'input B monaural' bit inthe ACR.Signed-off-by: Paul Mackerras <paulus@samba.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
[ALSA] aoa: add locking to tas codecLooks like I completely forgot to do this. This patch adds locking tothe tas codec so two userspace programs can't hit the controls at thesame time. Tested on
[ALSA] aoa: add locking to tas codecLooks like I completely forgot to do this. This patch adds locking tothe tas codec so two userspace programs can't hit the controls at thesame time. Tested on my powerbook, but I obviously can't find anyproblems even without it since it doesn't do SMP.Signed-off-by: Johannes Berg <johannes@sipsolutions.net>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@suse.cz>
123