From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Handling hardware error cleanly Date: Sun, 19 Nov 2006 17:29:14 -0500 Message-ID: <1163975354.30651.15.camel@mindpipe> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: alsa-devel Cc: Takashi Iwai List-Id: alsa-devel@alsa-project.org I have an ALSA driver that uses a copy() callback for playback, which in turn schedules a workqueue to deliver the audio to the hardware. In certain conditions, writing the data to the hardware can fail. From the workqueue handler, how can I indicate to the ALSA middle layer that a fatal error has occurred and playback must be terminated with -EIO? Lee ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV