aboutsummaryrefslogtreecommitdiff
path: root/techpack/audio/asoc/codecs
Commit message (Collapse)AuthorAgeFilesLines
* techpack: silence some more errorsYaroslav Furman2020-08-121-4/+0
| | | | Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: wcd-mbhc-v2: make sure headset button wakes the system upYaroslav Furman2020-08-122-1/+10
| | | | | | | | | | | - Add IRQF_NO_SUSPEND to button IRQs (press/release). - Add wakeups to button press/release functions. These changes ensure that system is woken up when you pause playback, wait for a bit, try to resume playback using headset's button. Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: compile out some unneded codecsYaroslav Furman2020-08-121-1/+1
| | | | | | and fix compilation while we're at it. Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: shut the fuck upYaroslav Furman2020-07-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shut the fuck up You're a fucking cunt Shut the fuck up You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here What? I just want to let you know, you're a stupid fucking cunt Go ahead and run your mouth, pussy, I don't give a fuck You're a stupid piece of shit, you're a stupid fucking bitch Get the fuck up off my dick, get the fuck up off my dick, like Please end your fucking life, please end your fucking life I really gotta emphasise, no one cares if you're alive You're a fucking penis-hole, grab a dick and eat it whole I need to know if you were dropped when you were just a fetus though You're so fucking ugly and your face is fucking foul, jeez You're so fucking loud, can you shut your fucking mouth, can you Shut the fuck up You're a fucking cunt Shut the fuck up You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here Yeah Close your fucking mouth, you're just really fucking dense If you hate me, why you talking? You don't make no fucking sense Got a sad life, sad life, go to fucking hell Are you stupid or disabled, man, I can't fucking tell Meh You're a fucking dumb shit, you don't even run shit Get the fuck up out of my face and go to hell and eat a dick Come and catch these hands, boy Come and match these bands, boy I'm not crazy, I just do it all because I can, boy I hope you fucking die in a high-speed car crash I hope you fucking fall head-first and get your neck cracked I hope you have some beautiful children that die from cancer I hope you catch Zika when your wife gets pregnant I hope you win the lottery and die the next day And your daughter has to see you getting lowered in your grave Like, uh, ooh- that was a little dark I'm sorry. Tha-that was a little dark. Very poor taste Shut the fuck up I shouldn't have said that You're a fucking cunt Actually, no, I should have Shut the fuck up Actually, I didn't say enough You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: Fix uninitialized header usageSultan Alsawaf2020-07-251-0/+1
| | | | | | | | | | | | | | | | | When the cmi header is filled, it isn't zeroed out; it's updated, so the previous value it contains is retained as part of a bitmask. This constitutes uninitialized usage of the cmi header struct. Fix it by zeroing out the header with a memset, as is done elsewhere in this driver. This fixes the following warnings: sound/soc/codecs/wcd_cpe_core.c: In function 'wcd_cpe_lab_ch_setup': include/sound/cpe_cmi.h:173:18: error: 'lab_eob.hdr_info' may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> [yaro: cpe_lab_enable fix is in place in 4.14 techpack] Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: checkout to ↵Yaroslav Furman2020-07-2557-8646/+13758
| | | | | | | | https://github.com/UtsavBalar1231/kernel_xiaomi_raphael/commit/bb56551c339e6baae139f0c707aa6eaacbdc5577 I am too lazy to re-merge/re-pick/re-apply all this garbage. Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: Fix uninitialized header usageSultan Alsawaf2020-05-081-0/+1
| | | | | | | | | | | | | | | | | When the cmi header is filled, it isn't zeroed out; it's updated, so the previous value it contains is retained as part of a bitmask. This constitutes uninitialized usage of the cmi header struct. Fix it by zeroing out the header with a memset, as is done elsewhere in this driver. This fixes the following warnings: sound/soc/codecs/wcd_cpe_core.c: In function 'wcd_cpe_lab_ch_setup': include/sound/cpe_cmi.h:173:18: error: 'lab_eob.hdr_info' may be used uninitialized in this function [-Werror=maybe-uninitialized] Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> [yaro: cpe_lab_enable fix is in place in 4.14 techpack] Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* teckpack: codecs: Use scnprintf() for robustnessYaroslav Furman2020-04-112-2/+2
| | | | | | | | | | | | | | | Reasoning explained here https://github.com/torvalds/linux/commit/06236821aeac480a0835dd8dd9fb20e3b5a5d80d Also fixes this warning: ../techpack/audio/asoc/codecs/wcd-clsh.c:73:9: warning: ‘snprintf’ argument 4 overlaps destination object ‘buf’ [-Wrestrict] 73 | cnt = snprintf(buf, buflen - cnt - 1, "%s%s%s", buf, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 74 | buf[0] == '\0' ? "[" : "|", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 75 | states[i]); | Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: shut the fuck upYaroslav Furman2020-01-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shut the fuck up You're a fucking cunt Shut the fuck up You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here What? I just want to let you know, you're a stupid fucking cunt Go ahead and run your mouth, pussy, I don't give a fuck You're a stupid piece of shit, you're a stupid fucking bitch Get the fuck up off my dick, get the fuck up off my dick, like Please end your fucking life, please end your fucking life I really gotta emphasise, no one cares if you're alive You're a fucking penis-hole, grab a dick and eat it whole I need to know if you were dropped when you were just a fetus though You're so fucking ugly and your face is fucking foul, jeez You're so fucking loud, can you shut your fucking mouth, can you Shut the fuck up You're a fucking cunt Shut the fuck up You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here Yeah Close your fucking mouth, you're just really fucking dense If you hate me, why you talking? You don't make no fucking sense Got a sad life, sad life, go to fucking hell Are you stupid or disabled, man, I can't fucking tell Meh You're a fucking dumb shit, you don't even run shit Get the fuck up out of my face and go to hell and eat a dick Come and catch these hands, boy Come and match these bands, boy I'm not crazy, I just do it all because I can, boy I hope you fucking die in a high-speed car crash I hope you fucking fall head-first and get your neck cracked I hope you have some beautiful children that die from cancer I hope you catch Zika when your wife gets pregnant I hope you win the lottery and die the next day And your daughter has to see you getting lowered in your grave Like, uh, ooh- that was a little dark I'm sorry. Tha-that was a little dark. Very poor taste Shut the fuck up I shouldn't have said that You're a fucking cunt Actually, no, I should have Shut the fuck up Actually, I didn't say enough You're a stupid cunt, suck my dick Shut the fuck up Stop being a fucking cunt Shut the fuck up Nobody even wants you here Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack: fix gcc warningsYaroslav Furman2020-01-081-0/+1
| | | | Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* sound: wcd_cpe_core: fix unitialised variableAlin Jerpelea2020-01-081-1/+1
| | | | | Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* techpack/audio: Kill debugging printsAlbert I2019-12-0714-14/+0
| | | | | | | | These insane amount of debug flags added by Xiaomi in production kernel is just horrible. Signed-off-by: Albert I <kras@raphielgang.org> Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
* techpack: fix the rest of debug_fs related errorsYaroslav Furman2019-12-061-8/+3
| | | | Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* Import 'techpack/audio/'dragonGR2019-12-04229-0/+182292