diff options
Diffstat (limited to 'sound/usb/hiface')
| -rw-r--r-- | sound/usb/hiface/chip.c | 10 | ||||
| -rw-r--r-- | sound/usb/hiface/pcm.c | 6 | 
2 files changed, 8 insertions, 8 deletions
diff --git a/sound/usb/hiface/chip.c b/sound/usb/hiface/chip.c index b0dcb3924ce..2670d646bda 100644 --- a/sound/usb/hiface/chip.c +++ b/sound/usb/hiface/chip.c @@ -64,7 +64,8 @@ struct hiface_vendor_quirk {  	u8 extra_freq;  }; -static int hiface_chip_create(struct usb_device *device, int idx, +static int hiface_chip_create(struct usb_interface *intf, +			      struct usb_device *device, int idx,  			      const struct hiface_vendor_quirk *quirk,  			      struct hiface_chip **rchip)  { @@ -76,7 +77,8 @@ static int hiface_chip_create(struct usb_device *device, int idx,  	*rchip = NULL;  	/* if we are here, card can be registered in alsa. */ -	ret = snd_card_create(index[idx], id[idx], THIS_MODULE, sizeof(*chip), &card); +	ret = snd_card_new(&intf->dev, index[idx], id[idx], THIS_MODULE, +			   sizeof(*chip), &card);  	if (ret < 0) {  		dev_err(&device->dev, "cannot create alsa card.\n");  		return ret; @@ -132,12 +134,10 @@ static int hiface_chip_probe(struct usb_interface *intf,  		goto err;  	} -	ret = hiface_chip_create(device, i, quirk, &chip); +	ret = hiface_chip_create(intf, device, i, quirk, &chip);  	if (ret < 0)  		goto err; -	snd_card_set_dev(chip->card, &intf->dev); -  	ret = hiface_pcm_init(chip, quirk ? quirk->extra_freq : 0);  	if (ret < 0)  		goto err_chip_destroy; diff --git a/sound/usb/hiface/pcm.c b/sound/usb/hiface/pcm.c index c21a3df9a0d..2c44139b404 100644 --- a/sound/usb/hiface/pcm.c +++ b/sound/usb/hiface/pcm.c @@ -110,7 +110,7 @@ static const struct snd_pcm_hardware pcm_hw = {  #define HIFACE_RATE_96000  0x4a  #define HIFACE_RATE_176400 0x40  #define HIFACE_RATE_192000 0x48 -#define HIFACE_RATE_352000 0x58 +#define HIFACE_RATE_352800 0x58  #define HIFACE_RATE_384000 0x68  static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) @@ -141,8 +141,8 @@ static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate)  	case 192000:  		rate_value = HIFACE_RATE_192000;  		break; -	case 352000: -		rate_value = HIFACE_RATE_352000; +	case 352800: +		rate_value = HIFACE_RATE_352800;  		break;  	case 384000:  		rate_value = HIFACE_RATE_384000;  | 
