blob: 947a0be7b02cf1183c7ae1a98c395c22f956cac7 [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Workaround for kernel MIDI driver bugs"
author "chromium-os-dev@chromium.org"
# This needs to finish before Chrome launches.
start on starting ui
task
# Workaround for MIDI devices not being detected if none have been
# connected before loading a Web MIDI page.
# See https://crbug.com/499817.
# This was fixed in linux-3.19+.
script
modprobe -q snd_seq_midi \
|| logger -t "$UPSTART_JOB" "modprobe snd_seq_midi failed."
end script