From: Adrian Knoth Subject: [PATCHv2 21/31] ALSA: hdspm - AES32: Ignore float/int format bit Date: Fri, 5 Jul 2013 11:28:13 +0200 Message-ID: <1373016503-9474-22-git-send-email-adi@drcomp.erfurt.thur.de> References: <1373016503-9474-1-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-2-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-3-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-4-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-5-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-6-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-7-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-8-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-9-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-10-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-11-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-12-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-13-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-14-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-15-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-16-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-17-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-18-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-19-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-20-git-send-email-adi@drcomp.erfurt.thur.de> <1373016503-9474-21-git-send-email-adi@drcomp.erfurt.thur.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373016503-9474-21-git-send-email-adi@drcomp.erfurt.thur.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: patch@alsa-project.org Cc: Adrian Knoth , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org As mentioned in the comment, the AES32 cards must not set the format bit, since it is used to indicate the preferred sync setting instead. We hence simply skip the corresponding part in the hw_params function. Signed-off-by: Adrian Knoth diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index c0143cf..a9f4c7c 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -5566,6 +5566,16 @@ static int snd_hdspm_hw_params(struct snd_pcm_substream *substream, */ + /* For AES cards, the float format bit is the same as the + * preferred sync reference. Since we don't want to break + * sync settings, we have to skip the remaining part of this + * function. + */ + if (hdspm->io_type == AES32) { + return 0; + } + + /* Switch to native float format if requested */ if (SNDRV_PCM_FORMAT_FLOAT_LE == params_format(params)) { if (!(hdspm->control_register & HDSPe_FLOAT_FORMAT)) -- 1.8.3.1