aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/sound.mk
Commit message (Expand)AuthorAgeFilesLines
* kernel: Build: Split kmod-regmapHauke Mehrtens2019-01-271-2/+2
* kernel: add kmod-sound-ens1371Felix Fietkau2018-03-251-0/+16
* kernel: kmod-sound-core: handle moved snd-seq-device.koHauke Mehrtens2017-12-161-1/+2
* kernel: fix autoloading arch-specific modulesYousong Zhou2017-05-251-1/+1
* kernel: fix kmod-sound-core build errorMathias Kresin2016-11-051-1/+1
* kernel: add SND_PCM_TIMER to kmod-sound-coreDmitry Sutyagin2016-11-051-0/+1
* kernel: fix kmod-sound-hda-core on Linux 3.18Jo-Philipp Wich2016-10-051-3/+3
* kernel: add missing snd-hda-intel module for Linux 3.18 and 4.1Jo-Philipp Wich2016-10-051-2/+3
* kernel: fix sound-hda-core dependencyFelix Fietkau2016-10-041-1/+1
* kernel/sound: Add support for PCI HD Audio devicesDaniel Dickinson2016-10-041-0/+230
* kernel: fix duplicate drivers for the PC speaker in one packageFelix Fietkau2016-07-031-3/+1
* kernel: Add dummy sound driverJohn Crispin2015-12-111-0/+16
* modules: package VIA AC97 modulesJohn Crispin2015-10-261-0/+34
* package/kernel: remove reference to ep93xx targetNicolas Thill2015-05-241-1/+1
* modules/sound: cleanup by removing unsupported Kernel casesJohn Crispin2015-05-231-10/+0
* kernel: remove useless AddDepends/input abstractionFelix Fietkau2015-03-291-4/+2
* build: remove leftover olpc support codeFelix Fietkau2015-03-281-16/+0
* kernel: drop obsolete kernel version checksFelix Fietkau2015-01-241-22/+3
* kernel: fix kmod-sound-core for 3.14Jonas Gorski2014-04-041-2/+8
* modules: make kmod-pcspkr depend on X86Florian Fainelli2014-03-201-1/+1
* kernel: module updates for 3.12Luka Perkov2013-12-091-0/+13
* kernel/modules: snd-pcm-dmaengine only if CONFIG_SND_DMAENGINE_PCM is setJohn Crispin2013-11-251-2/+2
* kernel: add new core sound module snd-pcm-dmaengine.ko for 3.12 kernels and a...Zoltan Herpai2013-11-121-0/+8
* kernel: imx6: add modules needed for sgtl5000 audio codecLuka Perkov2013-10-161-6/+10
* ep93xx: fix sound dependencies for ep93xxHauke Mehrtens2013-10-011-1/+1
* kernel: make sound-soc-core depend on kmod-ac97Felix Fietkau2013-09-271-1/+1
* kernel: be consistent with formatting styleLuka Perkov2013-07-261-3/+3
* kernel: add sound-soc-imx-sgtl5000Luka Perkov2013-07-151-0/+16
* kernel: add sound-soc-imxLuka Perkov2013-07-151-1/+22
* packages: clean up the package folderJohn Crispin2013-06-211-0/+220
as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # use IO::Socket::INET; use Socket; use strict; use warnings; sub usage() { print STDERR "Usage: $0 <ip> [firmware.bin]\n\n"; exit 0; } my $ip = shift @ARGV; $ip and $ip =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ or usage(); my $probe = IO::Socket::INET->new(Proto => 'udp', Broadcast => 1, LocalPort => 5035) or die "socket: $!"; my $setip = unpack("N", inet_aton($ip)); $setip > 0 or usage(); my @packets; foreach my $ver ([18, 1], [22, 2]) { push @packets, pack("vCCVNV", 0, @$ver, 1, $setip, 0); } print STDERR "Looking for device: "; my $broadcast = sockaddr_in(5035, INADDR_BROADCAST); my $scanning; my $box; $SIG{"ALRM"} = sub { return if --$scanning <= 0; foreach my $packet (@packets) { $probe->send($packet, 0, $broadcast); } print STDERR "."; }; $scanning = 10; foreach my $packet (@packets) { $probe->send($packet, 0, $broadcast); } print STDERR "."; while($scanning) { my $reply; alarm(1); if (my $peer = $probe->recv($reply, 16)) { next if (length($reply) < 16); my ($port, $addr) = sockaddr_in($peer); my ($major, $minor1, $minor2, $code, $addr2) = unpack("vCCVV", $reply); $addr2 = pack("N", $addr2); if ($code == 2) { $scanning = 0; printf STDERR " found!\nADAM2 version $major.$minor1.$minor2 at %s (%s)\n", inet_ntoa($addr), inet_ntoa($addr2); $box = inet_ntoa($addr); } } } $box or die " not found!\n"; { package ADAM2FTP; use base qw(Net::FTP); # ADAM2 requires upper case commands, some brain dead firewall doesn't ;-) sub _USER { shift->command("USER",@_)->response() } sub _GETENV { my $ftp = shift; my ($ok, $name, $value); $ftp->command("GETENV",@_); while(length($ok = $ftp->response()) < 1) { my $line = $ftp->getline(); unless (defined($value)) { chomp($line); ($name, $value) = split(/\s+/, $line, 2); } } $ftp->debug_print(0, "getenv: $value\n") if $ftp->debug(); return $value; } sub getenv { my $ftp = shift; my $name = shift; return $ftp->_GETENV($name); } sub _REBOOT { shift->command("REBOOT")->response() == Net::FTP::CMD_OK } sub reboot { my $ftp = shift; $ftp->_REBOOT; $ftp->close; } } my $file = shift @ARGV; $file || exit 0; open FILE, "<$file" or die "can't open firmware file\n"; my $ftp = ADAM2FTP->new($box, Debug => 0, Timeout => 600) or die "can't open control connection\n"; $ftp->login("adam2", "adam2") or die "can't login\n"; my $mtd0 = $ftp->getenv("mtd0"); my $mtd1 = $ftp->getenv("mtd1"); my ($ksize, $fssize); $mtd1 =~ /^(0x\w+),(0x\w+)$/ and $ksize = hex($2) - hex($1); $mtd0 =~ /^(0x\w+),(0x\w+)$/ and $fssize = hex($2) - hex($1); $ksize and $fssize or die 'cannot read partition offsets'; printf STDERR "Available flash space: 0x%08x (0x%08x + 0x%08x)\n", $ksize + $fssize, $ksize, $fssize; $ftp->command("MEDIA FLSH")->response(); $ftp->binary(); print STDERR "Writing to mtd1...\n"; my $dc = $ftp->stor("fs mtd1"); $dc or die "can't open data connection\n"; my $rbytes = 1; while (($ksize > 0) and ($rbytes > 0)) { my $buffer; my $len = ($ksize > 1024 ? 1024 : $ksize); $rbytes = read FILE, $buffer, $len; $rbytes and $ksize -= $dc->write($buffer, $rbytes, 600); } $dc->close(); $rbytes or die "no more data left to write\n"; print STDERR "Writing to mtd0...\n"; $dc = $ftp->stor("fs mtd0"); $dc or die "can't open data connection\n"; while (($fssize > 0) and ($rbytes > 0)) { my $buffer; my $len = ($fssize > 1024 ? 1024 : $fssize); $rbytes = read FILE, $buffer, $len; $rbytes and $fssize -= $dc->write($buffer, $rbytes, 600); } $dc->close(); $ftp->reboot();